]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/seccomp: fix error return for filtered system calls
authorJan Willeke <willeke@de.ibm.com>
Tue, 22 Jul 2014 14:50:57 +0000 (16:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:55:51 +0000 (09:55 -0700)
commit5704f30095a25fe215337d9689792c6531fa8b30
tree0cbc794d9c1cbbe0156906c42b2a1aee74db0a2c
parentd5ec9cb62fa916687ef726f16c604f94350ff71d
s390/seccomp: fix error return for filtered system calls

commit dc295880c6752076f8b94ba3885d0bfff09e3e82 upstream.

The syscall_set_return_value function of s390 negates the error argument
before storing the value to the return register gpr2. This is incorrect,
the seccomp code already passes the negative error value.
Store the unmodified error value to gpr2.

Signed-off-by: Jan Willeke <willeke@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/syscall.h