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