]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Cover skb metadata access after change_head/tail helper
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 5 Nov 2025 20:19:52 +0000 (21:19 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 10 Nov 2025 18:52:33 +0000 (10:52 -0800)
commit85d454afef612f880c69cb39a7d74772a24411d3
tree351d7509b227be3737bdda473e324e412c81a03f
parent29960e635b01b148e6db5a84957f99423fd85464
selftests/bpf: Cover skb metadata access after change_head/tail helper

Add a test to verify that skb metadata remains accessible after calling
bpf_skb_change_head() and bpf_skb_change_tail(), which modify packet
headroom/tailroom and can trigger head reallocation.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20251105-skb-meta-rx-path-v4-15-5ceb08a9b37b@cloudflare.com
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
tools/testing/selftests/bpf/progs/test_xdp_meta.c