diff options
author | Kees Cook <keescook@chromium.org> | 2018-04-10 19:32:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 13:28:34 -0400 |
commit | 9c4560e5bbd8c839c8986f79ef536aa07bd77ec7 (patch) | |
tree | cd8a9a48005b7d30df1c1bd1571bdfd1ab81fec7 /kernel/panic.c | |
parent | 47d4b263a2f7324fb3cb641ca00b2725dd12dea0 (diff) |
taint: consolidate documentation
This consolidates the taint bit documentation into a single place with
both numeric and letter values. Additionally adds the missing TAINT_AUX
documentation.
Link: http://lkml.kernel.org/r/1519084390-43867-3-git-send-email-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/panic.c')
-rw-r--r-- | kernel/panic.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index af4cfa8eda22..5ceb9cbec4a2 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -328,27 +328,12 @@ const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = { | |||
328 | }; | 328 | }; |
329 | 329 | ||
330 | /** | 330 | /** |
331 | * print_tainted - return a string to represent the kernel taint state. | 331 | * print_tainted - return a string to represent the kernel taint state. |
332 | * | 332 | * |
333 | * 'P' - Proprietary module has been loaded. | 333 | * For individual taint flag meanings, see Documentation/sysctl/kernel.txt |
334 | * 'F' - Module has been forcibly loaded. | ||
335 | * 'S' - SMP with CPUs not designed for SMP. | ||
336 | * 'R' - User forced a module unload. | ||
337 | * 'M' - System experienced a machine check exception. | ||
338 | * 'B' - System has hit bad_page. | ||
339 | * 'U' - Userspace-defined naughtiness. | ||
340 | * 'D' - Kernel has oopsed before | ||
341 | * 'A' - ACPI table overridden. | ||
342 | * 'W' - Taint on warning. | ||
343 | * 'C' - modules from drivers/staging are loaded. | ||
344 | * 'I' - Working around severe firmware bug. | ||
345 | * 'O' - Out-of-tree module has been loaded. | ||
346 | * 'E' - Unsigned module has been loaded. | ||
347 | * 'L' - A soft lockup has previously occurred. | ||
348 | * 'K' - Kernel has been live patched. | ||
349 | * 'X' - Auxiliary taint, for distros' use. | ||
350 | * | 334 | * |
351 | * The string is overwritten by the next call to print_tainted(). | 335 | * The string is overwritten by the next call to print_tainted(), |
336 | * but is always NULL terminated. | ||
352 | */ | 337 | */ |
353 | const char *print_tainted(void) | 338 | const char *print_tainted(void) |
354 | { | 339 | { |