Daniel Axtens
746eb509a2
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 >
2023-05-15 11:34:08 +09:00
..
2023-05-15 08:28:39 +09:00
2023-05-15 10:54:58 +09: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
2023-05-15 10:48:52 +09:00
2023-05-15 11:30:29 +09:00
2023-05-15 11:23:02 +09:00
2023-05-15 11:09:51 +09:00
2023-05-12 17:13:20 +09:00
2023-05-15 11:10:35 +09:00
2023-05-15 11:30:26 +09:00
2023-05-15 11:34:08 +09:00
2023-05-15 08:14:38 +09:00
2023-05-15 11:23:43 +09:00
2018-02-25 11:05:44 +01:00
2023-05-12 16:29:40 +09:00
2023-05-15 11:23:49 +09:00
2017-02-18 15:11:43 +01:00
2018-04-13 19:48:29 +02:00
2023-05-15 10:48:54 +09:00
2023-05-15 11:16:14 +09:00
2023-05-15 11:23:02 +09:00
2017-05-25 15:44:41 +02:00
2023-05-12 17:27:16 +09: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
2023-05-15 11:16:25 +09:00
2016-09-10 23:12:53 -07:00
2016-05-29 22:33:25 -07:00
2023-05-15 09:57:35 +09:00
2023-05-15 11:30:17 +09:00
2023-05-12 17:22:30 +09:00
2018-03-11 16:21:34 +01:00
2016-10-20 11:23:08 -04:00
2023-05-15 10:54:14 +09:00
2023-05-15 09:01:53 +09:00
2023-05-12 16:46:06 +09:00
2023-05-15 11:16:19 +09:00
2023-05-12 16:29:47 +09:00
2023-05-15 11:09:52 +09:00
2023-05-15 11:01:18 +09:00
2016-02-11 03:54:14 -05:00
2023-05-12 17:06:21 +09:00
2023-05-15 11:23:46 +09:00
2018-05-16 11:39:34 +02:00
2023-05-15 11:16:20 +09:00
2023-05-15 11:23:44 +09:00
2023-05-15 11:34:08 +09:00
2023-05-15 11:01:40 +09:00
2018-04-29 11:32:02 +02:00
2023-05-15 11:01:37 +09:00
2016-10-19 10:58:04 -04:00
2023-05-15 11:01:45 +09:00
2019-05-06 21:14:10 +08:00
2023-05-15 10:49:08 +09:00
2015-08-09 22:43:52 -07:00
2023-05-15 09:11:46 +09:00
2018-04-13 19:48:00 +02:00
2023-05-15 11:30:27 +09:00
2023-05-15 10:49:15 +09:00
2018-02-28 15:09:58 -08:00
2016-08-17 19:36:23 -04:00
2023-05-15 09:14:58 +09:00
2016-10-06 09:52:23 -07:00