Re: [PATCH bpf-next] riscv, bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free
From: patchwork-bot+netdevbpf
Date: Thu Sep 24 2026 - 17:53:18 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 23 Sep 2026 14:42:16 +0000 you wrote:
> From: Pu Lehui <pulehui@xxxxxxxxxx>
>
> 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