Files
linux/arch/nios2/kernel
Al Viro 53d6075164 nios2: add force_successful_syscall_return()
commit fd0c153daa upstream.

If we use the ancient SysV syscall ABI, we'd better have tell the
kernel how to claim that a negative return value is a success.
Use ->orig_r2 for that - it's inaccessible via ptrace, so it's
a fair game for changes and it's normally[*] non-negative on return
from syscall.  Set to -1; syscall is not going to be restart-worthy
by definition, so we won't interfere with that use either.

[*] the only exception is rt_sigreturn(), where we skip the entire
messing with r1/r2 anyway.

Fixes: 82ed08dd1b ("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>
2022-08-25 11:09:30 +02:00
..
2016-10-06 18:19:16 +08:00
2015-02-10 23:21:08 +08:00
2014-12-08 12:55:50 +08:00
2014-12-08 12:55:55 +08:00
2015-02-16 19:26:43 +08:00
2015-02-16 19:26:43 +08:00
2014-12-08 12:56:04 +08:00
2014-12-08 12:55:58 +08:00
2015-04-20 11:11:14 +08:00