nios2: traced syscall does need to check the syscall number
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Aug 2022 15:07:21 +0000 (16:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:09:29 +0000 (11:09 +0200)
commit60cd5c1a0667294acac87728086f0b574f3ae5cc
treecee279df44266c221fda82a664806dd742e4a52f
parent8c7739f57084da2075f09de820b99da7e606dc8d
nios2: traced syscall does need to check the syscall number

commit 25ba820ef36bdbaf9884adeac69b6e1821a7df76 upstream.

all checks done before letting the tracer modify the register
state are worthless...

Fixes: 82ed08dd1b0e ("nios2: Exception handling")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/nios2/kernel/entry.S