Re: [PATCH bpf-next] bpf: prevent leak of lsm program after failed attach

From: patchwork-bot+netdevbpf
Date: Tue Dec 13 2022 - 21:20:25 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@xxxxxxxxxx>:

On Tue, 13 Dec 2022 12:57:14 -0500 you wrote:
> In [0], we added the ability to bpf_prog_attach LSM programs to cgroups,
> but in our validation to make sure the prog is meant to be attached to
> BPF_LSM_CGROUP, we return too early if the check fails. This results in
> lack of decrementing prog's refcnt (through bpf_prog_put)
> leaving the LSM program alive past the point of the expected lifecycle.
> This fix allows for the decrement to take place.
>
> [...]

Here is the summary with links:
- [bpf-next] bpf: prevent leak of lsm program after failed attach
https://git.kernel.org/bpf/bpf-next/c/2958c237fd1e

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