From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: mdlayher@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 68d980d3 for ; Thu, 9 Aug 2018 00:19:16 +0000 (UTC) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b9c5dbc6 for ; Thu, 9 Aug 2018 00:19:16 +0000 (UTC) Received: by mail-qk0-x22d.google.com with SMTP id 191-v6so2873541qki.13 for ; Wed, 08 Aug 2018 17:30:26 -0700 (PDT) MIME-Version: 1.0 References: <8b63f0e3-3f0f-d028-59de-5eb08af2e26a@gmail.com> In-Reply-To: From: Matt Layher Date: Wed, 8 Aug 2018 20:30:14 -0400 Message-ID: Subject: Re: Kernel module sends infinite netlink messages on v0.0.20180802 To: "Jason A. Donenfeld" Content-Type: multipart/alternative; boundary="000000000000b5fcd00572f5bb0b" Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --000000000000b5fcd00572f5bb0b Content-Type: text/plain; charset="UTF-8" Excellent! That's much more concise. - Matt On Wed, Aug 8, 2018, 8:11 PM Jason A. Donenfeld wrote: > Thanks for letting me know. I've got a simpler reproducer now: > > #!/bin/bash > > a=( ) > for i in {1..197}; do > a+=( abcd::$i ) > done > > s="$IFS" > IFS=, > a="${a[*]}" > IFS="$s" > > ip link del wg0 > ip link add wg0 type wireguard > wg set wg0 peer "$(wg genkey)" allowed-ips "$a" > wg set wg0 peer "$(wg genkey)" allowed-ips "$a" > wg > > I'll have this fixed shortly and will ping back on this thread. > > Jason > --000000000000b5fcd00572f5bb0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Excellent! That's much more concise.

- Matt

On Wed, Aug 8, 2018, 8:11 PM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
Thanks for letting me know. I've got a simp= ler reproducer now:

=C2=A0 =C2=A0 #!/bin/bash

=C2=A0 =C2=A0 a=3D( )
=C2=A0 =C2=A0 for i in {1..197}; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 a+=3D( abcd::$i )
=C2=A0 =C2=A0 done

=C2=A0 =C2=A0 s=3D"$IFS"
=C2=A0 =C2=A0 IFS=3D,
=C2=A0 =C2=A0 a=3D"${a[*]}"
=C2=A0 =C2=A0 IFS=3D"$s"

=C2=A0 =C2=A0 ip link del wg0
=C2=A0 =C2=A0 ip link add wg0 type wireguard
=C2=A0 =C2=A0 wg set wg0 peer "$(wg genkey)" allowed-ips "$a= "
=C2=A0 =C2=A0 wg set wg0 peer "$(wg genkey)" allowed-ips "$a= "
=C2=A0 =C2=A0 wg

I'll have this fixed shortly and will ping back on this thread.

Jason
--000000000000b5fcd00572f5bb0b--