We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b90cb10 commit b502c87Copy full SHA for b502c87
arch/arm64/kernel/traps.c
@@ -494,7 +494,9 @@ void do_undefinstr(struct pt_regs *regs)
494
if (call_undef_hook(regs) == 0)
495
return;
496
497
- BUG_ON(!user_mode(regs));
+ if (!user_mode(regs))
498
+ die("Oops - Undefined instruction", regs, 0);
499
+
500
force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc, 0);
501
}
502
NOKPROBE_SYMBOL(do_undefinstr);
0 commit comments