diff options
author | Suren Baghdasaryan <surenb@google.com> | 2022-07-31 09:15:12 -0700 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-28 20:27:08 -0500 |
commit | d331fe655698659ee0aa6a01e77395bfd34de4a8 (patch) | |
tree | 53d1e757019996c0876ce373c7e91b12d70a8dd3 /lib | |
parent | 2e7873f0577b94171d56818ca09df082fffe7903 (diff) |
TESTING: drivers/staging: add module for testing code taggingmemalloc_prof_v2
Test:
echo 0 > /proc/sys/kernel/panic_on_warn
insmod ctagmod.ko
echo 64 > /sys/kernel/mm/ctagmod/kmalloc_size
echo 4097 > /sys/kernel/mm/ctagmod/pgalloc_size
cat /proc/allocinfo
rmmod ctagmod.ko <-- should generate a warning about leaks
cat /proc/allocinfo
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0e49984826a6..f1093c6f4843 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -998,6 +998,15 @@ config MEM_ALLOC_PROFILING_DEBUG Adds warnings with helpful error messages for memory allocation profiling. +config CODE_TAG_TESTING + bool "Enable code tag testing" + default y + select MEM_ALLOC_PROFILING + select MEM_ALLOC_PROFILING_DEBUG + select STAGING + help + Enable to test code tagging. + source "lib/Kconfig.kasan" source "lib/Kconfig.kfence" source "lib/Kconfig.kmsan" |