Re: [PATCH bpf-next v2] bpf: Fix concurrent regression in map_create()

From: patchwork-bot+netdevbpf

Date: Thu May 28 2026 - 23:00:34 EST


Hello:

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

On Thu, 21 May 2026 22:29:09 +0800 you wrote:
> Because there is time gap between bpf_map_new_fd() and close_fd(), a
> concurrent thread is able to close the new fd and opens a new, unrelated
> file with the exact same fd number. Thereafter, this close_fd() might
> inadvertently close the unrelated file.
>
> To avoid such regression, do finalize log before security_bpf_map_create().
>
> [...]

Here is the summary with links:
- [bpf-next,v2] bpf: Fix concurrent regression in map_create()
https://git.kernel.org/bpf/bpf-next/c/9b435d23f51e

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