Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2774870yba; Mon, 22 Apr 2019 12:43:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb0hS5i/oZwnXVgqF9m9y0OY2mK0iCHBup3aiWqoXXhzyDjD//8gj/tWCYovQqlhSzyxdh X-Received: by 2002:a63:fd08:: with SMTP id d8mr20382434pgh.141.1555962230645; Mon, 22 Apr 2019 12:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555962230; cv=none; d=google.com; s=arc-20160816; b=iJ4jp5mfLnVV9ud9z0Pd0ctacX7auVjJHiqUm9xpKq5hg2Xpi4xgsDYA8Xc5O2kEwt cavhewyr86ByznYkfVWXhHFWZEwESUE8lyPNMsbwxjgRauV/MjuAJ4kObCzSid5C1ANc oPtCFqbhoLPToSuR/EqxSgVkZdllZmQeSIDB/ZGGuNlm5GSpEKE3Bdz9dDFkSJaz0EXA +FG1loS/kQFzB1CsqkFW/hwVziP0HTXK2EmtLA1PDDq02+gNDc9W28Y0Mt6YRN6bGJ/A NPxzMotYNii7WZEzYZQlDnatgbqn0Fd4as7MnJCvl4ptJrmNqaDdSAPNWDbtreS6LCS7 dlag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ETP+SIvATeWU94+r3qmOn3DgBXuVpbvHzMwLA6EAd44=; b=Ag20Jnj1o9F/GP7Ddi8rEHYDnZP097YajupLSlv6xj17KTtpliy+b46mqy9GHgM2kb r083/AXsDhYnxPEggrgwHgnvlBAvqsOVtNa+yQjAeWWOLCoVjWdhkL9Ek37Vug6Ekg4P 3nSzpYK5LXk3z3lDMMEjXJ0xeNzAXwwFrdqiHulBQoHVm3U0TIhdf5KCdk17N60dM4r1 7HY24n5GibSnC1toYx0Kc1eTW1CGQs99iUPYhB8+EMxh4oYPV2PlBftA4F9RPYOJyyvF RJb4SeuDr/brXPhS9YPlLSCXPj8Ot637sz0DTNTumI3Yxr/p6xO/vu5cbOmWn8OTer/r mH6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vk6RxQLM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h38si10011972plb.259.2019.04.22.12.43.35; Mon, 22 Apr 2019 12:43:50 -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=pass header.i=@kernel.org header.s=default header.b=Vk6RxQLM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728868AbfDVTmc (ORCPT + 99 others); Mon, 22 Apr 2019 15:42:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:42826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728824AbfDVTm2 (ORCPT ); Mon, 22 Apr 2019 15:42:28 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3CB9E2175B; Mon, 22 Apr 2019 19:42:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962147; bh=2pVixEJfR9Zf2g8RzqnYMd8v0FVqVr8xHKoHWb8pyhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vk6RxQLMVobhpS8FGTJAq657Ody6TrHRRYDLn54iIzPTZxrI+Vre44hp+Ba1U+J8H u+nYpNsk5P3zIgKqas0e8tiRBQ6PA40eDsBQGsaPZ9brhPl1hx2K9y95uOC0Sg49qy Cvo3PbM1oigZkrVJJ3aKENWEZ0qyHll/zXWCwJaE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= , Taehee Yoo , Pablo Neira Ayuso , Sasha Levin , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 18/98] netfilter: fix NETFILTER_XT_TARGET_TEE dependencies Date: Mon, 22 Apr 2019 15:40:45 -0400 Message-Id: <20190422194205.10404-18-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194205.10404-1-sashal@kernel.org> References: <20190422194205.10404-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit d1fa381033eb718df5c602f64b6e88676138dfc6 ] 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: 5d400a4933e8 ("netfilter: Kconfig: Change select IPv6 dependencies") Cc: Máté Eckl Cc: Taehee Yoo Link: https://patchwork.ozlabs.org/patch/999498/ Link: https://lore.kernel.org/patchwork/patch/960062/ Reported-by: Randy Dunlap Reported-by: Stephen Rothwell Signed-off-by: Arnd Bergmann Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin (Microsoft) --- net/netfilter/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index beb3a69ce1d4..0f0e5806bf77 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig @@ -995,6 +995,7 @@ config NETFILTER_XT_TARGET_TEE depends on NETFILTER_ADVANCED depends on IPV6 || IPV6=n 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.19.1