1 # The config is based on running daily CI for enterprise Linux distros to
2 # seek regressions on linux-next builds on different bare-metal and virtual
3 # platforms. It can be used for example,
5 # $ make ARCH=arm64 defconfig debug.config
7 # Keep alphabetically sorted inside each section.
9 # printk and dmesg options
11 CONFIG_DEBUG_BUGVERBOSE=y
12 CONFIG_DYNAMIC_DEBUG=y
13 CONFIG_PRINTK_CALLER=y
15 CONFIG_SYMBOLIC_ERRNAME=y
17 # Compile-time checks and compiler options
20 CONFIG_DEBUG_SECTION_MISMATCH=y
21 CONFIG_FRAME_WARN=2048
22 CONFIG_SECTION_MISMATCH_WARN_ONLY=y
24 # Generic Kernel Debugging Instruments
26 # CONFIG_UBSAN_ALIGNMENT is not set
27 # CONFIG_UBSAN_DIV_ZERO is not set
28 # CONFIG_UBSAN_TRAP is not set
29 # CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
31 CONFIG_DEBUG_FS_ALLOW_ALL=y
32 CONFIG_DEBUG_IRQFLAGS=y
38 CONFIG_UBSAN_UNREACHABLE=y
42 # CONFIG_DEBUG_PAGEALLOC is not set
43 # CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF is not set
44 # CONFIG_DEBUG_RODATA_TEST is not set
45 # CONFIG_DEBUG_WX is not set
46 # CONFIG_KFENCE is not set
47 # CONFIG_PAGE_POISONING is not set
48 # CONFIG_SLUB_STATS is not set
49 CONFIG_PAGE_EXTENSION=y
51 CONFIG_DEBUG_KMEMLEAK=y
52 CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y
53 CONFIG_DEBUG_OBJECTS=y
54 CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
55 CONFIG_DEBUG_OBJECTS_FREE=y
56 CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
57 CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
58 CONFIG_DEBUG_OBJECTS_TIMERS=y
59 CONFIG_DEBUG_OBJECTS_WORK=y
60 CONFIG_DEBUG_PER_CPU_MAPS=y
61 CONFIG_DEBUG_STACK_USAGE=y
62 CONFIG_DEBUG_VIRTUAL=y
64 CONFIG_DEBUG_VM_PGFLAGS=y
66 CONFIG_DEBUG_VM_VMACACHE=y
67 CONFIG_GENERIC_PTDUMP=y
69 CONFIG_KASAN_GENERIC=y
71 CONFIG_KASAN_VMALLOC=y
72 CONFIG_PTDUMP_DEBUGFS=y
73 CONFIG_SCHED_STACK_END_CHECK=y
74 CONFIG_SLUB_DEBUG_ON=y
76 # Debug Oops, Lockups and Hangs
78 # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
79 # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
80 CONFIG_DEBUG_ATOMIC_SLEEP=y
81 CONFIG_DETECT_HUNG_TASK=y
82 CONFIG_PANIC_ON_OOPS=y
83 CONFIG_PANIC_TIMEOUT=0
84 CONFIG_SOFTLOCKUP_DETECTOR=y
86 # Lock Debugging (spinlocks, mutexes, etc...)
88 # CONFIG_PROVE_RAW_LOCK_NESTING is not set
89 CONFIG_PROVE_LOCKING=y
91 # Debug kernel data structures
93 CONFIG_BUG_ON_DATA_CORRUPTION=y
98 CONFIG_PROVE_RCU_LIST=y
102 CONFIG_BRANCH_PROFILE_NONE=y
103 CONFIG_DYNAMIC_FTRACE=y
105 CONFIG_FUNCTION_TRACER=y