kernel/panic.c | 6 ++++++ 1 file changed, 6 insertions(+)
Sometimes people update taint-related pieces of the kernel without
updating the supporting documentation or scripts. Add a reminder
to do this.
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Gow <davidgow@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
kernel/panic.c | 6 ++++++
1 file changed, 6 insertions(+)
--- 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),
On Thu, 16 Oct 2025 at 06:16, Randy Dunlap <rdunlap@infradead.org> wrote: > > Sometimes people update taint-related pieces of the kernel without > updating the supporting documentation or scripts. Add a reminder > to do this. > > Suggested-by: Jason Gunthorpe <jgg@nvidia.com> > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > --- > Cc: Andrew Morton <akpm@linux-foundation.org> > Cc: David Gow <davidgow@google.com> > Cc: Jonathan Corbet <corbet@lwn.net> > Cc: linux-doc@vger.kernel.org > --- > kernel/panic.c | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: David Gow <davidgow@google.com> Cheers, -- David
On Wed, Oct 15, 2025 at 03:16:26PM -0700, Randy Dunlap wrote: > Sometimes people update taint-related pieces of the kernel without > updating the supporting documentation or scripts. Add a reminder > to do this. > > Suggested-by: Jason Gunthorpe <jgg@nvidia.com> > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > --- > Cc: Andrew Morton <akpm@linux-foundation.org> > Cc: David Gow <davidgow@google.com> > Cc: Jonathan Corbet <corbet@lwn.net> > Cc: linux-doc@vger.kernel.org > --- > kernel/panic.c | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Jason
© 2016 - 2025 Red Hat, Inc.