Re: [PATCH bpf-next 1/2] bpf: fix cgroup_skb prog test run direct packet access

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

 



Hello:

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

On Mon, 25 Nov 2024 15:26:02 +0000 you wrote:
> This is needed in the context of Tetragon to test cgroup_skb programs
> using BPF_PROG_TEST_RUN with direct packet access.
> 
> Commit b39b5f411dcf ("bpf: add cg_skb_is_valid_access for
> BPF_PROG_TYPE_CGROUP_SKB") added direct packet access for cgroup_skb
> programs and following commit 2cb494a36c98 ("bpf: add tests for direct
> packet access from CGROUP_SKB") added tests to the verifier to ensure
> that access to skb fields was possible and also fixed
> bpf_prog_test_run_skb. However, is_direct_pkt_access was never set to
> true for this program type, so data pointers were not computed when
> using prog_test_run, making data_end always equal to zero (data_meta is
> not accessible for cgroup_skb).
> 
> [...]

Here is the summary with links:
  - [bpf-next,1/2] bpf: fix cgroup_skb prog test run direct packet access
    https://git.kernel.org/bpf/bpf-next/c/a4bc2d977a67
  - [bpf-next,2/2] selftests/bpf: add cgroup skb direct packet access test
    https://git.kernel.org/bpf/bpf-next/c/6398ef949aba

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