[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3b7f31b9-443a-465c-90ac-5b539852d799@infradead.org>
Date: Tue, 14 Oct 2025 15:57:15 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: Jason Gunthorpe <jgg@...dia.com>
Cc: linux-kernel@...r.kernel.org, David Gow <davidgow@...gle.com>,
Shuah Khan <skhan@...uxfoundation.org>, Jonathan Corbet <corbet@....net>,
linux-doc@...r.kernel.org
Subject: Re: [PATCH] docs: admin-guide: update tiny script for number of taint
flags
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
Powered by blists - more mailing lists