doc: kgdb: Add description about rodata=off kernel parameter
Subsystems (3)
PATCH 1/1 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.
--- Documentation/process/debugging/kgdb.rst | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/process/debugging/kgdb.rst +7 -0
@@ -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 =========
Signature · 1 line
2.43.0
Quoted 7 lines · junan
STRICT_KERNEL_RWXcan 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 <[email protected]>Suggested-by Will Deacon <[email protected]>
Jonathan: do you want to take this or should I take it via the kgdb tree?
Daniel.
Jonathan Corbet
maintainerQuoted 6 lines · Daniel Thompson
Quoted 5 lines · junan
STRICT_KERNEL_RWXcan not be turned off throught menuconfig on some architectures, pass "rodata=off" to the kernel in this case.Tested with qemu on arm64.
Quoted 7 lines
Quoted 2 lines
Signed-off-by junan <[email protected]>Suggested-by Will Deacon <[email protected]>Reviewed-by Daniel Thompson (RISCstar) <[email protected]>Jonathan: do you want to take this or should I take it via the kgdb tree?
I'm fine either way; I'll pick it up shortly unless you say you've already done so.
Thanks,
jon
Jonathan Corbet
maintainerQuoted 11 lines · Jonathan Corbet
Quoted 9 lines · Daniel Thompson
Quoted 7 lines · junan
STRICT_KERNEL_RWXcan 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 <[email protected]>Suggested-by Will Deacon <[email protected]>
Quoted 7 lines
Quoted 4 lines
Reviewed-by Daniel Thompson (RISCstar) <[email protected]>Jonathan: do you want to take this or should I take it via the kgdb tree?
I'm fine either way; I'll pick it up shortly unless you say you've already done so.
...and I have just done that, thanks.
jon