Hello:
This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt palmer@rivosinc.com:
On Tue, 19 Nov 2024 12:10:56 +0100 you wrote:
p->ainsn.api.insn is a pointer to u32, therefore arithmetic operations are multiplied by four. This is clearly undesirable for this case.
Cast it to (void *) first before any calculation.
Below is a sample before/after. The dumped memory is two kprobe slots, the first slot has
[...]
Here is the summary with links: - riscv: kprobes: Fix incorrect address calculation https://git.kernel.org/riscv/c/13134cc94914
You are awesome, thank you!