From 404c850547101bebca29fffb22cabf7de07387ba Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 20 Jun 2024 11:14:14 +0300 Subject: [PATCH] build-configs.yaml: Add kcidebug fragment It might be useful to enable lightweight(relatively) kernel debug options. Signed-off-by: Denys Fedoryshchenko --- config/core/build-configs.yaml | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/config/core/build-configs.yaml b/config/core/build-configs.yaml index 3d4087a671..61676e1a79 100644 --- a/config/core/build-configs.yaml +++ b/config/core/build-configs.yaml @@ -448,6 +448,66 @@ fragments: - 'CONFIG_IMA=y' - 'CONFIG_IMA_READ_POLICY=y' + kcidebug: + path: "kernel/configs/kcidebug.config" + configs: + - 'CONFIG_CONSTRUCTORS=y' + - 'CONFIG_GENERIC_CSUM=y' + - 'CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000' + - 'CONFIG_STACKDEPOT_ALWAYS_INIT=y' + - 'CONFIG_REF_TRACKER=y' + - 'CONFIG_DEBUG_SECTION_MISMATCH=y' + - 'CONFIG_UBSAN=y' + - 'CONFIG_CC_HAS_UBSAN_BOUNDS_STRICT=y' + - 'CONFIG_UBSAN_BOUNDS=y' + - 'CONFIG_UBSAN_BOUNDS_STRICT=y' + - 'CONFIG_UBSAN_SHIFT=y' + - 'CONFIG_UBSAN_BOOL=y' + - 'CONFIG_UBSAN_ENUM=y' + - 'CONFIG_UBSAN_SANITIZE_ALL=y' + - 'CONFIG_NET_DEV_REFCNT_TRACKER=y' + - 'CONFIG_NET_NS_REFCNT_TRACKER=y' + - 'CONFIG_PAGE_POISONING=y' + - 'CONFIG_DEBUG_KMEMLEAK=y' + - 'CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=16000' + - 'CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y' + - 'CONFIG_SCHED_STACK_END_CHECK=y' + - 'CONFIG_KASAN=y' + - 'CONFIG_KASAN_GENERIC=y' + - 'CONFIG_KASAN_INLINE=y' + - 'CONFIG_KASAN_STACK=y' + - 'CONFIG_KASAN_VMALLOC=y' + - 'CONFIG_KFENCE=y' + - 'CONFIG_KFENCE_SAMPLE_INTERVAL=100' + - 'CONFIG_KFENCE_NUM_OBJECTS=255' + - 'CONFIG_KFENCE_STRESS_TEST_FAULTS=0' + - 'CONFIG_LOCKUP_DETECTOR=y' + - 'CONFIG_SOFTLOCKUP_DETECTOR=y' + - 'CONFIG_HARDLOCKUP_DETECTOR=y' + - 'CONFIG_HARDLOCKUP_DETECTOR_PERF=y' + - 'CONFIG_HARDLOCKUP_DETECTOR_COUNTS_HRTIMER=y' + - 'CONFIG_DETECT_HUNG_TASK=y' + - 'CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120' + - 'CONFIG_WQ_WATCHDOG=y' + - 'CONFIG_PROVE_LOCKING=y' + - 'CONFIG_DEBUG_RT_MUTEXES=y' + - 'CONFIG_DEBUG_SPINLOCK=y' + - 'CONFIG_DEBUG_MUTEXES=y' + - 'CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y' + - 'CONFIG_DEBUG_RWSEMS=y' + - 'CONFIG_DEBUG_LOCK_ALLOC=y' + - 'CONFIG_LOCKDEP=y' + - 'CONFIG_LOCKDEP_BITS=15' + - 'CONFIG_LOCKDEP_CHAINS_BITS=16' + - 'CONFIG_LOCKDEP_STACK_TRACE_BITS=19' + - 'CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14' + - 'CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12' + - 'CONFIG_DEBUG_ATOMIC_SLEEP=y' + - 'CONFIG_TRACE_IRQFLAGS=y' + - 'CONFIG_TRACE_IRQFLAGS_NMI=y' + - 'CONFIG_PROVE_RCU=y' + - 'CONFIG_PREEMPTIRQ_TRACEPOINTS=y' + kselftest: path: "kernel/configs/kselftest.config" configs: