Files
erofs-linux/net/ipv4
Jianguo Wu 158390e456 udp: using datalen to cap max gso segments
The max number of UDP gso segments is intended to cap to UDP_MAX_SEGMENTS,
this is checked in udp_send_skb():

    if (skb->len > cork->gso_size * UDP_MAX_SEGMENTS) {
        kfree_skb(skb);
        return -EINVAL;
    }

skb->len contains network and transport header len here, we should use
only data len instead.

Fixes: bec1f6f697 ("udp: generate gso with UDP_SEGMENT")
Signed-off-by: Jianguo Wu <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2021-12-09 07:48:07 -08:00
..
2021-11-15 14:22:12 +00:00
2021-06-07 14:08:30 -07:00
2021-08-31 12:03:33 +01:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-07-07 20:52:25 -07:00
…
…
…
…
…
…
…
…
…
2021-08-31 12:03:33 +01:00
…