7 bool "KASan: runtime memory debugger"
10 Enables kernel address sanitizer - runtime memory debugger,
11 designed to find out-of-bounds accesses and use-after-free bugs.
12 This is strictly debugging feature. It consumes about 1/8
13 of available memory and brings about ~x3 performance slowdown.
14 For better error detection enable CONFIG_STACKTRACE,
15 and add slub_debug=U to boot cmdline.
17 config KASAN_SHADOW_OFFSET
19 default 0xdffffc0000000000 if X86_64
22 prompt "Instrumentation type"
27 bool "Outline instrumentation"
29 Before every memory access compiler insert function call
30 __asan_load*/__asan_store*. These functions performs check
31 of shadow memory. This is slower than inline instrumentation,
32 however it doesn't bloat size of kernel's .text section so
36 bool "Inline instrumentation"
38 Compiler directly inserts code checking shadow memory before
39 memory accesses. This is faster than outline (in some workloads
40 it gives about x2 boost over outline instrumentation), but
41 make kernel's .text size much bigger.