Skip to content
Commit d13f048d authored by Phillip Potter's avatar Phillip Potter Committed by David S. Miller
Browse files

net: geneve: modify IP header check in geneve6_xmit_skb and geneve_xmit_skb



Modify the header size check in geneve6_xmit_skb and geneve_xmit_skb
to use pskb_inet_may_pull rather than pskb_network_may_pull. This fixes
two kernel selftest failures introduced by the commit introducing the
checks:
IPv4 over geneve6: PMTU exceptions
IPv4 over geneve6: PMTU exceptions - nexthop objects

It does this by correctly accounting for the fact that IPv4 packets may
transit over geneve IPv6 tunnels (and vice versa), and still fixes the
uninit-value bug fixed by the original commit.

Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Fixes: 6628ddfe

 ("net: geneve: check skb is large enough for IPv4/IPv6 header")
Suggested-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Signed-off-by: default avatarPhillip Potter <phil@philpotter.co.uk>
Acked-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d742b50
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment