summaryrefslogtreecommitdiff
path: root/kernel/bpf/helpers.c
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2025-11-05 21:19:39 +0100
committerMartin KaFai Lau <martin.lau@kernel.org>2025-11-10 10:52:31 -0800
commit290fc0be09e2f6e08754782616bb7e67f8191fa1 (patch)
tree4bfa1d8c8ffbc429d9b2f461b079f70c2786e6e5 /kernel/bpf/helpers.c
parent8989d328dfe7c7a3b9f4b9f0ef60006d277f81cc (diff)
net: Preserve metadata on pskb_expand_head
pskb_expand_head() copies headroom, including skb metadata, into the newly allocated head, but then clears the metadata. As a result, metadata is lost when BPF helpers trigger an skb head reallocation. Let the skb metadata remain in the newly created copy of head. 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-2-5ceb08a9b37b@cloudflare.com
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions