Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1372531pxy; Fri, 23 Apr 2021 06:42:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbRSUXhJ8CO/DgB/yRT/s5PQSCgYjIAJhX9pUBvJq34bRzqHG79c2/SLknb0zlFr8zlZ3F X-Received: by 2002:aa7:d693:: with SMTP id d19mr4688432edr.8.1619185377758; Fri, 23 Apr 2021 06:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619185377; cv=none; d=google.com; s=arc-20160816; b=KA77wgXNIdYeSalWgVT20KcSyl4eEbWVXRlTHkVcVf53uak27DGp2IrynWviH2x0b9 BhQNBCH8ySfrmBoccX9RDB54Oit0zuwsp6WqjupgiwqXibXX0Cu2VmvaQzaUPHdaHLL5 0rNXTNgJlXn5arkB0X49vwIqYqVn5UJm6nROGJ/bcSQpmK3GLtJAfMiWq1w/NvtraclC 76yM66oUHjQzCDX/TeNv0YTD5C0agHs7IgqWBSol5KPFFYXpvkqXh531uqi5U7eKCsBT uOZJdf+F/rRyapy1gYRXDxhyL04ZlpYKtivS6b1UaWCs9ZJzpr3ykO12ZEUnkhAf5OGh 9rew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :in-reply-to:mime-version:references:message-id:subject:cc:to:from :date; bh=vY4kg8tAfZWt9ntMHQN6jOZEdCwtnxG7WEvlhuuOiLw=; b=efo/EEQa+vyLBrxQbYnSsOK8QHVddojsVc4mZMXgzpIBUX90S3DYz8exKggr4phMmO IqkDJYQtVhHTbHDShCpKILrBUn9o5Ss8xPAQsXO62dzF+SbJ+6ys40R0RflGVKJ6VrIk W461glpNDVyiE19CLXtvt5W2rvt53Lw9Jk1JMBcunsmUxNDoSTaYiUSHzZ9Ghb60aHi5 Rf+0PHhEcPbhHW0cRU8Wdvl3tvnMoWKWwQU2a2INA8dZK5hZ2KwStoivKqvtD0pHpEOx bW/tnME7EzgiHC52yan1DZSgtjbVlqkFHp+93RZz/U54+utMO/FRQKwevj/X5qpf+4uw jC9g== 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 a18si5260149ejb.116.2021.04.23.06.42.34; Fri, 23 Apr 2021 06:42:57 -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 S231362AbhDWNmD convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Apr 2021 09:42:03 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:43457 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbhDWNmB (ORCPT ); Fri, 23 Apr 2021 09:42:01 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-350-8QsdtI__OD24co9640BgGw-1; Fri, 23 Apr 2021 09:41:22 -0400 X-MC-Unique: 8QsdtI__OD24co9640BgGw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8DA4819253C2; Fri, 23 Apr 2021 13:41:21 +0000 (UTC) Received: from hog (unknown [10.40.192.89]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A30BB60BE5; Fri, 23 Apr 2021 13:41:19 +0000 (UTC) Date: Fri, 23 Apr 2021 15:41:17 +0200 From: Sabrina Dubroca To: Phillip Potter Cc: davem@davemloft.net, 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 Message-ID: References: <20210422234945.1190-1-phil@philpotter.co.uk> MIME-Version: 1.0 In-Reply-To: <20210422234945.1190-1-phil@philpotter.co.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=sd@queasysnail.net X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: queasysnail.net Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Sabrina