]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
parisc: Fix and enable seccomp filter support
authorHelge Deller <deller@gmx.de>
Wed, 30 Mar 2016 12:14:31 +0000 (14:14 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 31 Mar 2016 10:28:38 +0000 (12:28 +0200)
commit910cd32e552ea09caa89cdbe328e468979b030dd
tree02cc8c1d9d0202d76f988ae242ccbc328a8e43cd
parent4f4acc9472e54ce702f1d85fc9e6d57767dec91f
parisc: Fix and enable seccomp filter support

The seccomp filter support requires careful handling of task registers.  This
includes reloading of the return value (%r28) and proper syscall exit if
secure_computing() returned -1.

Additionally we need to sign-extend the syscall number from signed 32bit to
signed 64bit in do_syscall_trace_enter() since the ptrace interface only allows
storing 32bit values in compat mode.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v4.5
arch/parisc/Kconfig
arch/parisc/include/asm/syscall.h
arch/parisc/kernel/ptrace.c
arch/parisc/kernel/syscall.S