Skip to content

net: gso: limit recursive IP-in-IP segmentation

Zihan Xi lkml netdev stable 6 versions – Applied

Status from this message: This patch was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest1 patch 1 replyApplied 1/1
  2. v51 patch 1 replySuperseded
  3. v41 patch 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v31 patch2 repliesSuperseded
v21 patch0 repliesSuperseded
v11 patch4 repliesSuperseded

Patches in v6 All 1 applied

#Subject and filesSizeRepliesApplied
1/1net: gso: limit recursive IP-in-IP segmentationinclude/net/gso.h net/core/gso.c net/ipv4/af_inet.c +1 more+16 -01 replyApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchWillem de Bruijn
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH net v6 0/1] net: gso: limit recursive IP-in-IP segmentation

Hi Linux kernel maintainers,

This reroll uses IP_TUNNEL_RECURSION_LIMIT directly for the shared IPv4/IPv6 GSO recursion check and adds the requested Closes tag.

The v5 cover letter has the bug details, PoC, and validation evidence:
https://lore.kernel.org/all/[email protected]/

The v6 code was rebuilt and the PoC was rerun on x86_64. The BPF/veth path sent 65536 bytes; tracefs observed six inet_gso_segment() entries, with the sixth returning -EINVAL. The UID 65534 namespace-only path completed with depth 180, gso_size 1400, and sendmsg() returning 3676. No stack-guard, BUG, Oops, or panic was observed. IPv6 was build-enabled but was not separately exercised at runtime.

Best regards,
Zihan Xi

Zihan Xi (1):
net: gso: limit recursive IP-in-IP segmentation

 include/net/gso.h      | 8 ++++++++
 net/core/gso.c         | 1 +
 net/ipv4/af_inet.c     | 3 +++
 net/ipv6/ip6_offload.c | 4 ++++
 4 files changed, 16 insertions(+)
Signature · 1 line
2.25.1