workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: kgdb: Add description about rodata=off kernel parameter
@ 2026-01-16  5:03 junan
  2026-01-19 14:49 ` Daniel Thompson
  0 siblings, 1 reply; 4+ messages in thread
From: junan @ 2026-01-16  5:03 UTC (permalink / raw)
  To: jason.wessel, danielt, dianders, corbet
  Cc: workflows, linux-doc, linux-kernel, junan, Will Deacon

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>
---
 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 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
 =========
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] doc: kgdb: Add description about rodata=off kernel parameter
  2026-01-16  5:03 [PATCH] doc: kgdb: Add description about rodata=off kernel parameter junan
@ 2026-01-19 14:49 ` Daniel Thompson
  2026-01-19 14:54   ` Jonathan Corbet
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Thompson @ 2026-01-19 14:49 UTC (permalink / raw)
  To: junan
  Cc: jason.wessel, dianders, corbet, workflows, linux-doc,
	linux-kernel, Will Deacon

On Fri, Jan 16, 2026 at 01:03:13PM +0800, junan wrote:
> 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>

Jonathan: do you want to take this or should I take it via the kgdb
tree?


Daniel.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] doc: kgdb: Add description about rodata=off kernel parameter
  2026-01-19 14:49 ` Daniel Thompson
@ 2026-01-19 14:54   ` Jonathan Corbet
  2026-01-20 21:57     ` Jonathan Corbet
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Corbet @ 2026-01-19 14:54 UTC (permalink / raw)
  To: Daniel Thompson, junan
  Cc: jason.wessel, dianders, workflows, linux-doc, linux-kernel, Will Deacon

Daniel Thompson <danielt@kernel.org> writes:

> On Fri, Jan 16, 2026 at 01:03:13PM +0800, junan wrote:
>> 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>
>
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] doc: kgdb: Add description about rodata=off kernel parameter
  2026-01-19 14:54   ` Jonathan Corbet
@ 2026-01-20 21:57     ` Jonathan Corbet
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2026-01-20 21:57 UTC (permalink / raw)
  To: Daniel Thompson, junan
  Cc: jason.wessel, dianders, workflows, linux-doc, linux-kernel, Will Deacon

Jonathan Corbet <corbet@lwn.net> writes:

> Daniel Thompson <danielt@kernel.org> writes:
>
>> On Fri, Jan 16, 2026 at 01:03:13PM +0800, junan wrote:
>>> 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>
>>
>> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-20 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-16  5:03 [PATCH] doc: kgdb: Add description about rodata=off kernel parameter junan
2026-01-19 14:49 ` Daniel Thompson
2026-01-19 14:54   ` Jonathan Corbet
2026-01-20 21:57     ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox