aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/traps.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-03-23 11:13:15 +0100
committerIngo Molnar <mingo@kernel.org>2015-03-23 11:13:15 +0100
commite4518ab90f63cd5bea3ddc15341162debc34442b (patch)
treefcefaeced9562de840bbf11ec2ffc95e1d9a571f /arch/x86/kernel/traps.c
parentx86/asm/entry, perf: Fix incorrect TIF_IA32 check in code_segment_base() (diff)
parentLinux 4.0-rc5 (diff)
downloadlinux-dev-e4518ab90f63cd5bea3ddc15341162debc34442b.tar.xz
linux-dev-e4518ab90f63cd5bea3ddc15341162debc34442b.zip
Merge tag 'v4.0-rc5' into x86/asm, to resolve conflicts
Conflicts: arch/x86/kernel/entry_64.S Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r--arch/x86/kernel/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index 081252c44cde..277341128b47 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -384,7 +384,7 @@ dotraplinkage void do_bounds(struct pt_regs *regs, long error_code)
goto exit;
conditional_sti(regs);
- if (!user_mode(regs))
+ if (!user_mode_vm(regs))
die("bounds", regs, error_code);
if (!cpu_feature_enabled(X86_FEATURE_MPX)) {
@@ -637,7 +637,7 @@ dotraplinkage void do_debug(struct pt_regs *regs, long error_code)
* then it's very likely the result of an icebp/int01 trap.
* User wants a sigtrap for that.
*/
- if (!dr6 && user_mode(regs))
+ if (!dr6 && user_mode_vm(regs))
user_icebp = 1;
/* Catch kmemcheck conditions first of all! */