Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2671762imm; Wed, 3 Oct 2018 07:30:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV60DmRjSeLoDR5m1bLX3ACtB1lb6Pb9k97siPkgyblmPVM5aXsBDwe8y7tWFFpKE7aYzEMI9 X-Received: by 2002:a62:c186:: with SMTP id i128-v6mr1919257pfg.248.1538577046642; Wed, 03 Oct 2018 07:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538577046; cv=none; d=google.com; s=arc-20160816; b=xAiS8x0bOs2cj9hTJETPlNa/w/BQLfcYjxtHikzr1+iYBQrWhWQsKBOip7WzHfRd3p 914T16KAymEfm7aQx5Ks7nqNNhCZr+9kOf3mUYiIzUfiFBJMcBxq5EYHux4t+2m701TQ kn4b9dZoE8qAtmhcnr14MoVudnAv7CN8Czk/wuLpi3x7Us7PIl+tlHy+8zayWRgD+2Yz g2fIbbX4ltQZluy2RVWi+UOxlnxzcpyvrCCBXTwWdHDjEr9CJVypMsmSyhy6m5TpvCCU CPP60rFH+ep0uQdaCO6Sr3RYXvc7LnGNLRi4AiuBtH9S+BY3NbpVRPFtj2p2ZC9uz1EQ EbnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IY5sh05OhLm0iXBRWkoGD/Bu/OdRwWPGKWbocegzC5o=; b=dy2vkOorrP20Kpkng1qms19uMu/lB4Wj8apZTPId4a/V6j6UvgakaNtkws0FI9IlLA /H+09j8p+EC7tlQsT1PvfpgiwU+nssrYa66m4sqS18NYWHminj7/hOLMJwIDyG+Ap1WI ZCdTocOYl3pAYgKaesbdqC4QEe8qOYb+57t9sqLj4Tj9Bkgbhz3VlddwkLshIylVfBhC W/oFniULutBC0Pv466bKmpFSUDCb/JEUqBpo9Fz235iiICjQHuVLeI8UDozZLTMJidOl NO4wjx3k9/4l98Y6NMxU0gI7sltKbNM3VakQ1rE/8CqCKSyDMuYVrV0yvztsSwskVKSE Zfvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=JtWGHLSk; 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=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6-v6si1521128pgb.62.2018.10.03.07.30.30; Wed, 03 Oct 2018 07:30:46 -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=@zx2c4.com header.s=mail header.b=JtWGHLSk; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726936AbeJCVRs (ORCPT + 99 others); Wed, 3 Oct 2018 17:17:48 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:50825 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbeJCVRr (ORCPT ); Wed, 3 Oct 2018 17:17:47 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b073a586; Wed, 3 Oct 2018 14:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=dqbOT3zL3DZVUEWXddhcf5Yx03o=; b=JtWGHL Sk9w0PDGhOi9POLOym6J9nHggVaJxM7UNZmFPkBMEuWj8h3lDIR0BZpjohB3PLwH uLU4IUqiCRambu4OcFVOdjy83HOw0KWaWoL5EW24RkexGQIg/qZR0wSD8gzVF5DC IB1h9i+7ZEKd/ef1PM4P6H+l/TnhWoEOjnGid2jagI4rfU++wYHLTpZA6OurBQsi SIFrtjsdIdyB3h0p8ABfk8qcaRlBzYV6jg79SAf11W+lr5NYHHWWh2eBUcLjjf8r bz4HmNgUqGqmgXN3EBDL1PshsD0nh4DR28xI7cyYi1MIcp2ZbYu9oHyPZSILCR3v LJ+X7f77+CbJXNAw== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 610629c6 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 3 Oct 2018 14:28:57 +0000 (UTC) Received: by mail-ot1-f47.google.com with SMTP id i12-v6so5773223otl.1; Wed, 03 Oct 2018 07:29:08 -0700 (PDT) X-Gm-Message-State: ABuFfog0isBxNt0Gt0LmUXZJwXX6ibjpyZXuTavf6E+jRIaW+mFol0WJ K+k2YUgRLNsWkfYOeTinQfb17E9f4VNVNDsegm4= X-Received: by 2002:a9d:42c3:: with SMTP id c3-v6mr1029862otj.54.1538576947660; Wed, 03 Oct 2018 07:29:07 -0700 (PDT) MIME-Version: 1.0 References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-24-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Wed, 3 Oct 2018 16:28:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v6 23/23] net: WireGuard secure network tunnel To: Ard Biesheuvel Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 3, 2018 at 4:25 PM Ard Biesheuvel wrote: > >> On Wed, Oct 3, 2018 at 1:15 PM Ard Biesheuvel wrote: > >>> > +config WIREGUARD > >>> > + tristate "WireGuard secure network tunnel" > >>> > + depends on NET && INET > >>> > >>> I think you need to add IPV6 here > >> > >> Nope. Like much of the net tree, WireGuard can function on ipv6-less > >> kernels. If you do find something in WireGuard isn't working in a > >> v6-less configuration, I consider that to be a bug that needs fixing. > >> > > > > OK. I hit a build error yesterday, and setting CONFIG_IPV6 fixed it. > > Let me see if I can reproduce. > > I get > > drivers/net/wireguard/socket.o: In function `send6': > socket.c:(.text+0x56c): undefined reference to `ipv6_chk_addr' > drivers/net/wireguard/socket.o: In function `wg_socket_send_skb_to_peer': > socket.c:(.text+0x904): undefined reference to `ipv6_chk_addr' > drivers/net/wireguard/socket.o: In function `wg_socket_init': > socket.c:(.text+0x161c): undefined reference to `ipv6_mod_enabled' > > if I build my kernel with WireGuard built in but IPv6 support enabled > as a module. Nice catch. Looks like the norm is adding "depends on IPV6 || !IPV6" or the like. I'll play and make sure this works for v7. Thanks for pointing it out. Jason