From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49EF8C77B71 for ; Fri, 14 Apr 2023 23:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjDNXLw (ORCPT ); Fri, 14 Apr 2023 19:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjDNXLu (ORCPT ); Fri, 14 Apr 2023 19:11:50 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06A4E4221 for ; Fri, 14 Apr 2023 16:11:47 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1pnSZv-0004rB-Ux; Sat, 15 Apr 2023 01:11:39 +0200 Date: Sat, 15 Apr 2023 01:11:39 +0200 From: Florian Westphal To: Jakub Kicinski Cc: Florian Westphal , Florian Fainelli , davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, pablo@netfilter.org Subject: Re: [PATCH net-next 5/5] net: skbuff: hide nf_trace and ipvs_property Message-ID: <20230414231139.GD5927@breakpoint.cc> References: <20230414160105.172125-1-kuba@kernel.org> <20230414160105.172125-6-kuba@kernel.org> <20230414210950.GC5927@breakpoint.cc> <20230414150758.4e6e9d81@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414150758.4e6e9d81@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Jakub Kicinski wrote: > On Fri, 14 Apr 2023 23:09:50 +0200 Florian Westphal wrote: > > > +#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || defined(CONFIG_NF_TABLES) > > > __u8 nf_trace:1; > > > > As already pointed out nftables can be a module, other than that > > I copied it from: > > static inline void nf_reset_trace(struct sk_buff *skb) > { > #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || defined(CONFIG_NF_TABLES) > skb->nf_trace = 0; > #endif > } > > I can't quite figure out why this would be intentional. > Do the existing conditions need to be fixed? Yes, this is not correct; needs to be "|| IS_ENABLED(CONFIG_NF_TABLES)". Fixes: 478b360a47b7 ("netfilter: nf_tables: fix nf_trace always-on with XT_TRACE=n") Let me know if you'd like to add the fix to v2 of your patchset yourself, otherwise I'll send a fixup patch to netfilter-devel@ on monday.