Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1663363pxy; Fri, 23 Apr 2021 13:45:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVNzOD7IRB2LoA6IIQF2cPR2DR745VCM00KvoHL2C9L6RXsYQBqIkfsqe8l7n6jdzW6Q0B X-Received: by 2002:a17:90a:4d86:: with SMTP id m6mr7864621pjh.35.1619210736769; Fri, 23 Apr 2021 13:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619210736; cv=none; d=google.com; s=arc-20160816; b=IKgIn258DptuKOaOVBK1lzyuPcpRfG3QW++TEZvlPYL1/+jhgPm0q8hjdDoACVGPtI KeftPHtsPP2IWGbj9drv1hggbbjz/2Y5K9fpLW0gpFi6D/3n09MBqkXUJwyAQyphHfYB WlYwg4Cbf48Kl1pnHXqeUhCMXu+lKptpPogNQwwrWNZA2RDCZ0VpJTsvvSg4jf22I4mg VjeLsKngnZfX+qY7tf7XZT7mTni9S4/EoN/POIF+fEx1wV8QKD99947LZE2d1r/DCj40 nQWVKYa6gW+969WNOE3iCtx91gQTwRCVx/tPT/gD7AVlmzzbMGlpkf7/BFdFah53c8ks WCeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=CWDAPofLiByxThgHFMxSM9EEFrcS8HPnw8d6OonndVE=; b=st2IPZNLaz//yRq7UtwC+/BBLXlfJ/h4EFO0X+vfKo058WGgir5dhm8UPNAsTCNuwB yhwTWXhD9USQCVyA79cf45CJO96HBdw6JAl5DL3Eel6z6nh9pK9GF9kd+VksCQZt9QOo FQXphbe9iFbdE8M9d5EQpg7hTWy/+K099TZu95jR6AS4MS4T3mOCiFIMgapqcCrkuLFn 6MzfuztiGTif7XNq0aWEDzdS0SIUTmftV2C9hio2rnx7FRR87lsXWxJn5aKFoHF+nNGW GGQ+VqekYKtcwQoSQ6zi9G8abgaNtzZsAZfnhpoG/H+7WmBsVbH0Lst2rnVdFTqOcBw+ 87rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si7853744pgk.113.2021.04.23.13.45.23; Fri, 23 Apr 2021 13:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232636AbhDWUpU (ORCPT + 99 others); Fri, 23 Apr 2021 16:45:20 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:59592 "EHLO mail.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231721AbhDWUpS (ORCPT ); Fri, 23 Apr 2021 16:45:18 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) by mail.monkeyblade.net (Postfix) with ESMTPSA id 9EB294D2ADD04; Fri, 23 Apr 2021 13:44:40 -0700 (PDT) Date: Fri, 23 Apr 2021 13:44:40 -0700 (PDT) Message-Id: <20210423.134440.604990654040210950.davem@davemloft.net> To: sd@queasysnail.net Cc: phil@philpotter.co.uk, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, edumazet@google.com, fw@strlen.de Subject: Re: [PATCH v2] net: geneve: modify IP header check in geneve6_xmit_skb and geneve_xmit_skb From: David Miller In-Reply-To: References: <20210422234945.1190-1-phil@philpotter.co.uk> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Fri, 23 Apr 2021 13:44:40 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sabrina Dubroca Date: Fri, 23 Apr 2021 15:41:17 +0200 > 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 >> Fixes: 6628ddfec758 ("net: geneve: check skb is large enough for IPv4/IPv6 header") >> Suggested-by: Sabrina Dubroca >> Signed-off-by: Phillip Potter >> --- >> >> 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 > > 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 I don't think we will submit another pull req for networking, but thatys ok it'll end up in stable eventually. Thanks.