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