Daniel Axtens
84d8c3a7e1
net: create skb_gso_validate_mac_len()
...
commit 2b16f04872 upstream
If you take a GSO skb, and split it into packets, will the MAC
length (L2 + L3 + L4 headers + payload) of those packets be small
enough to fit within a given length?
Move skb_gso_mac_seglen() to skbuff.h with other related functions
like skb_gso_network_seglen() so we can use it, and then create
skb_gso_validate_mac_len to do the full calculation.
Signed-off-by: Daniel Axtens <dja@axtens.net >
Signed-off-by: David S. Miller <davem@davemloft.net >
[jwang: cherry pick for CVE-2018-1000026]
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-02-20 10:18:28 +01:00
..
2018-10-03 17:01:42 -07:00
2019-01-13 10:03:52 +01:00
2015-03-02 16:43:41 -05:00
2018-04-13 19:48:34 +02:00
2016-09-10 21:19:10 -07:00
2018-05-16 10:08:44 +02:00
2019-01-09 16:16:39 +01:00
2019-02-15 08:07:39 +01:00
2019-02-12 19:44:56 +01:00
2019-01-31 08:12:33 +01:00
2018-09-05 09:20:00 +02:00
2019-01-31 08:12:36 +01:00
2019-02-15 08:07:39 +01:00
2019-02-20 10:18:28 +01:00
2018-09-19 22:47:15 +02:00
2019-02-12 19:44:59 +01:00
2018-02-25 11:05:44 +01:00
2018-07-22 14:27:39 +02:00
2019-02-12 19:45:00 +01:00
2017-02-18 15:11:43 +01:00
2018-04-13 19:48:29 +02:00
2019-01-09 16:16:40 +01:00
2019-02-06 17:33:26 +01:00
2019-02-12 19:44:56 +01:00
2017-05-25 15:44:41 +02:00
2018-09-15 09:43:01 +02:00
2018-03-31 18:11:34 +02:00
2018-06-13 16:16:42 +02:00
2018-06-16 09:52:32 +02:00
2019-02-06 17:33:27 +01:00
2016-09-10 23:12:53 -07:00
2016-05-29 22:33:25 -07:00
2018-12-01 09:44:19 +01:00
2019-02-15 08:07:38 +01:00
2018-09-09 20:01:19 +02:00
2018-03-11 16:21:34 +01:00
2016-10-20 11:23:08 -04:00
2019-01-13 10:03:48 +01:00
2018-10-18 09:13:22 +02:00
2018-08-09 12:17:59 +02:00
2019-02-06 17:33:27 +01:00
2018-09-29 03:07:30 -07:00
2019-01-31 08:12:33 +01:00
2019-01-23 08:10:54 +01:00
2016-02-11 03:54:14 -05:00
2018-08-24 13:12:36 +02:00
2019-02-12 19:45:00 +01:00
2018-05-16 10:08:43 +02:00
2019-02-06 17:33:27 +01:00
2019-02-12 19:44:59 +01:00
2019-02-20 10:18:28 +01:00
2019-01-23 08:10:56 +01:00
2018-04-29 11:32:02 +02:00
2019-01-23 08:10:55 +01:00
2016-10-19 10:58:04 -04:00
2019-01-23 08:10:56 +01:00
2017-11-18 11:22:22 +01:00
2019-01-09 16:16:41 +01:00
2015-08-09 22:43:52 -07:00
2018-11-10 07:42:42 -08:00
2018-04-13 19:48:00 +02:00
2019-02-15 08:07:39 +01:00
2019-01-09 16:16:41 +01:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00
2018-11-10 07:42:58 -08:00
2016-10-06 09:52:23 -07:00