Willem de Bruijn 9887cba199 ip: limit use of gso_size to udp
The ipcm(6)_cookie field gso_size is set only in the udp path. The ip
layer copies this to cork only if sk_type is SOCK_DGRAM. This check
proved too permissive. Ping and l2tp sockets have the same type.

Limit to sockets of type SOCK_DGRAM and protocol IPPROTO_UDP to
exclude ping sockets.

v1 -> v2
- remove irrelevant whitespace changes

Fixes: bec1f6f69736 ("udp: generate gso with UDP_SEGMENT")
Reported-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-20 14:41:04 +09:00
..
2018-03-27 13:18:09 -04:00
2018-05-11 00:10:56 +02:00
2018-06-12 16:19:22 -07:00
2018-04-26 15:07:42 -04:00
2018-06-20 14:41:04 +09:00
2018-02-28 11:43:28 -05:00
2018-05-24 11:57:35 +02:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2017-09-01 18:35:23 -07:00