From 2ae190fdeefc6325f3c4715f5c5749996993eb68 Mon Sep 17 00:00:00 2001 From: Komal Bajaj Date: Tue, 4 Aug 2026 15:30:38 +0530 Subject: [PATCH] QCLINUX: kernel: configs: debug: Disable KASLR for debug builds KASLR randomizes the kernel load address at boot to mitigate address leak exploits. While essential for production, it hinders debugging: breakpoints become unreliable, crash dump analysis is harder, and stack trace symbolication requires a fixed base address. Thus, disable CONFIG_RANDOMIZE_BASE in debug.config only. Signed-off-by: Komal Bajaj --- kernel/configs/debug.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/debug.config b/kernel/configs/debug.config index dc5f7dd084f91..9e067a965105f 100644 --- a/kernel/configs/debug.config +++ b/kernel/configs/debug.config @@ -148,6 +148,7 @@ CONFIG_PREEMPTIRQ_TRACEPOINTS=y CONFIG_PM_ADVANCED_DEBUG=y CONFIG_PM_DEBUG=y CONFIG_PM_SLEEP_DEBUG=y +# CONFIG_RANDOMIZE_BASE is not set CONFIG_SCHED_TRACER=y CONFIG_STACK_TRACER=y CONFIG_TRACEPOINTS=y