Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2469370imm; Thu, 2 Aug 2018 12:07:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8QHEgb3pb6l2+knUJ845kRCl+ciNqZ6mOrqaVQnUxC9avNIFDt5jfFZk0ZhQhBbZg4tOY X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr620316plf.115.1533236827874; Thu, 02 Aug 2018 12:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533236827; cv=none; d=google.com; s=arc-20160816; b=DNW5LDxy4nJhyExw5Irh5fX5Z5ZFNYQIxEKW2YrXkWHDTbEE2afRbkh2koprIl/ViL o2yj1y6yYuY8TbLOk/DhfJLjbhlq1haOUJ75ovzf3pLyCB17LZFxl6rFf9/QkDX8s/JJ DNwORHXb+ywtK3wvVJGn0wIkkfEhwv2C4bs2JJUnlCfWaq+CYzaAvkkICFFSPn80dfcn GdcvvOImiX83WdGMxF1l98CSJcJfOlhpNRLbiL3e+7xvj07JsCLb8xw0cNdX6ppVdYS6 kB18g1H1qV7SkJFxHoCYGDXrI/GFpls/ScC/M5tA5EDB8lJkkDykTfvmeS9Uc+O9CmqP K+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=AuEDrPUWVFEyI/sFUlA330R5I1ih4ClX9JUUhklaX04=; b=GP3aQ2q+BYQ5VnNzJSMG7//AdAjf4SGCliT5lLa6VinGEWxjQKyq/6Gg9mSkDEIBvu 3DX9BO0T0yrslZBert/QZQ6Zpf7D+naEdfF6HRK0Gk7Vz3kqtyegKIlSWn447whTv85G a2eKtyDMiW7b94iz8ZpzSns1pw21lm7Zb1LfunDAte4L1OhXWoieg5Gwcgj8KwBKVrsC 0WnBtTG2BVJhH2eAOJQhft6aRHGn9LxfN3VFQzmyZt3AtdZZ0Rv7MYmCGzDaxAQdw1Jw PLsqFEjPLvbtDbwPn62gjla89D9cacBR8ErubQjjsg4iDkQQiEUxO8ibjN4nm3VLtAmR eXuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=isPHnxcn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30-v6si2449336pgn.258.2018.08.02.12.06.51; Thu, 02 Aug 2018 12:07:07 -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=@gmail.com header.s=20161025 header.b=isPHnxcn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726941AbeHBU62 (ORCPT + 99 others); Thu, 2 Aug 2018 16:58:28 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51188 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbeHBU62 (ORCPT ); Thu, 2 Aug 2018 16:58:28 -0400 Received: by mail-wm0-f67.google.com with SMTP id s12-v6so3712208wmc.0; Thu, 02 Aug 2018 12:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AuEDrPUWVFEyI/sFUlA330R5I1ih4ClX9JUUhklaX04=; b=isPHnxcn7fLS8xlIt6sY9qN5Wf5WnQl1bK2KFH3B4fkSEQPNsiumzvE6QjTVj7PWJE w3IMu1zkJ8e/IJx4EtjE8v5aNCaAYqlpXByyZghCTGLPQYRnfHb3/W7tv2AjQ8MHlIes dHTpCeJAwFcjZl2qB9z34XrgEQOZI/YQyIJKqvT7B2ofRQ9v9rGR+vbHDPKISkmdR9Gg TNb6Fi7F+93i9N7Xp23NTa+VJMX64RPvD54Yjr7smllHhY+bjbRBN0vTuLhdoJX4iM6q tCu4K8nTxxtxpK7lbxV5CoagVse0MKvU9Mi59eM13TZfO+Sj7FcPhAR34MB0/W/xJwhB 3dIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=AuEDrPUWVFEyI/sFUlA330R5I1ih4ClX9JUUhklaX04=; b=Tbl84qOoxzZwprnTjIEsy2TjfpYKUiuiwtdIwQprfGif+eDy1AWbxwz3Ri7WBfzW6l HXjijZF+GlGDt3WRGvuZlwxk/7UkN/I78f8IgatjWSJ1aO5Kk0bL2+/ryxJH2lqGqtPy N3f+nKoNKIamcTCS9UqPh6eyiZZWqzSZ/McTeYr7UaTmDDw/L9WvesyfePdw7+InjC77 YrT/kokRdlpCbVxAnG+u3VTewMjyXMygp6HNxJu0LAMlo0KxAuQJnvdRMhpJzFCHubK2 RRmwaF/6bkDTUqOvZ/DiLjEqIXiK/4+J5f++nsAYH+9nrQ4S9SSzZXu/nqR9dJ0sZbfU NKsQ== X-Gm-Message-State: AOUpUlFTsg5UR1ow+iGsdEAgQIjwGeB3TlyYhvMzTfLANk4hjGwupH3c mSM+ALn19OidP5pcjodRaPI= X-Received: by 2002:a1c:8c12:: with SMTP id o18-v6mr2701925wmd.120.1533236759173; Thu, 02 Aug 2018 12:05:59 -0700 (PDT) Received: from sch.bme.hu (ecklm-pi.sch.bme.hu. [152.66.179.182]) by smtp.gmail.com with ESMTPSA id y11-v6sm3170351wrt.4.2018.08.02.12.05.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Aug 2018 12:05:58 -0700 (PDT) Date: Thu, 2 Aug 2018 21:05:57 +0200 From: =?utf-8?B?TcOhdMOp?= Eckl To: Randy Dunlap Cc: Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , "netdev@vger.kernel.org" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, pablo@netfilter.org Subject: Re: linux-next: Tree for Aug 2 (netfilter: tproxy) Message-ID: <20180802190557.sha6wer6gkdgrd6i@sch.bme.hu> References: <20180802193111.346fdde9@canb.auug.org.au> <0185f82e-4bf5-6c6c-a131-ba2c0197c9a0@infradead.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nwyw3czl35l47w5e" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0185f82e-4bf5-6c6c-a131-ba2c0197c9a0@infradead.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nwyw3czl35l47w5e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Randy, Thanks for reporting! Please find the patch attached. Regards, Mate On Thu, Aug 02, 2018 at 09:28:16AM -0700, Randy Dunlap wrote: > On 08/02/2018 02:31 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20180801: > > > > on i386: > > ../net/netfilter/nft_tproxy.c: In function 'nft_tproxy_init': > ../net/netfilter/nft_tproxy.c:237:3: error: implicit declaration of function 'nf_defrag_ipv6_enable' [-Werror=implicit-function-declaration] > err = nf_defrag_ipv6_enable(ctx->net); > > > Full randconfig file is attached. > > Reported-by: Randy Dunlap > > -- > ~Randy --nwyw3czl35l47w5e Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-netfilter-nft_tproxy-Add-missing-config-check.patch" Content-Transfer-Encoding: 8bit From 2c3a7d3209ed5e539ecd69192fc0f4186fdc7d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= Date: Thu, 2 Aug 2018 20:46:13 +0200 Subject: [PATCH] netfilter: nft_tproxy: Add missing config check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A config check was missing form the code when using nf_defrag_ipv6_enable with NFT_TPROXY != n and NF_DEFRAG_IPV6 = n and this caused the following error in case of : ../net/netfilter/nft_tproxy.c: In function 'nft_tproxy_init': ../net/netfilter/nft_tproxy.c:237:3: error: implicit declaration of function +'nf_defrag_ipv6_enable' [-Werror=implicit-function-declaration] err = nf_defrag_ipv6_enable(ctx->net); This patch adds a check for NF_TABLES_IPV6 when NF_DEFRAG_IPV6 is selected by Kconfig. Reported-by: Randy Dunlap Fixes: 4ed8eb6570a4 ("netfilter: nf_tables: Add native tproxy support") Signed-off-by: M?t? Eckl --- net/netfilter/nft_tproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/netfilter/nft_tproxy.c b/net/netfilter/nft_tproxy.c index c6845f7baa08..eff99dffc842 100644 --- a/net/netfilter/nft_tproxy.c +++ b/net/netfilter/nft_tproxy.c @@ -234,9 +234,11 @@ static int nft_tproxy_init(const struct nft_ctx *ctx, err = nf_defrag_ipv4_enable(ctx->net); if (err) return err; +#if IS_ENABLED(CONFIG_NF_TABLES_IPV6) err = nf_defrag_ipv6_enable(ctx->net); if (err) return err; +#endif break; default: return -EOPNOTSUPP; -- ecklm --nwyw3czl35l47w5e--