diff options
| author | 2026-11-03 20:00:36 +0000 | |
|---|---|---|
| committer | 2026-11-10 15:24:15 +0100 | |
| commit | 71578e43b8a6723025579a08a707f4975a3cd567 (patch) | |
| tree | 0c542892663d69b29a2d5436ef92fbee3fa98939 /tools/perf/python/stackcollapse.py | |
| parent | net: dsa: microchip: initialize the IRQ access mutex (diff) | |
net: fix mac_len of skbs copied by generic XDP
skb_pp_cow_data() copies the header fields of the old skb with
skb_copy_header(). skb_copy_header() does not copy mac_len.
Generic XDP uses skb_pp_cow_data() for programs with frags support.
After such a program, the skb can have mac_len 0.
cpu_map_generic_redirect() and tc ingress then get the position of the
Ethernet header wrong.
Copy mac_len in skb_pp_cow_data(), as dev_map_generic_redirect() does
after skb_copy().
Fixes: e6d5dbdd20aa ("xdp: add multi-buff support for xdp running in generic mode")
Signed-off-by: Tianyi Gao <tianyi@cloudflare.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/20261103200036.65764-3-tianyi@cloudflare.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
