Files
twx-linux/net/ipv4
Willem de Bruijn 33dc6a6a85 udp: consistently apply ufo or fragmentation
[ Upstream commit 85f1bd9a7b ]

When iteratively building a UDP datagram with MSG_MORE and that
datagram exceeds MTU, consistently choose UFO or fragmentation.

Once skb_is_gso, always apply ufo. Conversely, once a datagram is
split across multiple skbs, do not consider ufo.

Sendpage already maintains the first invariant, only add the second.
IPv6 does not have a sendpage implementation to modify.

A gso skb must have a partial checksum, do not follow sk_no_check_tx
in udp_send_skb.

Found by syzkaller.

Fixes: e89e9cf539 ("[IPv4/IPv6]: UFO Scatter-gather approach")
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-12 19:31:22 -07:00
..
2017-06-17 06:41:50 +02:00
2016-10-20 14:32:22 -04:00
2016-10-20 14:32:22 -04:00
2016-09-21 00:23:01 -04:00
2017-05-03 08:36:34 -07:00
2017-03-22 12:43:34 +01:00
2017-05-14 14:00:21 +02:00
2017-06-17 06:41:49 +02:00
2016-09-21 00:23:00 -04:00
2017-07-21 07:42:17 +02:00