Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7368614yba; Thu, 2 May 2019 08:42:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVBPpxxnphtb81SEKyzPcCAgDRbiRfJcsSwVBJHm1HkhWG0ix7qdTlDT76qwZgfFYkn8h3 X-Received: by 2002:aa7:82c5:: with SMTP id f5mr4899936pfn.256.1556811758624; Thu, 02 May 2019 08:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556811758; cv=none; d=google.com; s=arc-20160816; b=OHjPDxxZ+T2F32/tTcDGRTf6M0AVX5Lf3H1Xrquk1VlFt1g470JUd3f4B3soOPmAKX oGtvrdxWnw5AmxaPRmwCtiFebKzqT05xpddhaLHSAZma4CuJkgP7FJI9CkNBLtWgLZ0S HbFd7/IQOxBQqeoB45irLX2NFpSijfHfP9zQMUxKSDXSuvfRKype+hDq4bkEinDem5kq cGmcyXTRmo7aNMr2Jxapf5m+OQj4lI7dMMbRB9Z3U5iGggZUwbNsYEymsDxvzwqDabnw jzIHBrTZvQz5RB6APRMxsCAWIMPL+OxMNmqY+vHHnZW4yOPAKO2WlpEp+0XORsiatAuU v3BA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6H44UtEcK1vANOJVaS/5tJ+CS82iyFxvMK8HbGij8Ck=; b=C4KMTNiXt/jefjJ0sQpvg3JoTuaZDmbRVeDh3CLHeLIdYnyBGkPJ+Zju6K7GjYaH7i mwzppEa3DoxKVlr2PSCuJ7XmOze/CpNZgeSH4Cw3pEfTywWv8QnQGZH3qGGIF/SdP8v0 /Mxz3D1psrHAWMLftJoc0OxSplcqiwY10clJwO8VfL/SWbqNMUPTP/qQIXbwLaIR5HDu BvG7VePsRPvwdb2xKb03JIqjdSa0SpOS0nQy7fRFVF9RuxLpsSBRth/g5fVtxjFF+q9d SfYB73U6yb96w0Hap3IxhkTcQfmE5tnG49rDnSPd1bGzbphzzpBJj9+HJU3nwAgCdvvk K1qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FOksPB/Z"; 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 q12si44003429pgh.594.2019.05.02.08.42.22; Thu, 02 May 2019 08:42:38 -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="FOksPB/Z"; 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 S1728465AbfEBP3d (ORCPT + 99 others); Thu, 2 May 2019 11:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:47350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728404AbfEBP33 (ORCPT ); Thu, 2 May 2019 11:29:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CF7D20B7C; Thu, 2 May 2019 15:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556810969; bh=2gKEp1sdKEAeZm6GB/BYbziVeiU8R9/8+F7dhe6csOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FOksPB/ZemnYmMbCUJHmIcEGlcWYVrC732eRk2eUN2I8Kv5jCCMar0wAsUjG43Izh Wqx0FPa27HX/xS1GRsl+ocqA/mqVmx+ZRCSyBuKjJ1jK7zAJNxefCesiiequI4c9R/ PDFEOCO6HleNhqWaMRvNUH/0gU20F7GyUU/Ebzew= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= , Taehee Yoo , Randy Dunlap , Stephen Rothwell , Arnd Bergmann , Pablo Neira Ayuso , "Sasha Levin (Microsoft)" Subject: [PATCH 5.0 025/101] netfilter: fix NETFILTER_XT_TARGET_TEE dependencies Date: Thu, 2 May 2019 17:20:27 +0200 Message-Id: <20190502143341.459702817@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190502143339.434882399@linuxfoundation.org> References: <20190502143339.434882399@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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