Files
linux/net
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 10:54:58 +09:00
2018-05-16 10:08:44 +02:00
2023-05-15 11:09:51 +09:00
2018-04-13 19:48:29 +02:00
2016-05-29 22:33:25 -07:00
2023-05-15 09:57:35 +09:00
2016-10-20 11:23:08 -04:00
2023-05-15 11:16:19 +09:00
2018-05-16 11:39:34 +02:00
2023-05-15 10:49:15 +09:00
2016-08-17 19:36:23 -04:00
2023-05-15 09:14:58 +09:00