Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1760240imm; Fri, 6 Jul 2018 06:06:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcgFI1kbg5EIgTIU1+naZPSOwUgybMBWV2mHUIVpdTtKZRhutGKsCikdEcVptxQ2S759nx/ X-Received: by 2002:a63:2505:: with SMTP id l5-v6mr9615280pgl.40.1530882394252; Fri, 06 Jul 2018 06:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882394; cv=none; d=google.com; s=arc-20160816; b=lwzhFJrCBvgEANgfLm8DERTrIA6yM8PvPPcgn7/1borcVYm3SUmH6f5JPg7l7Ma4YA l3xRl+99pl4lC3NaCMjctEGGhaN7imyz6bsDGTk2OZZ9QTcf/5I6d8b8tCBm+1vHfGFb XwW0IcDlXO3ERCEPPrFodc1o1GHEnbkS3XP0RnmrZeVQHBoaY8+iU6xI2OwHeThLDCex R/TnSxBJJb5yNw8mGV+m2X6wWw7FiFZFjQ1RWtURm+0++kgmZx40UoQsf/oBiWIqmc04 ufhYOD0n5BJgaJQV+Yp9rMmWF5RWPNYD7jXWCUNBaQQw1aZT6hvmTDi3Q8ImjVn3b8Kc cfhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AzkE0hAic0oZP7I+oKtwQ7Ie656n/H0uXg7a8sY7oj8=; b=kSS6wS3PEtK/uDi5sEt9OHV6Z/y8FgNJh2WbrXHQFAwB/cUhW4UsnxWcXDyd6uIhR7 94uJvdE5gUrTgWgEzFUlyFJZIO76u0bWmMkh8YC7Atde/UXT/6e18sM5vQJYbTYDye5F ECWXyPPY8UBnn0zkYnDZhK1rNdxCxwtk6hBS7Nn8i5Hm8pnF5N1JQRAw++GdoBg7tSRr uigyrivP9xjR0LCbkEyrpfUAPn4ZJLkofMMfZkJCQsOWvBkyDx09okV4pd4B+Sk2jz8S J7YEOY2C9QBZaAMLLUflpJBhRuvxQb+ca3wfItFksYdBB7LPqpzra0dXMSi3VsRgqsWc aaBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=cUeQujcF; 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 z2-v6si8430786pfz.241.2018.07.06.06.06.19; Fri, 06 Jul 2018 06:06:34 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=cUeQujcF; 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 S933481AbeGFNFU (ORCPT + 99 others); Fri, 6 Jul 2018 09:05:20 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43701 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932328AbeGFNFQ (ORCPT ); Fri, 6 Jul 2018 09:05:16 -0400 Received: by mail-lf0-f65.google.com with SMTP id m12-v6so9741659lfc.10; Fri, 06 Jul 2018 06:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AzkE0hAic0oZP7I+oKtwQ7Ie656n/H0uXg7a8sY7oj8=; b=cUeQujcFO2U7CYvpSEl6f3xLon+ycv9/jbx076s7fhvycR2XhgA8q3L2NVMWO+HSRA i4lH18xlMq/dzJciqKAbRSCDBs6lZzR1fIGXJXfksBq6YY57Sw9d924p6IF9sL2J6X1o SvBxrfmjDcDzvDkCrX6C68FDJ34vQmhTn7Jcz0aMhbJYleR3JkHMaSFpn5WaEu7C5/oF lyR9SmLhJeJnEbL1qQNEbXdQ7xoQrk54k7R3Zodn2L86+k/uGoCDNVuTtKOvb/Ft/0hl xsx6z7dRyPEqgSX/9FaGC1SYj40/E+GYAAmQsU/WZaJFsJpfgf+yrSwFEddpw0WWJR/Z pz1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=AzkE0hAic0oZP7I+oKtwQ7Ie656n/H0uXg7a8sY7oj8=; b=ZCJ3XtIcbrY4bg5inULto4yl+p6XH8HkcL0IdTWvXPcE0lWyINak9RK/EWgtkRXdHh n36aQHQecfLaMTqbCKZgP4etrR0GAQIfD0Tf6H2sv+pSwB0g9LPkn+GwObHWS/T2JUEe S98nVtH5+d4/ERbm0Lv86W1gkZ+K/TEbEde0JIaFkvFm3u8QmfTK57SumYOZK8ocneZ1 UPS+uELVgWlWRcXICjvzqYHehVrQxzE6aJG+1PGNzKvcCBrjbxrvY5kFTt/2n1w9IzUX YOi3J/bRaPlvGK+kC776n6rWt0JJOZ2COckT/INoCkKksiD8OatkmmEVJfS93lHJ2GRT wspA== X-Gm-Message-State: APt69E0mXl82LVKmqodLCe9dG8V083c2LI8+XCe61OBdeMSMp9khnJYm 1yzYyLLa5n9Us0DcQIfpuHTy+Yk4imW5YYYmRtk= X-Received: by 2002:a19:9cca:: with SMTP id f193-v6mr7365250lfe.60.1530882314505; Fri, 06 Jul 2018 06:05:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:41c1:0:0:0:0:0 with HTTP; Fri, 6 Jul 2018 06:05:13 -0700 (PDT) In-Reply-To: <20180706124827.xwho2rgu3jkk3hp5@salvia> References: <20180706123805.2852900-1-arnd@arndb.de> <20180706124542.jybscbmzixyt4rx2@salvia> <20180706124827.xwho2rgu3jkk3hp5@salvia> From: Arnd Bergmann Date: Fri, 6 Jul 2018 15:05:13 +0200 X-Google-Sender-Auth: rn__ZeaPzdkKwLQ0GBkKVoSoL3U Message-ID: Subject: Re: [PATCH net-next] netfilter: fix NETFILTER_XT_TARGET_TEE dependencies To: Pablo Neira Ayuso Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , =?UTF-8?B?TcOhdMOpIEVja2w=?= , Fernando Fernandez Mancera , "Pablo M. Bermudo Garay" , Felix Fietkau , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Networking , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 6, 2018 at 2:48 PM, Pablo Neira Ayuso wrote: > On Fri, Jul 06, 2018 at 02:45:42PM +0200, Pablo Neira Ayuso wrote: >> On Fri, Jul 06, 2018 at 02:37:58PM +0200, Arnd Bergmann wrote: >> > With NETFILTER_XT_TARGET_TEE=y and IP6_NF_IPTABLES=m, we get a link >> > error when referencing the NF_DUP_IPV6 module: >> > >> > net/netfilter/xt_TEE.o: In function `tee_tg6': >> > xt_TEE.c:(.text+0x14): undefined reference to `nf_dup_ipv6' >> > >> > The problem here is the 'select NF_DUP_IPV6 if IP6_NF_IPTABLES' >> > that forces NF_DUP_IPV6 to be =m as well rather than setting it >> > to =y as was intended here. Adding a soft dependency on >> > IP6_NF_IPTABLES avoids that broken configuration. >> >> Applied to nf.git, thanks Arnd. > > Sorry, let me reconsider. > > We many need similar patches to other spots in 35bf1ccecaaa ? > > If so, it would be good to fix in the one go. I'm fairly sure that NETFILTER_XT_TARGET_LOG is safe, since NF_LOG_IPV6 already depends on IP6_NF_IPTABLES. NF_SOCKET_IPV6 like NF_DUP_IPV6 does not depend on IP6_NF_IPTABLES, so we may have a similar problem there, though I have not come across that. I have done only a few hundred randconfig builds since I started yesterday, so I may have missed something, but I think this is safe because CONFIG_NF_SOCKET_IPV6 is used like a 'bool' symbol these days, we don't actually control building a module with it, only a small portion in the nft_socket file. Arnd