Re: [PATCH] riscv: kprobes: Add test case for c.jal instruction simulation

From: Xiaofeng Yuan

Date: Wed Jul 01 2026 - 06:50:41 EST


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