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 73cb4a2 commit 94a1b19Copy full SHA for 94a1b19
arch/parisc/kernel/unaligned.c
@@ -399,6 +399,13 @@ void handle_unaligned(struct pt_regs *regs)
399
400
if (!unaligned_enabled)
401
goto force_sigbus;
402
+ } else {
403
+ static DEFINE_RATELIMIT_STATE(kernel_ratelimit, 5 * HZ, 5);
404
+ if (!(current->thread.flags & PARISC_UAC_NOPRINT) &&
405
+ __ratelimit(&kernel_ratelimit))
406
+ pr_warn("Kernel: unaligned access to " RFMT " in %pS "
407
+ "(iir " RFMT ")\n",
408
+ regs->ior, (void *)regs->iaoq[0], regs->iir);
409
}
410
411
/* handle modification - OK, it's ugly, see the instruction manual */
0 commit comments