All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] riscv: fix kprobes on minimal kernel configs
@ 2026-07-19  9:30 ` Xiaofeng Yuan
  0 siblings, 0 replies; 8+ messages in thread
From: Xiaofeng Yuan @ 2026-07-19  9:30 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou
  Cc: Alexandre Ghiti, Nam Cao, linux-riscv, linux-kernel

When building with an allnoconfig-derived minimal configuration
(without CONFIG_STRICT_MODULE_RWX), kprobes fails because
instruction slot pages from EXECMEM_KPROBES are read-only and
patch_map() bypasses the fixmap writable alias.

These two patches fix the infrastructure.

v2:
  - use CONFIG_STRICT_MODULE_RWX instead of CONFIG_ARCH_HAS_EXECMEM_ROX
    in PATCH 1/2
  - add commit description to PATCH 2/2
v3:
  - simplify PATCH 2/2: early return when !CONFIG_STRICT_MODULE_RWX
    (suggested by Nam Cao)

Xiaofeng Yuan (2):
  riscv: mm: make EXECMEM_KPROBES writable without
    CONFIG_STRICT_MODULE_RWX
  riscv: patch: skip fixmap mapping when kernel text is already
    writable

 arch/riscv/kernel/patch.c | 4 ++--
 arch/riscv/mm/init.c      | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2026-07-19 18:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-19  9:30 [PATCH v3 0/2] riscv: fix kprobes on minimal kernel configs Xiaofeng Yuan
2026-07-19  9:30 ` Xiaofeng Yuan
2026-07-19  9:30 ` [PATCH v3 1/2] riscv: mm: make EXECMEM_KPROBES writable without CONFIG_STRICT_MODULE_RWX Xiaofeng Yuan
2026-07-19  9:30   ` Xiaofeng Yuan
2026-07-19 18:38   ` Nam Cao
2026-07-19 18:38     ` Nam Cao
2026-07-19  9:30 ` [PATCH v3 2/2] riscv: patch: skip fixmap mapping when kernel text is already writable Xiaofeng Yuan
2026-07-19  9:30   ` Xiaofeng Yuan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.