Re: [PATCH bpf 1/7] bpf: Fix BPF_PROG_QUERY last field check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

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

On Sat,  7 Oct 2023 00:06:49 +0200 you wrote:
> While working on the ebpf-go [0] library integration for bpf_mprog and tcx,
> Lorenz noticed that two subsequent BPF_PROG_QUERY requests currently fail. A
> typical workflow is to first gather the bpf_mprog count without passing program/
> link arrays, followed by the second request which contains the actual array
> pointers.
> 
> The initial call populates count and revision fields. The second call gets
> rejected due to a BPF_PROG_QUERY_LAST_FIELD bug which should point to
> query.revision instead of query.link_attach_flags since the former is really
> the last member.
> 
> [...]

Here is the summary with links:
  - [bpf,1/7] bpf: Fix BPF_PROG_QUERY last field check
    https://git.kernel.org/bpf/bpf/c/a4fe78386afb
  - [bpf,2/7] bpf: Handle bpf_mprog_query with NULL entry
    https://git.kernel.org/bpf/bpf/c/edfa9af0a73e
  - [bpf,3/7] bpf: Refuse unused attributes in bpf_prog_{attach,detach}
    https://git.kernel.org/bpf/bpf/c/ba62d61128bd
  - [bpf,4/7] selftests/bpf: Test bpf_mprog query API via libbpf and raw syscall
    https://git.kernel.org/bpf/bpf/c/f9b08790fa69
  - [bpf,5/7] selftests/bpf: Adapt assert_mprog_count to always expect 0 count
    https://git.kernel.org/bpf/bpf/c/b77368269dda
  - [bpf,6/7] selftests/bpf: Test query on empty mprog and pass revision into attach
    https://git.kernel.org/bpf/bpf/c/685446b0629b
  - [bpf,7/7] selftests/bpf: Make seen_tc* variable tests more robust
    https://git.kernel.org/bpf/bpf/c/37345b8535b4

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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux