summaryrefslogtreecommitdiffstats
path: root/lib/kasan/Kconfig
blob: 7a18cf95be87f9295faad2fcf92bc9db4a0a2729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
source "scripts/Kconfig.include"

config HAVE_ARCH_KASAN
	bool

config CC_HAS_KASAN_GENERIC
	def_bool $(cc-option, -fsanitize=kernel-address)

config KASAN
	bool "KASAN: runtime memory debugger"
	depends on (HAVE_ARCH_KASAN && CC_HAS_KASAN_GENERIC)
	depends on MALLOC_TLSF
	select CONSTRUCTORS
	help
	  Enables KASAN (KernelAddressSANitizer) - runtime memory debugger,
	  designed to find out-of-bounds accesses and use-after-free bugs.