Re: [PATCH bpf-next v3 0/4] libbpf: Move section-defined program flags to prog_flags
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-03 00:31:13
Also in:
bpf
Hello: This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko [off-list ref]: On Tue, 01 Sep 2026 10:46:53 +0200 you wrote:
This series moves the libbpf section-defined program flags into bpf_program->prog_flags, thereby making them available for applications to inspect and modify before loading the program into the kernel. See patch 3 in the series for details. Setting program flags with bpf_program__set_flags() was always potentially a destructive action, as it clobbers any existing flags. Since this changes the flags value to be pre-populated at initialisation, this clobbering can be visible in cases it wasn't before. To prevent any fallout, the first two commits fixes up existing in-tree users of bpf_program__set_flags() to be non-destructive. [...]
Here is the summary with links:
- [bpf-next,v3,1/4] bpftool: Set BPF_F_XDP_DEV_BOUND_ONLY flag non-destructively
https://git.kernel.org/bpf/bpf-next/c/06d6f845c4bd
- [bpf-next,v3,2/4] selftests/bpf: Set BPF program flags non-destructively
https://git.kernel.org/bpf/bpf-next/c/d6746a246b36
- [bpf-next,v3,3/4] libbpf: Move section-defined program flags to prog_flags
https://git.kernel.org/bpf/bpf-next/c/d6b633b585f3
- [bpf-next,v3,4/4] selftests/bpf: Check for flag presence in bpf_program__flags()
https://git.kernel.org/bpf/bpf-next/c/99c71666dcb1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html