* [PATCH v2] docs: admin-guide: update tiny script for number of taint flags
@ 2026-02-16 6:37 Randy Dunlap
2026-02-23 21:38 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2026-02-16 6:37 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, David Gow, Jason Gunthorpe, Shuah Khan,
Jonathan Corbet, linux-doc, Andrew Morton
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>
Reviewed-by: David Gow <davidgow@google.com>
---
v2: rebase and resend
@Jason: the note that you asked to be added to kernel/panic.c has
already been merged: commit ed4bbe7e8fa1:
Author: Randy Dunlap <rdunlap@infradead.org>
Date: Wed Oct 15 15:16:26 2025 -0700
taint: add reminder about updating docs and scripts
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
Cc: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/admin-guide/tainted-kernels.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20260213.orig/Documentation/admin-guide/tainted-kernels.rst
+++ linux-next-20260213/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] 2+ messages in thread
* Re: [PATCH v2] docs: admin-guide: update tiny script for number of taint flags
2026-02-16 6:37 [PATCH v2] docs: admin-guide: update tiny script for number of taint flags Randy Dunlap
@ 2026-02-23 21:38 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2026-02-23 21:38 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel
Cc: Randy Dunlap, David Gow, Jason Gunthorpe, Shuah Khan, linux-doc,
Andrew Morton
Randy Dunlap <rdunlap@infradead.org> writes:
> 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>
> Reviewed-by: David Gow <davidgow@google.com>
> ---
> v2: rebase and resend
>
> @Jason: the note that you asked to be added to kernel/panic.c has
> already been merged: commit ed4bbe7e8fa1:
> Author: Randy Dunlap <rdunlap@infradead.org>
> Date: Wed Oct 15 15:16:26 2025 -0700
> taint: add reminder about updating docs and scripts
>
> 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
> Cc: Andrew Morton <akpm@linux-foundation.org>
> ---
> Documentation/admin-guide/tainted-kernels.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20260213.orig/Documentation/admin-guide/tainted-kernels.rst
> +++ linux-next-20260213/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
>
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-23 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-16 6:37 [PATCH v2] docs: admin-guide: update tiny script for number of taint flags Randy Dunlap
2026-02-23 21:38 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox