public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] module: Introduce module unload taint tracking
@ 2022-04-19 15:03 Aaron Tomlin
  2022-04-19 15:03 ` [RFC PATCH v2 1/2] module: Make module_flags_taint() accept a module's taints bitmap directly Aaron Tomlin
  2022-04-19 15:03 ` [RFC PATCH v2 2/2] module: Introduce module unload taint tracking Aaron Tomlin
  0 siblings, 2 replies; 3+ messages in thread
From: Aaron Tomlin @ 2022-04-19 15:03 UTC (permalink / raw)
  To: mcgrof
  Cc: cl, pmladek, mbenes, christophe.leroy, akpm, linux-kernel,
	linux-modules, atomlin, ghalat

Hi Luis,

This is based on the latest mcgrof/modules-next branch.  I have decided
still to use RCU even though no entry is ever removed from the unloaded
tainted modules list. That being said, if I understand correctly, it is not
safe in some instances to use 'module_mutex' in print_modules(). So instead
we disable preemption to ensure list traversal with concurrent list
manipulation e.g. list_add_rcu(), is safe too.

Please let me know your thoughts.

Aaron Tomlin (2):
  module: Make module_flags_taint() accept a module's taints bitmap
    directly
  module: Introduce module unload taint tracking

 init/Kconfig         | 11 +++++++
 kernel/module/main.c | 76 +++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 83 insertions(+), 4 deletions(-)


base-commit: eeaec7801c421e17edda6e45a32d4a5596b633da
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-19 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 15:03 [RFC PATCH v2 0/2] module: Introduce module unload taint tracking Aaron Tomlin
2022-04-19 15:03 ` [RFC PATCH v2 1/2] module: Make module_flags_taint() accept a module's taints bitmap directly Aaron Tomlin
2022-04-19 15:03 ` [RFC PATCH v2 2/2] module: Introduce module unload taint tracking Aaron Tomlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox