Re: [PATCH] docs: admin-guide: update tiny script for number of taint flags
From: Randy Dunlap
Date: Tue Oct 14 2025 - 18:57:17 EST
On 10/14/25 5:14 AM, Jason Gunthorpe wrote:
> On Mon, Oct 13, 2025 at 08:15:38PM -0700, Randy Dunlap wrote:
>> Account for 2 new taint flags being added by increasing the number of
>> bits handled by the tiny show-tainted-flags example script.
>
> Maybe add a comment near the array about this :\
Something like this?
--- linux-next-20251014.orig/kernel/panic.c
+++ linux-next-20251014/kernel/panic.c
@@ -638,6 +638,12 @@ EXPORT_SYMBOL(panic);
/*
* TAINT_FORCED_RMMOD could be a per-module flag but the module
* is being removed anyway.
+ *
+ * NOTE: if you modify the taint_flags or TAINT_FLAGS_COUNT,
+ * please also modify tools/debugging/kernel-chktaint and
+ * Documentation/admin-guide/tainted-kernels.rst, including its
+ * small shell script that prints the TAINT_FLAGS_COUNT bits of
+ * /proc/sys/kernel/tainted.
*/
const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = {
TAINT_FLAG(PROPRIETARY_MODULE, 'P', 'G', true),
--
~Randy