* [PATCH] docs: admin-guide: update tiny script for number of taint flags
@ 2025-10-14 3:15 Randy Dunlap
2025-10-14 8:05 ` David Gow
2025-10-14 12:14 ` Jason Gunthorpe
0 siblings, 2 replies; 5+ messages in thread
From: Randy Dunlap @ 2025-10-14 3:15 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Jason Gunthorpe, David Gow, Shuah Khan,
Jonathan Corbet, linux-doc
Account for 2 new taint flags being added by increasing the number of
bits handled by the tiny show-tainted-flags example script.
Fixes: 8eea4e744758 ("taint: Add TAINT_FWCTL")
Fixes: 2852ca7fba9f ("panic: Taint kernel if tests are run")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: David Gow <davidgow@google.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/admin-guide/tainted-kernels.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20251013.orig/Documentation/admin-guide/tainted-kernels.rst
+++ linux-next-20251013/Documentation/admin-guide/tainted-kernels.rst
@@ -74,7 +74,7 @@ a particular type of taint. It's best to
script, but if you need something quick you can use this shell command to check
which bits are set::
- $ for i in $(seq 18); do echo $(($i-1)) $(($(cat /proc/sys/kernel/tainted)>>($i-1)&1));done
+ $ for i in $(seq 20); do echo $(($i-1)) $(($(cat /proc/sys/kernel/tainted)>>($i-1)&1));done
Table for decoding tainted state
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] docs: admin-guide: update tiny script for number of taint flags
2025-10-14 3:15 [PATCH] docs: admin-guide: update tiny script for number of taint flags Randy Dunlap
@ 2025-10-14 8:05 ` David Gow
2025-10-14 12:14 ` Jason Gunthorpe
1 sibling, 0 replies; 5+ messages in thread
From: David Gow @ 2025-10-14 8:05 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Jason Gunthorpe, Shuah Khan, Jonathan Corbet,
linux-doc
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
On Tue, 14 Oct 2025 at 11:15, Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Account for 2 new taint flags being added by increasing the number of
> bits handled by the tiny show-tainted-flags example script.
>
> Fixes: 8eea4e744758 ("taint: Add TAINT_FWCTL")
> Fixes: 2852ca7fba9f ("panic: Taint kernel if tests are run")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Jason Gunthorpe <jgg@nvidia.com>
> Cc: David Gow <davidgow@google.com>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: linux-doc@vger.kernel.org
> ---
Thanks for catching this!
Reviewed-by: David Gow <davidgow@google.com>
Cheers,
-- David
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5281 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] docs: admin-guide: update tiny script for number of taint flags
2025-10-14 3:15 [PATCH] docs: admin-guide: update tiny script for number of taint flags Randy Dunlap
2025-10-14 8:05 ` David Gow
@ 2025-10-14 12:14 ` Jason Gunthorpe
2025-10-14 22:57 ` Randy Dunlap
1 sibling, 1 reply; 5+ messages in thread
From: Jason Gunthorpe @ 2025-10-14 12:14 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, David Gow, Shuah Khan, Jonathan Corbet, linux-doc
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 :\
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: admin-guide: update tiny script for number of taint flags
2025-10-14 12:14 ` Jason Gunthorpe
@ 2025-10-14 22:57 ` Randy Dunlap
2025-10-15 16:43 ` Jason Gunthorpe
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2025-10-14 22:57 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: linux-kernel, David Gow, Shuah Khan, Jonathan Corbet, linux-doc
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] docs: admin-guide: update tiny script for number of taint flags
2025-10-14 22:57 ` Randy Dunlap
@ 2025-10-15 16:43 ` Jason Gunthorpe
0 siblings, 0 replies; 5+ messages in thread
From: Jason Gunthorpe @ 2025-10-15 16:43 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, David Gow, Shuah Khan, Jonathan Corbet, linux-doc
On Tue, Oct 14, 2025 at 03:57:15PM -0700, Randy Dunlap wrote:
>
>
> 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),
Yeah, that looks great
Thanks,
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-15 16:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 3:15 [PATCH] docs: admin-guide: update tiny script for number of taint flags Randy Dunlap
2025-10-14 8:05 ` David Gow
2025-10-14 12:14 ` Jason Gunthorpe
2025-10-14 22:57 ` Randy Dunlap
2025-10-15 16:43 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).