kernel-panic-add-verbose-logging-of-kernel-taints-in-backtraces.patch removed from -mm tree
The quilt patch titled
Subject: kernel/panic: add verbose logging of kernel taints in backtraces
has been removed from the -mm tree. Its filename was
kernel-panic-add-verbose-logging-of-kernel-taints-in-backtraces.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jani Nikula <[email protected]>
Subject: kernel/panic: add verbose logging of kernel taints in backtraces
Date: Fri, 31 May 2024 12:04:57 +0300
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.
---
include/linux/panic.h | 8 ++++--- kernel/panic.c | 45 ++++++++++++++++++++++++++++++---------- lib/dump_stack.c | 3 ++ 3 files changed, 42 insertions(+), 14 deletions(-)
include/linux/panic.h renamed from include/linux/panic.h~kernel-panic-add-verbose-logging-of-kernel-taints-in-backtraces +5 -3
@@ -77,9 +77,10 @@ static inline void set_arch_panic_timeou#define TAINT_FLAGS_MAX ((1UL << TAINT_FLAGS_COUNT) - 1)struct taint_flag { -char c_true;/* character printed when tainted */ -char c_false;/* character printed when not tainted */ -bool module;/* also show as a per-module taint flag */ +char c_true;/* character printed when tainted */ +char c_false;/* character printed when not tainted */ +bool module;/* also show as a per-module taint flag */ +const char *desc;/* verbose description of the set taint flag */ };extern const struct taint_flag taint_flags[TAINT_FLAGS_COUNT ];
@@ -90,6 +91,7 @@ enum lockdep_ok { };extern const char *print_tainted (void ); +extern const char *print_tainted_verbose (void );extern void add_taint (unsigned flag,enum lockdep_ok );extern int test_taint (unsigned flag);extern unsigned long get_taint (void );
kernel/panic.c renamed from kernel/panic.c~kernel-panic-add-verbose-logging-of-kernel-taints-in-backtraces +34 -11
74 lines not on this page · raw message
lib/dump_stack.c renamed from lib/dump_stack.c~kernel-panic-add-verbose-logging-of-kernel-taints-in-backtraces +3 -0
@@ -62,6 +62,9 @@ void dump_stack_print_info(const char *l (int )strcspn (init_utsname ()->version," " ), init_utsname()->version, BUILD_ID_VAL); +if (get_taint ()) +printk ("%s%s\n" , log_lvl,print_tainted_verbose ()); +if (dump_stack_arch_desc_str[0 ] !='\0' )printk ("%sHardware name: %s\n" , log_lvl, dump_stack_arch_desc_str);
_
Patches currently in -mm which might be from [email protected] are