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
Showing
- arch/parisc/Kconfig 1 addition, 0 deletionsarch/parisc/Kconfig
- arch/parisc/include/asm/syscall.h 13 additions, 0 deletionsarch/parisc/include/asm/syscall.h
- arch/parisc/kernel/ptrace.c 7 additions, 2 deletionsarch/parisc/kernel/ptrace.c
- arch/parisc/kernel/syscall.S 2 additions, 0 deletionsarch/parisc/kernel/syscall.S
Loading
Please register or sign in to comment