Re: [PATCH] riscv: kprobes: Fix probe address validation
From: patchwork-bot+linux-riscv
Date: Thu Oct 09 2025 - 22:27:47 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@xxxxxxxxxx>:
On Wed, 10 Sep 2025 17:25:13 +0200 you wrote:
> When adding a kprobe such as "p:probe/tcp_sendmsg _text+15392192",
> arch_check_kprobe would start iterating all instructions starting from
> _text until the probed address. Not only is this very inefficient, but
> literal values in there (e.g. left by function patching) are
> misinterpreted in a way that causes a desync.
>
> Fix this by doing it like x86: start the iteration at the closest
> preceding symbol instead of the given starting point.
>
> [...]
Here is the summary with links:
- riscv: kprobes: Fix probe address validation
https://git.kernel.org/riscv/c/9e68bd803fac
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html