Dump the registers on undefined instruction userspace faults
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 9 Apr 2014 23:49:50 +0000 (00:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 Apr 2014 13:48:39 +0000 (14:48 +0100)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c

index 172ee18ff1247b3159c355d899bf09bfc06579c8..abd2fc0677364a529d4c12479890f6b97770b41a 100644 (file)
@@ -445,6 +445,7 @@ die_sig:
        if (user_debug & UDBG_UNDEFINED) {
                printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n",
                        current->comm, task_pid_nr(current), pc);
+               __show_regs(regs);
                dump_instr(KERN_INFO, regs);
        }
 #endif