summaryrefslogtreecommitdiff
path: root/kernel/module/Makefile
diff options
context:
space:
mode:
authorAaron Tomlin <atomlin@redhat.com>2022-05-02 21:52:52 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2022-05-12 10:29:41 -0700
commit99bd9956551b27cb6f5b445abaced7e13b9976cd (patch)
treecba54839c4a7c86927516142556a5335b5375400 /kernel/module/Makefile
parent6fb0538d0121ffab770a505b183968d93466ad59 (diff)
downloadlwn-99bd9956551b27cb6f5b445abaced7e13b9976cd.tar.gz
lwn-99bd9956551b27cb6f5b445abaced7e13b9976cd.zip
module: Introduce module unload taint tracking
Currently, only the initial module that tainted the kernel is recorded e.g. when an out-of-tree module is loaded. The purpose of this patch is to allow the kernel to maintain a record of each unloaded module that taints the kernel. So, in addition to displaying a list of linked modules (see print_modules()) e.g. in the event of a detected bad page, unloaded modules that carried a taint/or taints are displayed too. A tainted module unload count is maintained. The number of tracked modules is not fixed. This feature is disabled by default. Signed-off-by: Aaron Tomlin <atomlin@redhat.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/Makefile')
-rw-r--r--kernel/module/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module/Makefile b/kernel/module/Makefile
index d1ca799c12e2..948efea81e85 100644
--- a/kernel/module/Makefile
+++ b/kernel/module/Makefile
@@ -18,3 +18,4 @@ obj-$(CONFIG_PROC_FS) += procfs.o
obj-$(CONFIG_SYSFS) += sysfs.o
obj-$(CONFIG_KGDB_KDB) += kdb.o
obj-$(CONFIG_MODVERSIONS) += version.o
+obj-$(CONFIG_MODULE_UNLOAD_TAINT_TRACKING) += tracking.o