[PATCH v2 0/2] riscv: fix kprobes on minimal kernel configs

Xiaofeng Yuan posted 2 patches 5 days, 19 hours ago
There is a newer version of this series
arch/riscv/kernel/patch.c | 3 ++-
arch/riscv/mm/init.c      | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
[PATCH v2 0/2] riscv: fix kprobes on minimal kernel configs
Posted by Xiaofeng Yuan 5 days, 19 hours ago
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 (per Nam Cao's review)

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 | 3 ++-
 arch/riscv/mm/init.c      | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)