From: Javi Merino Date: Mon, 6 Feb 2012 14:45:36 +0000 (+0100) Subject: ARM: 7319/1: Print debug info for SIGBUS in user faults X-Git-Tag: MMI-PSA29.97-13-9~17118^2~1^3~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5274c2d0d8d91076af8605187d762dfa0b92825;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: <1327333344-26340-1-git-send-email-javi.merino@arm.com> Signed-off-by: Javi Merino Signed-off-by: Russell King --- diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index bb7eac381a8e..40c43a94ba72 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -164,7 +164,8 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr, struct siginfo si; #ifdef CONFIG_DEBUG_USER - 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);