Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1733345imm; Fri, 6 Jul 2018 05:39:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeED7Jyk8wKhURKz08nL7z4r+66oG3GRvZZGTYaO0eMGlmKe/wRO2fx7mr8g6h9KHEs4Bz6 X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr10102388pls.321.1530880775425; Fri, 06 Jul 2018 05:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530880775; cv=none; d=google.com; s=arc-20160816; b=SkGtvuTw+1z7Ao7V/8YCsfpXRPqxuT/AnDb6eEf9EWo6+twMdwZugVIjmVZFOxpY8I UnMvzrWyvCmTDEWQvtD4S0no/nAvhEEbkCzVkvdblMWPFgp1N93koQdrx2qob11apZrj aUDMw0O0hwi8vKoEXlB7zTM8c9+BrLb/isKNVDSs38u9+W8atggd4Yv9Cf3h/2vmkC9h vwwRu9K2xlNd2K+PiM77997a6AbYdDLtE7q3C5QksjBNa5R7d69tAb8kEV9RFqK6NsDr EfyJkoydkCBSXNK77WI0miR4cGoEAdc05AXa4qFOBIHGusFCwndfDHyauFQNNtv+UAPR 0kEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=maJafKEgiIXOVNO61MEJdTOAokKBqxCf0pHomaaX4Yg=; b=mRr9A9KT9pDDs6pxiFK6exvh8zTXlU5ZC6JG1H2UQQOyUriZbRdhxXYwayO01QES54 1Sjs/Fx3R5f1oKgfzbWsyMre0EXIoC3BuEL+XuUz4VIPea8h/9l4B7y9Dl2afj9Umxpb LvMqFLmtVJ7ciUyzw3iQFj/UKA0uzGbC9u0FeDVLmDbTGGyWjxpA+nL2ps2hy2QddzIb 2n3qZnUFPH7MfQnavfS3nUj711U0TVNWXtzvylmCbx4T0JmtnEfkDOM8yEk6/cuzQYfP 6nbZrHw26HWrRWIeXFKqmSzNuI15awF+HEk2jn4wzf6MldD9Lx2lLFTO6x4PujbRP8EY V2Fg== 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 g2-v6si7859151pgo.367.2018.07.06.05.39.20; Fri, 06 Jul 2018 05:39:35 -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 S933021AbeGFMia (ORCPT + 99 others); Fri, 6 Jul 2018 08:38:30 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:43969 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932776AbeGFMi2 (ORCPT ); Fri, 6 Jul 2018 08:38:28 -0400 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LtWRI-1gIM0C363g-010wGV; Fri, 06 Jul 2018 14:38:08 +0200 From: Arnd Bergmann To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" Cc: Arnd Bergmann , =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= , Fernando Fernandez Mancera , "Pablo M. Bermudo Garay" , Felix Fietkau , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] netfilter: fix NETFILTER_XT_TARGET_TEE dependencies Date: Fri, 6 Jul 2018 14:37:58 +0200 Message-Id: <20180706123805.2852900-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:rsMkXA7g60xqn0AtYR5yX0lHu9O/zHr6pnRX7knE1x1s2LbB8Kb sUNHwoCzvAMNKSF/fLz1TPpG3pI21hIPYXmSXTd9xhsWwUMbDjitetCA3Dh2M1aYe/YzMWj KbLKc5Jau6YqJH7UxYMtZMhZMt83m0d3slMZA0Q59GH7jj757iWYXR1Tx7ZeUekfExxEQcX iFIO3kxy9FDpNDIuXxzvw== X-UI-Out-Filterresults: notjunk:1;V01:K0:rm/Ri3D/UQg=:7j7cQO6pQUz4l0U7zXCfTK 8+jS71klwKQTnw4NwhET9+fehCJ1s1LxfSjh0pRX6E5TmrPRWwFv0qmQABa9t53v+3QjLjuSY Z6v/sj+y+2L8e6p3rTyJhTfUi88HwLLE5XkZ8N/xSR19kdNeSfDOw1zna/TTKHlcUuWkI9LYq wxQaAuJWnruBHMLgb2UrC8yzTktVuk091rVfJRSG2ebOwk5ovcbejAG+8JtvDyoqPJgV9FVBS j4RXBpSX3DecpwsfONDvWN85MPotmtBuxQXxJcg3RSVHq6dYkhM8oWPZUWerF8ahns3qRP3RM T2l4L7eVeudh0lk7FNiywpZF4YyCUUBu07n+mgLGcYaWacw8ljwpxCWxxWrim0lDZpkdt64Uz lajlYsmC/c2Rn0PEy1F04LOsOcPIGDSzyEdaL2XvbKU7kLy/JMJMxJs+ANuWlXK6/UymrRbDl wYBrt/bPBN2Ycsy6NiBM416thrsJPnJb3sYWNxgT3MZzryjXWP+jJEY/GH+plwQTnfvnpgW1a 4nHN4AjtoC001uadfabHdsm5lNLIMBFACw/7CB2k+5705mK9QakpExm2QauGsPcRZR94rMgBe lNbMR2F48X3oOyLAXhE/SafazJK8yUB7iV2EP49FLWlQIdrQ+if+FPnBNrnDw27ZkSsJaZh/s J/5z2WgHS1oc+PfnfeAuBa1oUokE4LslDs0jXNl2B++tzxo59q815npxCuBpOdiq7yjo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Fixes: 35bf1ccecaaa ("netfilter: Kconfig: Change IPv6 select dependencies") Signed-off-by: Arnd Bergmann --- net/netfilter/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index 8aa4883c176a..e42c38c99741 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig @@ -985,7 +985,8 @@ config NETFILTER_XT_TARGET_TEE tristate '"TEE" - packet cloning to alternate destination' depends on NETFILTER_ADVANCED depends on IPV6 || IPV6=n - depends on !NF_CONNTRACK || NF_CONNTRACK + depends on NF_CONNTRACK || !NF_CONNTRACK + depends on IP6_NF_IPTABLES || !IP6_NF_IPTABLES select NF_DUP_IPV4 select NF_DUP_IPV6 if IP6_NF_IPTABLES ---help--- -- 2.9.0