parisc: trigger die notifier chain in parisc_terminate()
authorSven Schnelle <svens@stackframe.org>
Thu, 1 Aug 2019 20:08:42 +0000 (22:08 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 3 Aug 2019 06:56:57 +0000 (08:56 +0200)
This will trigger kgdb/kdb when they are enabled.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/traps.c

index 58dcf445e32f6a41ae65c2c7f02cad7cbcba25f5..82fc011894889856e52423c1e37fb813d1fd6891 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/bug.h>
 #include <linux/ratelimit.h>
 #include <linux/uaccess.h>
+#include <linux/kdebug.h>
 
 #include <asm/assembly.h>
 #include <asm/io.h>
@@ -414,6 +415,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o
 {
        static DEFINE_SPINLOCK(terminate_lock);
 
+       (void)notify_die(DIE_OOPS, msg, regs, 0, code, SIGTRAP);
        bust_spinlocks(1);
 
        set_eiem(0);