Commit eb398d1044e0c1c19c2f5041acdb29ddb5bbc9f8
1 parent
b4e54de8d3
Exists in
master
and in
4 other branches
[SPARC64]: Explicitly print return PC when the kernel fault PC is bogus.
That way we'll have at least some debugging info even if the stack dump explodes. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
arch/sparc64/mm/fault.c
| ... | ... | @@ -19,6 +19,7 @@ |
| 19 | 19 | #include <linux/init.h> |
| 20 | 20 | #include <linux/interrupt.h> |
| 21 | 21 | #include <linux/kprobes.h> |
| 22 | +#include <linux/kallsyms.h> | |
| 22 | 23 | |
| 23 | 24 | #include <asm/page.h> |
| 24 | 25 | #include <asm/pgtable.h> |
| ... | ... | @@ -132,6 +133,8 @@ |
| 132 | 133 | |
| 133 | 134 | printk(KERN_CRIT "OOPS: Bogus kernel PC [%016lx] in fault handler\n", |
| 134 | 135 | regs->tpc); |
| 136 | + printk(KERN_CRIT "OOPS: RPC [%016lx]\n", regs->u_regs[15]); | |
| 137 | + print_symbol("RPC: <%s>\n", regs->u_regs[15]); | |
| 135 | 138 | printk(KERN_CRIT "OOPS: Fault was to vaddr[%lx]\n", vaddr); |
| 136 | 139 | __asm__("mov %%sp, %0" : "=r" (ksp)); |
| 137 | 140 | show_stack(current, ksp); |