MIPS: syscall: Fix AUDIT value for O32 processes on MIPS64
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 24 Jul 2014 11:10:01 +0000 (12:10 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 19 Aug 2014 16:24:39 +0000 (18:24 +0200)
commit40381529f84c4cda3bd2d20cab6a707508856b21
tree6705ac7d22a0a1ccaa95f5f192329ef8e77e6bdd
parentbfcdf1306361951b104c6858d07f6778b53e4368
MIPS: syscall: Fix AUDIT value for O32 processes on MIPS64

On MIPS64, O32 processes set both TIF_32BIT_ADDR and
TIF_32BIT_REGS so the previous condition treated O32 applications
as N32 when evaluating seccomp filters. Fix the condition to check
both TIF_32BIT_{REGS, ADDR} for the N32 AUDIT flag.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: http://patchwork.linux-mips.org/patch/7480/
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/mips/include/asm/syscall.h