]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kernel-chktaint: add reporting for tainted modules
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 15 Jan 2026 06:47:56 +0000 (22:47 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:15 +0000 (19:07 -0800)
commit08e8f1ef3df270daef4ffc9c4bb15669f72d5d2f
tree6d726c9cb549134b1b593473ab647c4406bff331
parent89802ca36c96b324829996ef05013f82ecc9b68a
kernel-chktaint: add reporting for tainted modules

Check all loaded modules and report any that have their 'taint'
flags set.  The tainted module output format is:
 * <module_name> (<taint_flags>)

Example output:

Kernel is "tainted" for the following reasons:
 * externally-built ('out-of-tree') module was loaded  (#12)
 * unsigned module was loaded (#13)
Raw taint value as int/string: 12288/'G           OE      '

Tainted modules:
 * dump_test (OE)

Link: https://lkml.kernel.org/r/20260115064756.531592-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Thorsten Leemhuis <linux@leemhuis.info>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/debugging/kernel-chktaint