Re: [PATCH 1/4] MIPS/seccomp: Fix indirect syscall args

2017-08-11 Thread Kees Cook
On Fri, Aug 11, 2017 at 1:56 PM, James Hogan wrote: > Since commit 669c4092225f ("MIPS: Give __secure_computing() access to > syscall arguments."), upon syscall entry when seccomp is enabled, > syscall_trace_enter() passes a carefully prepared struct seccomp_data > containing syscall arguments to

[PATCH 1/4] MIPS/seccomp: Fix indirect syscall args

2017-08-11 Thread James Hogan
Since commit 669c4092225f ("MIPS: Give __secure_computing() access to syscall arguments."), upon syscall entry when seccomp is enabled, syscall_trace_enter() passes a carefully prepared struct seccomp_data containing syscall arguments to __secure_computing(). Unfortunately it directly uses mips_get