|
@@ -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! */
|