]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
seccomp: Add missing compat_ioctl for notify
authorSven Schnelle <svens@linux.ibm.com>
Tue, 10 Mar 2020 12:33:32 +0000 (13:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:12:01 +0000 (16:12 +0200)
commit18297271fd1ab49e5f244779bf9f692fb7cb6c17
treeb08f0ed8920b6c0e97c61a1ea1eb2070268b7730
parentea751a69d9eae29ffb5b9bbdb003124740fbf86e
seccomp: Add missing compat_ioctl for notify

commit 3db81afd99494a33f1c3839103f0429c8f30cb9d upstream.

Executing the seccomp_bpf testsuite under a 64-bit kernel with 32-bit
userland (both s390 and x86) doesn't work because there's no compat_ioctl
handler defined. Add the handler.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200310123332.42255-1-svens@linux.ibm.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/seccomp.c