module: Make module_flags_taint() accept a module's taints bitmap and usable outside...
authorAaron Tomlin <atomlin@redhat.com>
Mon, 2 May 2022 20:51:03 +0000 (21:51 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 12 May 2022 17:29:41 +0000 (10:29 -0700)
commitc14e522bc76efed6e947cd0ab83a1fac7a7a3ec9
treeec105e1b7a1e6b02b7a58f611ecabb40b0ed2f02
parent80140a81f7f833998d732102eea0fea230b88067
module: Make module_flags_taint() accept a module's taints bitmap and usable outside core code

No functional change.

The purpose of this patch is to modify module_flags_taint() to accept
a module's taints bitmap as a parameter and modifies all users
accordingly. Furthermore, it is now possible to access a given
module's taint flags data outside of non-essential code yet does
remain for internal use only.

This is in preparation for module unload taint tracking support.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c