summaryrefslogtreecommitdiff
path: root/Documentation/process
diff options
context:
space:
mode:
authorjunan <junan76@163.com>2026-01-16 13:03:13 +0800
committerJonathan Corbet <corbet@lwn.net>2026-01-20 14:57:02 -0700
commit3c5fefc8f1c87ce5aad32b752abd1c0f4d25a39a (patch)
tree5f80b58f6142a98fccab7e255eba097705467a74 /Documentation/process
parenta66437c27979577fe1feffba502b9eadff13af7d (diff)
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 <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>
Diffstat (limited to 'Documentation/process')
-rw-r--r--Documentation/process/debugging/kgdb.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/process/debugging/kgdb.rst b/Documentation/process/debugging/kgdb.rst
index b29b0aac2717..f2c57de7992f 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
=========