]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: admin-guide: update tiny script for number of taint flags
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 16 Feb 2026 06:37:29 +0000 (22:37 -0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 23 Feb 2026 21:37:20 +0000 (14:37 -0700)
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>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260216063729.2832770-1-rdunlap@infradead.org>

Documentation/admin-guide/tainted-kernels.rst

index ed1f8f1e86c58f1ff79363198ba5c24ead0cd11e..9ead927a37c0f7de815db33bdb68cd31d36b8681 100644 (file)
@@ -74,7 +74,7 @@ a particular type of taint. It's best to leave that to the aforementioned
 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
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~