diff options
author | Javi Merino <javi.merino@arm.com> | 2012-02-06 09:45:36 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-24 05:38:53 -0400 |
commit | f5274c2d0d8d91076af8605187d762dfa0b92825 (patch) | |
tree | 96b4c6292a9aec6d623bf577c2e10cd16b2ea4b9 /arch/arm/mm/fault.c | |
parent | e0b823e9a543527dbb0f806252ee03a60f2aefbc (diff) |
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 <javi.merino@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/fault.c')
-rw-r--r-- | arch/arm/mm/fault.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
164 | struct siginfo si; | 164 | struct siginfo si; |
165 | 165 | ||
166 | #ifdef CONFIG_DEBUG_USER | 166 | #ifdef CONFIG_DEBUG_USER |
167 | if (user_debug & UDBG_SEGV) { | 167 | if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || |
168 | ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { | ||
168 | printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n", | 169 | printk(KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n", |
169 | tsk->comm, sig, addr, fsr); | 170 | tsk->comm, sig, addr, fsr); |
170 | show_pte(tsk->mm, addr); | 171 | show_pte(tsk->mm, addr); |