]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: Revert "ip6_gre: add validation for csum_start"
authorWillem de Bruijn <willemb@google.com>
Mon, 6 Sep 2021 14:27:38 +0000 (10:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Sep 2021 15:41:54 +0000 (16:41 +0100)
commitd34f256d87e6a064b9fdc87754d774f13e5eb294
tree41d183c84acd786a058b25026308b0923b01a0db
parentf67211f9453999415ef45861efdd18990cf0f651
ip6_gre: Revert "ip6_gre: add validation for csum_start"

This reverts commit 7f5dc5434770791146a23cb5e2ebdfdf8e282b62.

This commit was added for equivalence with a similar fix to ip_gre.
That fix proved to have a bug. Upon closer inspection, ip6_gre is not
susceptible to the original bug.

So revert the unnecessary extra check.

In short, ipgre_xmit calls skb_pull to remove ipv4 headers previously
inserted by dev_hard_header. ip6gre_tunnel_xmit does not.

Link: https://lore.kernel.org/netdev/CA+FuTSe+vJgTVLc9SojGuN-f9YQ+xWLPKE_S4f=f+w+_P2hgUg@mail.gmail.com/#t
Fixes: 7f5dc5434770 ("ip6_gre: add validation for csum_start")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c