]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/Kconfig.kasan
rhashtable: add restart routine in rhashtable_free_and_destroy()
[mirror_ubuntu-bionic-kernel.git] / lib / Kconfig.kasan
index bd38aab05929813acae4db2cd09f609a83d2025c..c253c1b46c6b12b2a7f2f3879bba0cf698a47866 100644 (file)
@@ -6,6 +6,7 @@ if HAVE_ARCH_KASAN
 config KASAN
        bool "KASan: runtime memory debugger"
        depends on SLUB || (SLAB && !DEBUG_SLAB)
+       select SLUB_DEBUG if SLUB
        select CONSTRUCTORS
        select STACKDEPOT
        help
@@ -20,6 +21,17 @@ config KASAN
          Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
          (the resulting kernel does not boot).
 
+config KASAN_EXTRA
+       bool "KAsan: extra checks"
+       depends on KASAN && DEBUG_KERNEL && !COMPILE_TEST
+       help
+         This enables further checks in the kernel address sanitizer, for now
+         it only includes the address-use-after-scope check that can lead
+         to excessive kernel stack usage, frame size warnings and longer
+         compile time.
+         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
+
+
 choice
        prompt "Instrumentation type"
        depends on KASAN