]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86, x32, audit: Fix x32's AUDIT_ARCH wrt audit
authorAndy Lutomirski <luto@amacapital.net>
Fri, 5 Sep 2014 22:13:52 +0000 (15:13 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 17:38:15 +0000 (18:38 +0100)
commitd45d0a5e0fad7acffdeac6a0bfcabfefaccd7d28
tree01eb9540a75f86f4737e64ef242de1267970d399
parentc150584886e5542df2a9fb4d0189f492d9d69b35
x86, x32, audit: Fix x32's AUDIT_ARCH wrt audit

commit 81f49a8fd7088cfcb588d182eeede862c0e3303e upstream.

is_compat_task() is the wrong check for audit arch; the check should
be is_ia32_task(): x32 syscalls should be AUDIT_ARCH_X86_64, not
AUDIT_ARCH_I386.

CONFIG_AUDITSYSCALL is currently incompatible with x32, so this has
no visible effect.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/a0138ed8c709882aec06e4acc30bfa9b623b8717.1409954077.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kernel/ptrace.c