Files
twx-linux/include/linux
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-04-24 09:36:39 +02:00
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-08-03 07:50:38 +02:00
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
2018-06-21 04:02:49 +09:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:24 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-09-09 19:55:54 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-11-13 11:15:11 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…