]> git.baikalelectronics.ru Git - kernel.git/commit
x86/asm/entry, perf: Fix incorrect TIF_IA32 check in code_segment_base()
authorAndy Lutomirski <luto@kernel.org>
Thu, 19 Mar 2015 01:33:28 +0000 (18:33 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Mar 2015 09:08:21 +0000 (10:08 +0100)
commitb909965cfe9ab0c341593f0d0393ba42d1a4feca
tree13f14e508342aa82efacf711d52d639dfc4d58ae
parenta5d7c057c9956db6d2a905b8b197a5194c5461a8
x86/asm/entry, perf: Fix incorrect TIF_IA32 check in code_segment_base()

We want to check whether user code is in 32-bit mode, not
whether the task is nominally 32-bit.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/33e5107085ce347a8303560302b15c2cadd62c4c.1426728647.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c