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, 26 Aug 2014 00:18:56 +0000 (02:18 +0200)
commit8d74ea0edb83a57f793a55bb7360a17af8ade5d1
tree73a1af4f4ec766913dafb1b23ccc7a631bd39490
parent7ff1740fa48c277628181a047177e0a53f09f682
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