Thread (3 messages) 3 messages, 3 authors, 2021-12-09

Re: [PATCH] udp: using datalen to cap max gso segments

flat view

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2021-12-08 14:59:09

On Wed, Dec 8, 2021 at 5:03 AM Jianguo Wu [off-list ref] wrote:
From: Jianguo Wu <redacted>

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: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT")
Signed-off-by: Jianguo Wu <redacted>
Reviewed-by: Willem de Bruijn <willemb@google.com>

Thanks Jianguo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help