net: gro: fix frag0 and remcsum handling
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 0 repliesApplied 2/2
- v32 patches 2 repliesSuperseded
- v22 patches 1 replySuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
- Patch 1: make skb_gro_receive_list() refuse packets with an adjusted checksum, instead of restoring it for fraglist members, which was wrong for VXLAN packets decapsulated locally (Sashiko).
- Patch 2: do not hold the packet if the pull in gro_try_pull_from_frag0() fails (Sashiko).
Patches in v4 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: gro: do not undo remote checksum offload on merged packetsinclude/ net/ | +14 | 0 replies | Applied |
| 2/2 | net: gro: invalidate frag0 after a pullinclude/ net/ net/ +2 more | +29 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH net v4 0/2] net: gro: fix frag0 and remcsum handling
Two GRO fixes for paths using remote checksum offload (VXLAN, GUE) and for NAPI_GRO_CB(skb)->frag0 after a pull.
Patch 1 skips skb_gro_remcsum_cleanup() once the skb was merged, as grc->offset can no longer be trusted, and no longer builds fraglist packets with an adjusted inner checksum.
Patch 2 invalidates frag0 before a pull, which commit bd56a29c7a4e ("net: gro: change skb_gro_network_header()") stopped doing.
v4:
- Patch 1: make skb_gro_receive_list() refuse packets with an adjusted checksum, instead of restoring it for fraglist members, which was wrong for VXLAN packets decapsulated locally (Sashiko).
- Patch 2: do not hold the packet if the pull in gro_try_pull_from_frag0() fails (Sashiko).
v3: https://lore.kernel.org/netdev/[email protected]/
- Patch 1: restore the inner checksum of fraglist members instead of keeping the adjusted value, which was wrong for forwarded packets and for GUE. Only restore it when it is part of the headers pulled by skb_gro_receive_list(), as start and offset come from the packet. Mention FOU_F_REMCSUM_NOPARTIAL (Sashiko).
- Patch 2: only use frag0 in gro_try_pull_from_frag0() while frag0_len is not zero, to not corrupt headers after a failed pull (Sashiko).
- Explain how the issues were found (netdev bot).
v2: https://lore.kernel.org/netdev/[email protected]/
- Patch 1: reword the comment and changelog: skb->data is not always moved (frag/head steal).
- Patch 2: invalidate frag0 before the pull, as __pskb_pull_tail() can fail after pskb_expand_head() freed the old head (Sashiko).
- Patch 2: add a Fixes: tag for UDP fraglist GRO, which pulls directly since before bd56a29c7a4e (Sashiko).
- CC Tom Herbert and stable.
v1: https://lore.kernel.org/netdev/[email protected]/
Eric Dumazet (2):
net: gro: do not undo remote checksum offload on merged packets
net: gro: invalidate frag0 after a pull
include/net/gro.h | 18 +++++++++++++++++- net/core/gro.c | 27 +++++++++++++++++++++++---- net/ipv4/esp4_offload.c | 1 + net/ipv4/udp_offload.c | 1 + net/ipv6/esp6_offload.c | 1 + 5 files changed, 43 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0