Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

module: tracking: Keep a record of tainted unloaded modules only

This ensures that no module record/or entry is added to the
unloaded_tainted_modules list if it does not carry a taint.

Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Fixes: 99bd9956551b ("module: Introduce module unload taint tracking")
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Aaron Tomlin and committed by
Linus Torvalds
47cc75aa 385f4a10

+3
+3
kernel/module/tracking.c
··· 22 22 23 23 module_assert_mutex_or_preempt(); 24 24 25 + if (!mod->taints) 26 + goto out; 27 + 25 28 list_for_each_entry_rcu(mod_taint, &unloaded_tainted_modules, list, 26 29 lockdep_is_held(&module_mutex)) { 27 30 if (!strcmp(mod_taint->name, mod->name) &&