[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YILOfTt6qKNwYtV6@hog>
Date: Fri, 23 Apr 2021 15:41:17 +0200
From: Sabrina Dubroca <sd@...asysnail.net>
To: Phillip Potter <phil@...lpotter.co.uk>
Cc: davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, edumazet@...gle.com, fw@...len.de
Subject: Re: [PATCH v2] net: geneve: modify IP header check in
geneve6_xmit_skb and geneve_xmit_skb
2021-04-23, 00:49:45 +0100, Phillip Potter wrote:
> 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: kernel test robot <oliver.sang@...el.com>
> Fixes: 6628ddfec758 ("net: geneve: check skb is large enough for IPv4/IPv6 header")
> Suggested-by: Sabrina Dubroca <sd@...asysnail.net>
> Signed-off-by: Phillip Potter <phil@...lpotter.co.uk>
> ---
>
> V2:
> * Incorporated feedback from Sabrina Dubroca regarding pskb_inet_may_pull
> * Added Fixes: tag as requested by Eric Dumazet
Thanks Phillip.
Acked-by: Sabrina Dubroca <sd@...asysnail.net>
Jakub/David, it would be great if this could get in 5.12, otherwise
geneve is a bit broken:
https://bugzilla.kernel.org/show_bug.cgi?id=212749
--
Sabrina
Powered by blists - more mailing lists