]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/panic: add verbose logging of kernel taints in backtraces
authorJani Nikula <jani.nikula@intel.com>
Fri, 31 May 2024 09:04:57 +0000 (12:04 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 25 Jun 2024 05:25:05 +0000 (22:25 -0700)
commit2f183c68345a26213e5e7f798399bee68d1c4a97
tree5d7d4456ce6c162f049c2d89614c2bae52195276
parentf36fc96c15bd860776ffc66e53bdeeb791b6f442
kernel/panic: add verbose logging of kernel taints in backtraces

With nearly 20 taint flags and respective characters, it's getting a bit
difficult to remember what each taint flag character means.  Add verbose
logging of the set taints in the format:

Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN

in dump_stack_print_info() when there are taints.

Note that the "negative flag" G is not included.

Link: https://lkml.kernel.org/r/7321e306166cb2ca2807ab8639e665baa2462e9c.1717146197.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/panic.h
kernel/panic.c
lib/dump_stack.c