Re: [PATCH bpf v3] bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed
From: patchwork-bot+netdevbpf
Date: Tue Aug 04 2026 - 19:20:58 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Mon, 3 Aug 2026 01:39:34 +0000 you wrote:
> From: Pu Lehui <pulehui@xxxxxxxxxx>
>
> A potential invalid storage access issue can occur after replacing a
> cgroup bpf prog.
>
> This occurs in the following scenario:
> 1. prog1 with storage is attached to a cgroup in multi-attach mode.
> 2. prog1 is replaced with prog2 using BPF_F_REPLACE in multi-attach
> mode, but fails midway (e.g. in bpf_trampoline_link_cgroup_shim or
> update_effective_progs).
> 3. A new prog3 is attached to the cgroup in multi-attach mode.
>
> [...]
Here is the summary with links:
- [bpf,v3] bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed
https://git.kernel.org/bpf/bpf-next/c/6655c409707e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html