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