Re: [bpf-next v2] bpf: Roll back freplace link state when bpf_arch_text_poke() fails

From: patchwork-bot+netdevbpf

Date: Sat Oct 03 2026 - 04:40:55 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Mon, 28 Sep 2026 17:11:21 +0800 you wrote:
> From: Yuan Chen <chenyuan@xxxxxxxxxx>
>
> A freplace attach claims the target prog by bumping
> tgt_prog->aux->freplace_link_cnt and setting tr->extension_prog.
> bpf_arch_text_poke() then makes the extension take effect. If the
> poke fails, the claims are never released: the attach unwinds
> through bpf_link_cleanup(), which clears link->prog, so
> bpf_trampoline_unlink_prog() never runs.
>
> [...]

Here is the summary with links:
- [bpf-next,v2] bpf: Roll back freplace link state when bpf_arch_text_poke() fails
https://git.kernel.org/bpf/bpf-next/c/5ec398d9ec8f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html