[PATCH] riscv: kprobes: Add test case for c.jal instruction simulation
Xiaofeng Yuan
xiaofengmian at 163.com
Wed Jul 1 03:46:31 PDT 2026
Hi Nam,
Thanks again for the test case — it has been included in the v6 c.jal
series, credited to you.
Regarding the QEMU hang I asked you about earlier: I found the root
cause. The hang was not a QEMU issue — it was caused by
EXECMEM_KPROBES allocating read-only pages without writable
permissions when CONFIG_STRICT_MODULE_RWX is not enabled (as happens
with an allnoconfig-derived config). This affects both RV32 and RV64.
I have submitted a separate fix series titled "riscv: fix kprobes on
minimal kernel configs" to address this.
Best regards,
Xiaofeng
More information about the linux-riscv
mailing list