[PATCH bpf-next] riscv, bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Thu Sep 24 14:50:05 PDT 2026
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast at kernel.org>:
On Wed, 23 Sep 2026 14:42:16 +0000 you wrote:
> From: Pu Lehui <pulehui at huawei.com>
>
> When CFI is enabled, the actual BPF program entry point is shifted
> forward by a CFI preamble. During bpf_jit_free(), this shifted pointer
> causes the wrong ro_header to be fetched, leading to a potential invalid
> memory free.
>
> [...]
Here is the summary with links:
- [bpf-next] riscv, bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free
https://git.kernel.org/bpf/bpf-next/c/93df8ae3267f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list