Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1567065imm; Tue, 10 Jul 2018 04:16:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeM588uI8KzNGl6lbtJkU0Z6KehFl7KH6jWqLHziahmLP9Ltjyeq1ACm+dRu9jmW+P1+kZ6 X-Received: by 2002:a63:1262:: with SMTP id 34-v6mr16518983pgs.154.1531221409557; Tue, 10 Jul 2018 04:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531221409; cv=none; d=google.com; s=arc-20160816; b=YzOmjnh0mjIduS3LYHIzp8MlV46EZmtoCf8QTroUwWZgkbeTc6tFs/mxoYHSs8apya bu9YeammMnjW+83mnUP+WqRUffI8hXgRgPLcDPdI7wPXZHiUOl3Ny6ojCRQtnlnPk0ez 4iTaE+A4u/iqoeIdXzKgnWhor/orhyZxQAiCXW+rXxI+2u4yVw8IH94xuFZ54nSS0OT+ 3YfVe5hMalsWU7PCk45ZsbJJ+PdBlk4oJmES3Dlbbah17jDzj32VmDU5vuoOhCIFtt1y AxoydJQ4T1Zr/EVIYX0kTxlzIluT5cEHZTgbXLQwi1hn6vjwqaCqzmTxY0BId7jSqk2h EwPQ== 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=7uK/qUqCs5PlZwEmGyAxMTcfzH/r9TktAJTFyB2r4aM=; b=xJ0X4myihQrC7HlEMkAxEQIzcRLCM/0qP40NRn0ss3o3+4qX93RnB43rar3WvaaZ8O MnG0MKWm2hILhdqI2eUIpqV78iYlqEp1c3Lyfei3RFIY2d2tumZMawcruR+wAx56LKBN KZ5bJjvJMrIDMas7gIEw/iTMDLVRfR7lKHQLhkYn10NAkRTcMcr5KLaRETNPVoW6s9qs yqmI5Tl4CDNPfWL3nZM6c47BjQLejnPJ1v9bDHdkcF+rqMnU+HfJSeuK83bC9w0ULL9V W0C0hx2pSsGzZNLOflqej8+98QnnOmrF4gVb464b3p7TvyNYi39oM7aDIgJZqfRc4+bA BNGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZmyxaNgH; 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 s14-v6si14989311pgc.617.2018.07.10.04.16.25; Tue, 10 Jul 2018 04:16:49 -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=ZmyxaNgH; 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 S1754201AbeGJLPm (ORCPT + 99 others); Tue, 10 Jul 2018 07:15:42 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36160 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933222AbeGJLPk (ORCPT ); Tue, 10 Jul 2018 07:15:40 -0400 Received: by mail-wr1-f68.google.com with SMTP id h9-v6so14184479wro.3; Tue, 10 Jul 2018 04:15:39 -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=7uK/qUqCs5PlZwEmGyAxMTcfzH/r9TktAJTFyB2r4aM=; b=ZmyxaNgH4VRvWPyDtC9aByrkEW/6qGLL0JQIKmZDPUaFrNOyX/IuPmb3vet0ReakST /pkWiDv4UJpHt8HV4RRBqTLNvO2nLe0YIFUOD53UWmVv521t4OsCL6Yqp11OXejQ62ix baGd3on/nki2bXwUhHAdkZyarveEYo+ClgWMieYQ50EK8YqCNjSdsEfDhmFYpgAWrt9G IWyerGVKxWyOlChoPI2aLlROQ0Umu7ecpeN+1jx28OsuJ1xY3AxeVoTpYDAtBx2HKqkZ 4H0W/Sb3YDYEmkR1XO3qWVZ6J8u5t1K3ydOwLHbwASP4YJVFQQP2DiUf97InPpRrEpc4 YC3w== 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=7uK/qUqCs5PlZwEmGyAxMTcfzH/r9TktAJTFyB2r4aM=; b=cyPsAded0AbOimU5OZHR3lrchVZ3gm1kFHgnqMDxTqHm6m2uZ+x6Pzt90raxxTy7YR uo4Iduq2G7DOsN2pOwNAVY/O8u600M9S6yejVQticlOrCC4cmsuHA7Y3XBxx0I0G41xT b4y/vDFvCgw7sYs2qvZKALfojgieZJYPWGRIBs6uM8dbX2ECQahT/vdKkZMXwcp9gDbj 1mMnn4HoAGaKTRCsIgC11lqn1ooYknFpQ/yjTqRW5i86cavBhEzD9nYxl08MOPbzcUqb nq3EsWFtUHVMRd2h+Tc4l5ihIadBp9zK0yOZFEeI3eqX119seDfBaQuk91eaLUJpPX/P YrYw== X-Gm-Message-State: APt69E2IMGjCyBg9192yoL8uP6fiJ2ZMupGrV8VptiFj/f2uo445o9eA m8faQki6ozNyoUJMdcNFeYA= X-Received: by 2002:a5d:6981:: with SMTP id g1-v6mr16463237wru.77.1531221339216; Tue, 10 Jul 2018 04:15:39 -0700 (PDT) Received: from sch.bme.hu (ecklm-pi.sch.bme.hu. [152.66.179.182]) by smtp.gmail.com with ESMTPSA id t184-v6sm12775720wmf.18.2018.07.10.04.15.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 04:15:37 -0700 (PDT) Date: Tue, 10 Jul 2018 13:15:36 +0200 From: =?utf-8?B?TcOhdMOp?= Eckl To: Pablo Neira Ayuso Cc: Arnd Bergmann , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Flavio Leitner , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, Networking , Linux Kernel Mailing List Subject: Re: [PATCH] netfilter: NFT_SOCKET don't use NF_SOCKET_IPV6 without NF_TABLES_IPV6 Message-ID: <20180710111536.hio2xalz7pyxucc6@sch.bme.hu> References: <20180709213537.2748896-1-arnd@arndb.de> <20180710080227.qwh53ahq26j6phhd@sch.bme.hu> <20180710080538.d7xqpjdvpksfrx6o@sch.bme.hu> <20180710105605.evgtmjiq5z46zld6@salvia> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180710105605.evgtmjiq5z46zld6@salvia> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 12:56:05PM +0200, Pablo Neira Ayuso wrote: > On Tue, Jul 10, 2018 at 11:10:40AM +0200, Arnd Bergmann wrote: > > On Tue, Jul 10, 2018 at 10:05 AM, M?t? Eckl wrote: > > > On Tue, Jul 10, 2018 at 10:02:27AM +0200, M?t? Eckl wrote: > > >> On Mon, Jul 09, 2018 at 11:35:09PM +0200, Arnd Bergmann wrote: > > >> > It is now possible to build the nft_socket module as built-in when > > >> > NF_TABLES_IPV6 is disabled, and have NF_SOCKET_IPV6=m set manually. > > >> > > > >> > In this case, the NF_SOCKET_IPV6 functionality will be useless according > > >> > to the explanation in commit 35bf1ccecaaa ("netfilter: Kconfig: Change > > >> > IPv6 select dependencies"), but on top of that it also causes a link > > >> > error: > > >> > > > >> > net/netfilter/nft_socket.o: In function `nft_socket_eval': > > >> > nft_socket.c:(.text+0x162): undefined reference to `nf_sk_lookup_slow_v6' > > >> > > > >> > This changes the compile-time check so we don't attempt to use > > >> > the NF_SOCKET_IPV6 code when it cannot be used, and make it all > > >> > compile again. That may lead to unexpected behavior when a user > > >> > enables NF_SOCKET_IPV6 but cannot use it, but seems to be the > > >> > logical conclusion of the 35bf1ccecaaa change. > > >> > > > >> > Fixes: 35bf1ccecaaa ("netfilter: Kconfig: Change IPv6 select dependencies") > > >> > Signed-off-by: Arnd Bergmann > > >> > > >> I think this should be fixed in the Kconfig rather than inside the module(s). > > > > Should we revert your patch then, or do you have a better idea? > > M?t?, would you resubmit a new patch that addresses all the problems > that Arnd is reporting in one go? This patch only solves the nf_socket and nft_socket modules problem so I can only submit a v2 for 'netfilter: Kconfig: Change IPv6 select dependencies' but you already applied it so it would meen a force push. Should I do this? I think Arnd's patch solves these problems in case we don't want to force-push or rebase. > I think it's better if we toss your original patch in the tree and > rebase, ie. take the new one that fixes all issues that Arnd is > reporting. It would be good if we can sort out this before I send the > next pull request for net-next stuff. > > I was afraid of fallout like this when I saw your original patch, > kbuild is always tricky. This patch is not related to the nft_tproxy module (it seems that you refer to that) as Arnd didn't have that in the tree when doing this. I'll send a v4 fot the tproxy module, but that cannot be related to this one as it is not in tree yet. > Please Cc Arnd, Florian and me for review. > > Thanks!