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
..
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-21 15:57:07 -08:00
2018-06-06 18:39:49 -07:00
2018-06-04 13:57:43 -07:00
2018-06-17 08:27:01 +09:00
2018-06-04 13:57:43 -07:00
2018-05-26 19:46:15 -04:00
2018-06-12 16:19:22 -07:00
2018-04-18 23:34:16 +02:00
2018-06-20 09:07:46 +09:00
2018-06-16 07:39:34 +09:00
2018-05-26 09:16:44 +02:00
2018-06-12 16:19:22 -07:00
2018-06-15 07:24:58 +09:00
2018-06-20 08:12:57 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-06 18:39:49 -07:00
2018-04-17 15:17:41 -04:00
2018-06-11 14:19:38 -07:00
2018-05-08 00:02:36 -04:00
2017-10-25 13:00:27 +09:00
2018-06-12 16:19:22 -07:00
2018-04-22 21:12:00 -04:00
2018-06-20 14:41:04 +09:00
2018-06-20 14:41:04 +09:00
2018-05-26 09:16:44 +02:00
2018-06-04 13:57:43 -07:00
2018-06-04 13:57:43 -07:00
2018-06-15 09:12:37 -07:00
2017-11-21 16:35:54 -08:00
2018-06-04 13:57:43 -07:00
2018-06-16 07:39:34 +09:00
2018-03-28 22:55:18 +02:00
2018-03-27 13:18:09 -04:00
2018-06-20 07:26:58 +09:00
2018-06-16 07:39:34 +09:00
2018-05-14 17:24:18 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-06 18:39:49 -07:00
2018-05-04 12:54:38 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-04 13:57:43 -07:00
2017-11-01 12:19:03 +09:00
2018-06-06 18:39:49 -07:00
2018-06-16 07:39:34 +09:00
2018-05-23 11:26:45 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-20 09:03:58 +09:00
2018-06-16 07:39:34 +09:00
2018-06-16 07:39:34 +09:00
2018-06-06 14:07:53 -04:00
2018-06-12 18:28:00 -07:00
2017-11-10 13:41:40 +09:00
2018-06-12 16:19:22 -07:00
2018-06-15 09:14:30 -07:00
2018-06-04 13:57:43 -07:00
2018-05-26 09:16:44 +02:00
2017-11-02 11:10:55 +01:00
2018-06-16 07:39:34 +09:00
2018-06-04 13:57:43 -07:00
2018-06-12 12:19:04 +02:00
2018-06-06 18:39:49 -07:00
2018-04-27 19:46:06 -04:00
2018-05-28 22:59:54 -04:00
2018-06-05 10:21:18 -04:00
2018-06-10 12:25:53 -07:00
2018-03-27 13:18:09 -04:00