]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Make bpf_skb_change_head helper metadata-safe
authorJakub Sitnicki <jakub@cloudflare.com>
Wed, 5 Nov 2025 20:19:46 +0000 (21:19 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 10 Nov 2025 18:52:32 +0000 (10:52 -0800)
commitfb206fc3129bc9d4749905d4870ba05dc89126d2
treed8184610f05ca923e4a77ab73a2ce43e5227f7b4
parent8cfc172ce28e6559d4d2d1a96df77f0f2d6179d6
bpf: Make bpf_skb_change_head helper metadata-safe

Although bpf_skb_change_head() doesn't move packet data after skb_push(),
skb metadata still needs to be relocated. Use the dedicated helper to
handle it.

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-9-5ceb08a9b37b@cloudflare.com
net/core/filter.c