From: Michael Ellerman Date: Thu, 23 Jul 2015 10:21:08 +0000 (+1000) Subject: powerpc/kernel: Add SIG_SYS support for compat tasks X-Git-Tag: omap-for-v4.3/fixes-rc1~100^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b60bab04e03d7ed74826dc20fda9d907d011313;p=pandora-kernel.git powerpc/kernel: Add SIG_SYS support for compat tasks SIG_SYS was added in commit a0727e8ce513 "signal, x86: add SIGSYS info and make it synchronous." Because we use the asm-generic struct siginfo, we got support for SIG_SYS for free as part of that commit. However there was no compat handling added for powerpc. That means we've been advertising the existence of signfo._sifields._sigsys to compat tasks, but not actually filling in the fields correctly. Luckily it looks like no one has noticed, presumably because the only user of SIGSYS in the kernel is seccomp filter, which we don't support yet. So before we enable seccomp filter, add compat handling for SIGSYS. Signed-off-by: Michael Ellerman Reviewed-by: Kees Cook --- Reading git-diff-tree failed