From 3c5fefc8f1c87ce5aad32b752abd1c0f4d25a39a Mon Sep 17 00:00:00 2001 From: junan Date: Fri, 16 Jan 2026 13:03:13 +0800 Subject: [PATCH] doc: kgdb: Add description about rodata=off kernel parameter STRICT_KERNEL_RWX can not be turned off throught menuconfig on some architectures, pass "rodata=off" to the kernel in this case. Tested with qemu on arm64. Signed-off-by: junan Suggested-by: Will Deacon Reviewed-by: Daniel Thompson (RISCstar) Signed-off-by: Jonathan Corbet Message-ID: <20260116050410.772340-2-junan76@163.com> --- Documentation/process/debugging/kgdb.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/process/debugging/kgdb.rst b/Documentation/process/debugging/kgdb.rst index b29b0aac2717d..f2c57de7992f4 100644 --- a/Documentation/process/debugging/kgdb.rst +++ b/Documentation/process/debugging/kgdb.rst @@ -380,6 +380,13 @@ virtual address where the kernel image is mapped and confuses gdb which resolves addresses of kernel symbols from the symbol table of vmlinux. +Kernel parameter: ``rodata`` +---------------------------- + +``CONFIG_STRICT_KERNEL_RWX`` is turned on by default and is not +visible to menuconfig on some architectures (arm64 for example), +you can pass ``rodata=off`` to the kernel in this case. + Using kdb ========= -- 2.47.3