]> git.baikalelectronics.ru Git - kernel.git/commit
module: tracking: Keep a record of tainted unloaded modules only
authorAaron Tomlin <atomlin@redhat.com>
Fri, 7 Oct 2022 13:38:12 +0000 (14:38 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Oct 2022 19:16:19 +0000 (12:16 -0700)
commitdb3e3de76a7c813c4f16dd5b7c674bd61d0032cc
tree348abc250461d8b242d481cbe6bd038f23972e70
parentc264e49f7cf96e6f7b9da6d4c1dc5af193ba5c6f
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: 78bfe982f4ac ("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>
kernel/module/tracking.c