|
@@ -267,7 +267,8 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
|
|
|
return;
|
|
|
#endif
|
|
|
|
|
|
- if (show_unhandled_signals) {
|
|
|
+ if (show_unhandled_signals && unhandled_signal(current, SIGILL) &&
|
|
|
+ printk_ratelimit()) {
|
|
|
pr_info("%s[%d]: undefined instruction: pc=%p\n",
|
|
|
current->comm, task_pid_nr(current), pc);
|
|
|
dump_instr(KERN_INFO, regs);
|
|
@@ -294,7 +295,7 @@ asmlinkage long do_ni_syscall(struct pt_regs *regs)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- if (show_unhandled_signals) {
|
|
|
+ if (show_unhandled_signals && printk_ratelimit()) {
|
|
|
pr_info("%s[%d]: syscall %d\n", current->comm,
|
|
|
task_pid_nr(current), (int)regs->syscallno);
|
|
|
dump_instr("", regs);
|