blob: e9ffb0cc1eecf5951fc2a43abbb6386eaa033411 [file] [log] [blame]
Qian Cai0aaa8972022-01-19 18:10:18 -08001# 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,
4#
5# $ make ARCH=arm64 defconfig debug.config
6#
7# Keep alphabetically sorted inside each section.
8#
9# printk and dmesg options
10#
11CONFIG_DEBUG_BUGVERBOSE=y
12CONFIG_DYNAMIC_DEBUG=y
13CONFIG_PRINTK_CALLER=y
14CONFIG_PRINTK_TIME=y
15CONFIG_SYMBOLIC_ERRNAME=y
16#
17# Compile-time checks and compiler options
18#
19CONFIG_DEBUG_INFO=y
20CONFIG_DEBUG_SECTION_MISMATCH=y
21CONFIG_FRAME_WARN=2048
22CONFIG_SECTION_MISMATCH_WARN_ONLY=y
23#
24# Generic Kernel Debugging Instruments
25#
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
30CONFIG_DEBUG_FS=y
31CONFIG_DEBUG_FS_ALLOW_ALL=y
32CONFIG_DEBUG_IRQFLAGS=y
33CONFIG_UBSAN=y
34CONFIG_UBSAN_BOOL=y
35CONFIG_UBSAN_BOUNDS=y
36CONFIG_UBSAN_ENUM=y
37CONFIG_UBSAN_SHIFT=y
38CONFIG_UBSAN_UNREACHABLE=y
39#
40# Memory Debugging
41#
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
49CONFIG_PAGE_EXTENSION=y
50CONFIG_PAGE_OWNER=y
51CONFIG_DEBUG_KMEMLEAK=y
52CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y
53CONFIG_DEBUG_OBJECTS=y
54CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
55CONFIG_DEBUG_OBJECTS_FREE=y
56CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
57CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
58CONFIG_DEBUG_OBJECTS_TIMERS=y
59CONFIG_DEBUG_OBJECTS_WORK=y
60CONFIG_DEBUG_PER_CPU_MAPS=y
61CONFIG_DEBUG_STACK_USAGE=y
62CONFIG_DEBUG_VIRTUAL=y
63CONFIG_DEBUG_VM=y
64CONFIG_DEBUG_VM_PGFLAGS=y
65CONFIG_DEBUG_VM_RB=y
66CONFIG_DEBUG_VM_VMACACHE=y
67CONFIG_GENERIC_PTDUMP=y
68CONFIG_KASAN=y
69CONFIG_KASAN_GENERIC=y
70CONFIG_KASAN_INLINE=y
71CONFIG_KASAN_VMALLOC=y
72CONFIG_PTDUMP_DEBUGFS=y
73CONFIG_SCHED_STACK_END_CHECK=y
74CONFIG_SLUB_DEBUG_ON=y
75#
76# Debug Oops, Lockups and Hangs
77#
78# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
79# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
80CONFIG_DEBUG_ATOMIC_SLEEP=y
81CONFIG_DETECT_HUNG_TASK=y
82CONFIG_PANIC_ON_OOPS=y
83CONFIG_PANIC_TIMEOUT=0
84CONFIG_SOFTLOCKUP_DETECTOR=y
85#
86# Lock Debugging (spinlocks, mutexes, etc...)
87#
88# CONFIG_PROVE_RAW_LOCK_NESTING is not set
89CONFIG_PROVE_LOCKING=y
90#
91# Debug kernel data structures
92#
93CONFIG_BUG_ON_DATA_CORRUPTION=y
94#
95# RCU Debugging
96#
97CONFIG_PROVE_RCU=y
98CONFIG_PROVE_RCU_LIST=y
99#
100# Tracers
101#
102CONFIG_BRANCH_PROFILE_NONE=y
103CONFIG_DYNAMIC_FTRACE=y
104CONFIG_FTRACE=y
105CONFIG_FUNCTION_TRACER=y