doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

Blame SOURCES/0282-Add-oops-processing-for-kernel-panics-caused-by-hung.patch

a60cd7
From 4499cfbae77f3b1dfcd476db40095e7d1b8148f5 Mon Sep 17 00:00:00 2001
a60cd7
From: credmon <credmonster@gmail.com>
a60cd7
Date: Fri, 20 May 2016 15:30:13 -0400
a60cd7
Subject: [PATCH] Add oops processing for kernel panics caused by hung tasks.
a60cd7
a60cd7
Signed-off-by: Jakub Filak <jfilak@redhat.com>
a60cd7
---
a60cd7
 src/lib/kernel.c | 4 ++++
a60cd7
 1 file changed, 4 insertions(+)
a60cd7
a60cd7
diff --git a/src/lib/kernel.c b/src/lib/kernel.c
a60cd7
index f1a0f2c..a715624 100644
a60cd7
--- a/src/lib/kernel.c
a60cd7
+++ b/src/lib/kernel.c
a60cd7
@@ -110,6 +110,7 @@ static const char *const s_koops_suspicious_strings[] = {
a60cd7
     /*s*/"ysctl table check failed",
a60cd7
     ": nobody cared",
a60cd7
     "IRQ handler type mismatch",
a60cd7
+    "Kernel panic - not syncing:",
a60cd7
     /*
a60cd7
      * MCE examples for various CPUs/architectures (collected 2013-04):
a60cd7
      * arch/arc/kernel/traps.c:			die("Machine Check Exception", regs, address, cause);
a60cd7
@@ -387,6 +388,9 @@ next_line:
a60cd7
              && !strstr(curline, "<EOI>")
a60cd7
              && !strstr(curline, "<NMI>")
a60cd7
              && !strstr(curline, "<<EOE>>")
a60cd7
+             && !strstr(curline, "Comm:")
a60cd7
+             && !strstr(curline, "Hardware name:")
a60cd7
+             && !strstr(curline, "Backtrace:")
a60cd7
              && strncmp(curline, "Code: ", 6) != 0
a60cd7
              && strncmp(curline, "RIP ", 4) != 0
a60cd7
              && strncmp(curline, "RSP ", 4) != 0
a60cd7
-- 
a60cd7
1.8.3.1
a60cd7