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:11:34 +0000 (11:11 +0200)
commitb40daf625c015d2abf7008af0b91c10459322166
tree210211555ba58587ae0b050e053b4746beea09db
parentb9918b326bf3dc1cf03bcea97ed6fe0b8cb02c8f
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