Files
linux/kernel/module
Petr Pavlu 37ade54f38 taint/module: remove unnecessary taint_flag.module field
The TAINT_RANDSTRUCT and TAINT_FWCTL flags are mistakenly set in the
taint_flags table as per-module flags.  While this can be trivially
corrected, the issue can be avoided altogether by removing the
taint_flag.module field.

This is possible because, since commit 7fd8329ba5 ("taint/module: Clean
up global and module taint flags handling") in 2016, the handling of
module taint flags has been fully generic.  Specifically,
module_flags_taint() can print all flags, and the required output buffer
size is properly defined in terms of TAINT_FLAGS_COUNT.  The actual
per-module flags are always those added to module.taints by calls to
add_taint_module().

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Petr Pavlu <[email protected]>
Acked-by: Petr Mladek <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Cc: Luis Chamberalin <[email protected]>
Cc: Petr Pavlu <[email protected]>
Cc: Sami Tolvanen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2025-11-12 10:00:15 -08:00
..
2023-03-09 11:08:24 +01:00
2024-08-08 17:36:35 +02:00
…
2023-11-01 13:07:08 -07:00
2025-03-10 11:54:44 +01:00