# Pastebin FUO7ILyK --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -38,6 +38,7 @@ menuconfig KASAN CC_HAS_WORKING_NOSANITIZE_ADDRESS) || \ HAVE_ARCH_KASAN_HW_TAGS depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) + depends on !COMPILE_TEST select STACKDEPOT_ALWAYS_INIT help Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety