Re: [PATCH bpf-next v1] bpftool: Skip prog/map that disappears while looking it up by name

From: patchwork-bot+netdevbpf

Date: Mon Jul 20 2026 - 11:26:08 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:

On Mon, 20 Jul 2026 15:15:18 +0800 you wrote:
> Looking up a prog or map by name walks the whole id space. There is a
> window between bpf_prog_get_next_id()/bpf_map_get_next_id() and getting
> an fd for that id in which an unrelated object can be freed, and the
> lookup then fails with ENOENT and aborts the whole command.
>
> Skip such ids and keep walking, the same way do_show() already does.
>
> [...]

Here is the summary with links:
- [bpf-next,v1] bpftool: Skip prog/map that disappears while looking it up by name
https://git.kernel.org/bpf/bpf-next/c/cfce77b63375

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