]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
doc: kgdb: Add description about rodata=off kernel parameter
authorjunan <junan76@163.com>
Fri, 16 Jan 2026 05:03:13 +0000 (13:03 +0800)
committerJonathan Corbet <corbet@lwn.net>
Tue, 20 Jan 2026 21:57:02 +0000 (14:57 -0700)
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 <junan76@163.com>
Suggested-by: Will Deacon <will@kernel.org>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260116050410.772340-2-junan76@163.com>

Documentation/process/debugging/kgdb.rst

index b29b0aac2717d159c3ebf2ebf31c1c765d6afa46..f2c57de7992f4d4c71f09d06fba77a186702fecd 100644 (file)
@@ -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
 =========