Commit f5274c2d authored by Javi Merino's avatar Javi Merino Committed by Russell King
Browse files

ARM: 7319/1: Print debug info for SIGBUS in user faults

Print debug information on user faults for SIGBUS if user_debug = 16
in the kernel command line.

Reference: <>

Signed-off-by: default avatarJavi Merino <>
Signed-off-by: default avatarRussell King <>
parent e0b823e9
......@@ -164,7 +164,8 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
struct siginfo si;
if (user_debug & UDBG_SEGV) {
if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) ||
((user_debug & UDBG_BUS) && (sig == SIGBUS))) {
printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n",
tsk->comm, sig, addr, fsr);
show_pte(tsk->mm, addr);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment