summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-05-13 11:33:58 -0700
committerDavid S. Miller <davem@davemloft.net>2022-05-16 10:18:55 +0100
commit34b92e8d19da1e44070dc0ecc2747871469ac534 (patch)
treee2d4b9e60646f8b896c6cad40324196c0cc17f94 /net/ipv4
parent7c4e983c4f3cf94fcd879730c6caa877e0768a4d (diff)
downloadlinux-stable-34b92e8d19da1e44070dc0ecc2747871469ac534.tar.gz
linux-stable-34b92e8d19da1e44070dc0ecc2747871469ac534.tar.bz2
linux-stable-34b92e8d19da1e44070dc0ecc2747871469ac534.zip
net: limit GSO_MAX_SIZE to 524280 bytes
Make sure we will not overflow shinfo->gso_segs Minimal TCP MSS size is 8 bytes, and shinfo->gso_segs is a 16bit field. TCP_MIN_GSO_SIZE is currently defined in include/net/tcp.h, it seems cleaner to not bring tcp details into include/linux/netdevice.h Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Alexander Duyck <alexanderduyck@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions