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