|
Matej Habrnal |
30183d |
From e52d14214bd356f31856a5ab63ef14a60d318364 Mon Sep 17 00:00:00 2001
|
|
Matej Habrnal |
30183d |
From: Jakub Filak <jfilak@redhat.com>
|
|
Matej Habrnal |
30183d |
Date: Tue, 5 May 2015 10:46:06 +0200
|
|
Matej Habrnal |
30183d |
Subject: [PATCH] lib: add new kernel taint flags
|
|
Matej Habrnal |
30183d |
|
|
Matej Habrnal |
30183d |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
Matej Habrnal |
30183d |
---
|
|
Matej Habrnal |
30183d |
src/lib/kernel.c | 16 +++++++++++-----
|
|
Matej Habrnal |
30183d |
1 file changed, 11 insertions(+), 5 deletions(-)
|
|
Matej Habrnal |
30183d |
|
|
Matej Habrnal |
30183d |
diff --git a/src/lib/kernel.c b/src/lib/kernel.c
|
|
Matej Habrnal |
30183d |
index af43ae0..dde3d28 100644
|
|
Matej Habrnal |
30183d |
--- a/src/lib/kernel.c
|
|
Matej Habrnal |
30183d |
+++ b/src/lib/kernel.c
|
|
Matej Habrnal |
30183d |
@@ -632,8 +632,14 @@ char *koops_extract_version(const char *linepointer)
|
|
Matej Habrnal |
30183d |
* 'W' - Taint on warning.
|
|
Matej Habrnal |
30183d |
* 'C' - modules from drivers/staging are loaded.
|
|
Matej Habrnal |
30183d |
* 'I' - Working around severe firmware bug.
|
|
Matej Habrnal |
30183d |
+ * 'O' - Out-of-tree module has been loaded.
|
|
Matej Habrnal |
30183d |
+ * 'E' - Unsigned module has been loaded.
|
|
Matej Habrnal |
30183d |
+ * 'L' - A soft lockup has previously occurred.
|
|
Matej Habrnal |
30183d |
+ * 'K' - Kernel has been live patched.
|
|
Matej Habrnal |
30183d |
+ *
|
|
Matej Habrnal |
30183d |
+ * Compatibility flags from older versions and downstream sources:
|
|
Matej Habrnal |
30183d |
* 'H' - Hardware is unsupported.
|
|
Matej Habrnal |
30183d |
- * T - Tech_preview
|
|
Matej Habrnal |
30183d |
+ * 'T' - Tech_preview
|
|
Matej Habrnal |
30183d |
*/
|
|
Matej Habrnal |
30183d |
|
|
Matej Habrnal |
30183d |
#if 0 /* unused */
|
|
Matej Habrnal |
30183d |
@@ -658,7 +664,7 @@ char *kernel_tainted_short(const char *kernel_bt)
|
|
Matej Habrnal |
30183d |
return NULL;
|
|
Matej Habrnal |
30183d |
|
|
Matej Habrnal |
30183d |
tainted += strlen("Tainted: ");
|
|
Matej Habrnal |
30183d |
- /* 13 == current count of known flags */
|
|
Matej Habrnal |
30183d |
+ /* 17 + 2 == current count of known flags */
|
|
Matej Habrnal |
30183d |
/* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=kernel/panic.c;hb=HEAD */
|
|
Matej Habrnal |
30183d |
/* 26 the maximal sane count of flags because of alphabet limits */
|
|
Matej Habrnal |
30183d |
unsigned sz = 26 + 1;
|
|
Matej Habrnal |
30183d |
@@ -701,14 +707,14 @@ static const char *const tnts_long[] = {
|
|
Matej Habrnal |
30183d |
/* B */ "System has hit bad_page.",
|
|
Matej Habrnal |
30183d |
/* C */ "Modules from drivers/staging are loaded.",
|
|
Matej Habrnal |
30183d |
/* D */ "Kernel has oopsed before",
|
|
Matej Habrnal |
30183d |
- /* E */ NULL,
|
|
Matej Habrnal |
30183d |
+ /* E */ "Unsigned module has been loaded."
|
|
Matej Habrnal |
30183d |
/* F */ "Module has been forcibly loaded.",
|
|
Matej Habrnal |
30183d |
/* G */ "Proprietary module has not been loaded.",
|
|
Matej Habrnal |
30183d |
/* H */ NULL,
|
|
Matej Habrnal |
30183d |
/* I */ "Working around severe firmware bug.",
|
|
Matej Habrnal |
30183d |
/* J */ NULL,
|
|
Matej Habrnal |
30183d |
- /* K */ NULL,
|
|
Matej Habrnal |
30183d |
- /* L */ NULL,
|
|
Matej Habrnal |
30183d |
+ /* K */ "Kernel has been live patched.",
|
|
Matej Habrnal |
30183d |
+ /* L */ "A soft lockup has previously occurred.",
|
|
Matej Habrnal |
30183d |
/* M */ "System experienced a machine check exception.",
|
|
Matej Habrnal |
30183d |
/* N */ NULL,
|
|
Matej Habrnal |
30183d |
/* O */ "Out-of-tree module has been loaded.",
|
|
Matej Habrnal |
30183d |
--
|
|
Matej Habrnal |
30183d |
2.4.1
|
|
Matej Habrnal |
30183d |
|