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-06-12 16:19:22 -07:00
2018-06-11 14:24:32 -07:00
2018-05-22 10:51:09 +02:00
2018-06-11 16:39:02 -07:00
2018-03-27 13:18:09 -04:00
2018-06-06 18:39:49 -07:00
2017-11-15 11:56:19 -08:00
2018-06-06 18:39:49 -07:00
2017-07-04 22:35:16 +01:00
2018-06-08 19:55:15 -04:00
2018-02-27 10:46:01 +01:00
2018-01-17 00:10:42 -05:00
2018-05-07 23:50:27 -04:00
2015-09-02 15:31:00 -07:00
2018-04-17 13:39:51 -04:00
2017-09-01 20:33:42 -07:00
2018-05-11 00:10:56 +02:00
2017-05-21 13:42:36 -04:00
2018-06-12 16:19:22 -07:00
2017-01-28 10:33:06 -05:00
2018-06-20 08:03:06 +09:00
2018-02-16 15:57:42 -05:00
2018-06-20 07:57:23 +09:00
2018-05-16 07:24:30 +02:00
2018-05-21 16:01:54 -04:00
2017-11-02 11:10:55 +01:00
2018-04-17 13:39:51 -04:00
2018-04-26 15:07:42 -04:00
2016-04-07 16:53:29 -04:00
2018-06-20 14:41:04 +09:00
2018-06-01 13:56:30 -04:00
2016-11-02 15:18:36 -04:00
2018-05-11 20:53:22 -04:00
2018-06-06 18:39:49 -07:00
2016-11-04 14:45:23 -04:00
2018-02-28 11:43:28 -05:00
2018-05-24 11:57:35 +02:00
2017-11-02 11:10:55 +01:00
2015-08-13 17:08:39 -07:00
2018-05-16 07:24:30 +02:00
2016-12-25 17:21:23 +01:00
2018-06-04 10:16:45 -04:00
2018-02-25 20:51:13 +01:00
2017-11-24 01:37:35 +09:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2017-03-24 13:17:07 -07:00
2018-06-04 13:57:43 -07:00
2018-04-18 23:19:39 -04:00
2018-06-11 14:17:19 -07:00
2017-09-01 18:35:23 -07:00
2018-06-03 09:31:58 -04:00
2018-05-24 11:57:36 +02:00
2018-05-29 09:53:38 -04:00
2018-06-01 13:56:30 -04:00
2018-03-25 20:53:54 -04:00
2018-04-25 13:02:15 -04:00
2018-06-14 17:04:41 -07:00
2018-01-22 16:01:30 -05:00
2015-11-03 10:52:13 -05:00
2017-11-02 11:10:55 +01:00
2018-05-08 22:30:06 -04:00
2018-06-08 19:55:15 -04:00
2018-05-16 07:24:30 +02:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2017-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-06-03 09:31:58 -04:00
2017-02-09 10:22:17 +01:00
2018-04-26 07:51:48 +02:00
2018-04-16 07:50:09 +02:00