and rate-limit it too, all like x86 does
struct siginfo si;
#ifdef CONFIG_DEBUG_USER
struct siginfo si;
#ifdef CONFIG_DEBUG_USER
- if (user_debug & (UDBG_SEGV | UDBG_SEGV_SHORT)) {
+ if ((user_debug & (UDBG_SEGV | UDBG_SEGV_SHORT))
+ && unhandled_signal(tsk, SIGSEGV) && printk_ratelimit()) {
printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x (%s)\n",
tsk->comm, sig, addr, fsr,
(fsr & FSR_WRITE) ? "write" : "read");
printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x (%s)\n",
tsk->comm, sig, addr, fsr,
(fsr & FSR_WRITE) ? "write" : "read");