Re: [PATCH] riscv: kprobes: Fix incorrect address calculation
From: patchwork-bot+linux-riscv
Date: Thu Jan 09 2025 - 11:18:22 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html