Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1334461pxa; Fri, 28 Aug 2020 09:47:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+Sx0NECJXGfexJ8BFX5QsKHer/Xk/fIPl3TUYHxJLzDzsKuU5gtmfwLGF+Guz40NqTtme X-Received: by 2002:a17:906:52cf:: with SMTP id w15mr2771747ejn.53.1598633273672; Fri, 28 Aug 2020 09:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598633273; cv=none; d=google.com; s=arc-20160816; b=wiSidxMuJeT34A6LrisIClQBzaDH1MWwgqtBSpmDy9GaeV61K+pT9EelGBrljy1Ak0 bgUmZ2ci04LObirc94VB+gUyHqWDOsLQCQpdXh9/u2PdzCNHdg1FGHvCc8exumuWMQP7 5+SlHlj6NzQDaPIH6cpyhDLuRqYPTgwYtTOq3WJtEXek18e6lGhF3b/lUwAnXEa18IwI A5pg3YS8boM7gAIPpqQP7kYZTuvA/ORlSu/D4YYvL1jgu1YoWlbNSVx0qRfGSGq5INoz jid6SCvI1ccIUZ+wMJOqtTYBFLcOtpTMGUTb+AMDnyfUMFi4c3ygHb7jpPNMNcV0ZN3i u5Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kX0qx2G/4tHIRslXr+kkzGFe73ivZ4wutwq0TKqNcMY=; b=oRqsc+rO3huc5Fw9rouxDnDymrz3EOzXcjK7hywisD1Lf4omYR0imG0GIxoMUriglI sr16Gx5UAOJd5OCXqNXGdw2uUL1vVhqS9DqZF5nSwPbaruG5NoMUH+5grc30JVe2oA+C bxuiLrpPdOWUerLKsCUg+0oGAj6E/gQU0WHQgTNOJ1KlVSsDFMIP9vJz8vy7UrkqEt7+ Pwf6noDQ24BeKAuu33vroxNPFIl/NUTcnyVgOGtjTu/Bus2gAdxab59nD3NmpW46oGTk Bl/g83LBeoSL+tn17l504zBrnyEgoDsnZZssPCoOG1CDK8WbKafx2Mu907Sl8CfNqAIQ 4t+Q== 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 z29si918232edm.525.2020.08.28.09.47.29; Fri, 28 Aug 2020 09:47:53 -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 S1728203AbgH1QqT (ORCPT + 99 others); Fri, 28 Aug 2020 12:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbgH1QqS (ORCPT ); Fri, 28 Aug 2020 12:46:18 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E587C061264; Fri, 28 Aug 2020 09:46:18 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1kBhVf-0002Bi-5F; Fri, 28 Aug 2020 18:45:51 +0200 Date: Fri, 28 Aug 2020 18:45:51 +0200 From: Florian Westphal To: Pablo Neira Ayuso Cc: Will McVicker , stable@vger.kernel.org, Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v3 1/1] netfilter: nat: add a range check for l3/l4 protonum Message-ID: <20200828164551.GG7319@breakpoint.cc> References: <20200804113711.GA20988@salvia> <20200824193832.853621-1-willmcvicker@google.com> <20200824193832.853621-2-willmcvicker@google.com> <20200828164234.GA30990@salvia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200828164234.GA30990@salvia> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pablo Neira Ayuso wrote: > Hi Will, > > Given this is for -stable maintainers only, I'd suggest: > > 1) Specify what -stable kernel versions this patch applies to. > Explain that this problem is gone since what kernel version. > > 2) Maybe clarify that this is only for stable in the patch subject, > e.g. [PATCH -stable v3] netfilter: nat: add a range check for l3/l4 Hmm, we silently accept a tuple that we can't really deal with, no? > > + if (l3num != NFPROTO_IPV4 && l3num != NFPROTO_IPV6) > > + return -EOPNOTSUPP; I vote to apply this to nf.git