Daniel Axtens
785644d673
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:20:48 +01:00
..
2018-10-03 17:00:47 -07:00
2019-01-13 10:01:06 +01:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:44 +02:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:43 +02:00
2019-01-09 17:14:43 +01:00
2019-02-15 08:09:13 +01:00
2019-02-12 19:46:05 +01:00
2017-05-02 11:46:28 -04:00
2019-01-31 08:13:41 +01:00
2018-09-05 09:26:27 +02:00
2019-01-31 08:13:46 +01:00
2019-02-15 08:09:13 +01:00
2019-02-20 10:20:48 +01:00
2018-09-19 22:43:43 +02:00
2019-02-12 19:46:10 +01:00
2018-02-25 11:07:52 +01:00
2018-07-22 14:28:49 +02:00
2019-02-12 19:46:11 +01:00
2017-06-16 11:48:40 -04:00
2017-08-22 13:40:23 -07:00
2019-01-09 17:14:43 +01:00
2018-04-29 11:33:13 +02:00
2019-02-06 17:31:31 +01:00
2019-02-12 19:46:05 +01:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2018-06-11 22:49:19 +02:00
2018-06-16 09:45:14 +02:00
2019-02-06 17:31:33 +01:00
2017-07-04 22:35:16 +01:00
2018-12-01 09:42:51 +01:00
2019-02-15 08:09:12 +01:00
2018-09-09 19:55:52 +02:00
2018-02-22 15:42:28 +01:00
2017-10-21 01:56:38 +01:00
2019-01-13 10:00:58 +01:00
2018-10-18 09:16:18 +02:00
2018-08-09 12:16:38 +02:00
2019-02-06 17:31:32 +01:00
2018-09-29 03:06:01 -07:00
2018-07-22 14:28:49 +02:00
2019-01-31 08:13:41 +01:00
2019-01-23 08:09:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-01 12:19:03 +09:00
2018-08-24 13:09:13 +02:00
2019-02-12 19:46:10 +01:00
2018-05-16 10:10:26 +02:00
2019-02-06 17:31:32 +01:00
2019-02-12 19:46:10 +01:00
2019-02-20 10:20:48 +01:00
2019-02-06 17:31:33 +01:00
2019-01-09 17:14:46 +01:00
2018-07-22 14:28:47 +02:00
2019-01-23 08:09:50 +01:00
2017-08-07 14:48:48 -07:00
2019-01-23 08:09:51 +01:00
2018-12-05 19:41:11 +01:00
2017-11-02 10:04:46 -07:00
2019-01-09 17:14:45 +01:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:40 +01:00
2017-11-02 11:10:55 +01:00
2019-02-15 08:09:13 +01:00
2019-01-09 17:14:46 +01:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:49 +01:00
2017-04-16 23:42:49 -05:00