Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp914557ybl; Fri, 30 Aug 2019 08:59:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQx9VQybIYSlBfgaplTfI4199wHAxl21DoD9VcHu3w0IZWwAWD8wNFXL5rcHp8oXJd5K4s X-Received: by 2002:a17:90a:c694:: with SMTP id n20mr15869892pjt.24.1567180771000; Fri, 30 Aug 2019 08:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567180770; cv=none; d=google.com; s=arc-20160816; b=SGUz16BSB1GFPwLCKCtj/JVhbCfccREcp0TO/YGMKy6whXDaHOZj2qWgsWyfXuvdVX EqnMv5984LGDE3dkpd6ciiydTFcQU8IM5bcuwQx8XhO0jizWoNXzedh4ntzvM1+YWp8r zKngwhoINERTS8C8li+2OXp3eie/diQqgNlVaqolzMW2ypBojCC0lApaS9URVRicsGoQ a83Kql+k7BWpS24T3zYaJC4np3ZLU5XMzWFaSCVG4t0JGymdcS8oGUTu6EF3VLmDQSGN IYH3Mm33T1+nf4BDAGksZBHABiFKUPAWJcj9keXDweeWakPh96JM7HXVeiq/kniEGtfv XU/w== 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=FwX51gbe8LzVhyVixHGOD210URBOOJnZs7KaX27gPaE=; b=Fl+3TPSnDnA6TL67v+bbiGjFBkOXQMMAzMYf5fN7Tv6jnYfUL7Ha8SqUuch3ro+Czv oVNxeJNSKXzjuBJURGKt9joxkzeuXu7IR2QAyCB5zBoOoPhhfkvZ8glHGo5BQHUp0qq9 ENOFq9xsJT2wJN9bH4KhnBszZQWhc88Tm+sUooz/ge/QvMzYBq6RWAPzmimQYw0Bmpm9 AQjRG52+RyH2Uhh//y3f9wa4axds2Ky9lirMwFHlTd6Kp7PmYHOwFRstH/TJSLyP4Hx+ lqkw1KrwalHMTH3szUGqztPvTkibp4CnuSqi1W5trZKhivVfEG1xn9TqEBlwQK2k42Ai HTLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si4797490pgq.112.2019.08.30.08.59.15; Fri, 30 Aug 2019 08:59:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728160AbfH3P60 (ORCPT + 99 others); Fri, 30 Aug 2019 11:58:26 -0400 Received: from Chamillionaire.breakpoint.cc ([193.142.43.52]:57806 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727280AbfH3P60 (ORCPT ); Fri, 30 Aug 2019 11:58:26 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1i3jI3-0004tU-DS; Fri, 30 Aug 2019 17:58:19 +0200 Date: Fri, 30 Aug 2019 17:58:19 +0200 From: Florian Westphal To: Leonardo Bras Cc: Florian Westphal , Pablo Neira Ayuso , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jozsef Kadlecsik , Alexey Kuznetsov , Hideaki YOSHIFUJI Subject: Re: [PATCH v2 1/1] netfilter: nf_tables: fib: Drop IPV6 packages if IPv6 is disabled on boot Message-ID: <20190830155819.GQ20113@breakpoint.cc> References: <20190821141505.2394-1-leonardo@linux.ibm.com> <20190829205832.GM20113@breakpoint.cc> <4b3b52d0f73aeb1437b4b2a46325b36e9c41f92b.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b3b52d0f73aeb1437b4b2a46325b36e9c41f92b.camel@linux.ibm.com> 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 Leonardo Bras wrote: > On Thu, 2019-08-29 at 22:58 +0200, Florian Westphal wrote: > [...] > > 1. add a patch to BREAK in nft_fib_netdev.c for !ipv6_mod_enabled() > [...] > > But this is still needed? I mean, in nft_fib_netdev_eval there are only > 2 functions being called for IPv6 protocol : nft_fib6_eval and > nft_fib6_eval_type. Both are already protected by this current patch. > > Is your 1st suggestion about this patch, or you think it's better to > move this change to nft_fib_netdev_eval ? Ah, it was the latter. Making bridge netfilter not pass packets up with ipv6 off closes the problem for fib_ipv6 and inet, so only _netdev.c needs fixing.