[OpenWrt-Devel] [PATCH] wireguard: bump to 20180519

2018-05-18 Thread Jason A. Donenfeld
fix errno propagation and messages Error messages are now more coherent. * device: remove allowedips before individual peers This avoids an O(n^2) traversal in favor of an O(n) one. Before systems with many peers would grind when deleting the interface. Signed-off-by: Jason A. Donenfeld <ja

Re: [OpenWrt-Devel] Missing skb->dst with flow offloading

2018-05-30 Thread Jason A. Donenfeld
On Wed, May 30, 2018 at 8:24 PM, Pablo Neira Ayuso wrote: > May it crash the kernel because it's assuming is set? If so, then > I'd appreciate if you send us a patch to I suspect it won't crash, but the pmtu might wind up wrong / not calculated. > Please, use the nf-next.git tree to patch

Re: [OpenWrt-Devel] Missing skb->dst with flow offloading

2018-05-30 Thread Jason A. Donenfeld
Hey Pablo, On Wed, May 30, 2018 at 8:05 PM, Pablo Neira Ayuso wrote: > If there a more drivers in-tree that need this, we may add > skb_dst_set_noref() calls to _hook function in the flowtable codebase. Can I, then, take that as an implicit acknowledgement that this observed behavior on OpenWRT

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180531 to fix flow offloading

2018-05-30 Thread Jason A. Donenfeld
This version bump was made upstream mostly for OpenWRT, and should fix an issue with a null dst when on the flow offloading path. While we're at it, Kevin and I are the only people actually taking care of this package, so trim the maintainer list a bit. Signed-off-by: Jason A. Donenfeld

Re: [OpenWrt-Devel] Wireguard & hw flow offload incompatibility

2018-05-30 Thread Jason A. Donenfeld
Hi Jaap, This should now be taken care of by http://lists.infradead.org/pipermail/openwrt-devel/2018-May/012675.html . Thanks for the useful bug report. Jason ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] Missing skb->dst with flow offloading

2018-05-29 Thread Jason A. Donenfeld
Hey Pablo, Some OpenWRT people have reported to me that there's a crash when enabling flow offloading, because I rely on skb_dst(skb) being non-null in ndo_start_xmit. The fix in my code for this is very simple: - mtu = dst_mtu(skb_dst(skb)); + dst = skb_dst(skb); + mtu = dst ? dst_mtu(dst) :

Re: [OpenWrt-Devel] Wireguard & hw flow offload incompatibility

2018-05-29 Thread Jason A. Donenfeld
wrote: > Dear Jason, > > This isn't a regression. This is simply the first time this has been > observed. (hw) flow offload is a new feature, and hence this > interaction with wireguard is also new. > > Yours sincerely, > > Jaap > > On Tue, May 29, 2018 at 1:54 PM,

Re: [OpenWrt-Devel] Wireguard & hw flow offload incompatibility

2018-05-29 Thread Jason A. Donenfeld
hence this >> interaction with wireguard is also new. >> >> Yours sincerely, >> >> Jaap >> >> On Tue, May 29, 2018 at 1:54 PM, Jason A. Donenfeld wrote: >>> Hi Jaap, >>> >>> Thanks for the report. Is this a _new_ bug in _new_ ver

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180802

2018-08-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index a88dca1..d314cd5 100644 --- a/package/network

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180809

2018-08-12 Thread Jason A. Donenfeld
found a bug where a netlink dump of peers would never terminate in some circumstances, causing wg(8) to keep trying forever. We now have a fix as well as a unit test to mitigate this, and we'll be looking to create a fuzzer out of Matt's nice library. Signed-off-by: Jason A. Donenfeld

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180718

2018-07-18 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index 90ecae3..9965002 100644 --- a/package/network

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180904

2018-09-04 Thread Jason A. Donenfeld
and epilogue * curve25519-arm: do not waste 32 bytes of stack * curve25519-arm: prefix immediates with # This incorporates ASM nits from upstream review. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180910

2018-09-10 Thread Jason A. Donenfeld
. It also sets the stage for moving to a HACL* implementation when that's ready. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180708

2018-07-10 Thread Jason A. Donenfeld
performance on most systems by using NAPI. The main purpose of this snapshot is to test out this technique. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20181018

2018-10-17 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index dad430b..8a71ce2 100644 --- a/package/network

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20181115

2018-11-15 Thread Jason A. Donenfeld
of skb_checksum_setup check. * wg.8: specify that wg(8) shows runtime info too * wg.8: AllowedIPs isn't actually required * keygen-html: add missing glue macro * wg-quick: android: do not choke on empty allowed-ips Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20181006

2018-10-05 Thread Jason A. Donenfeld
ead name the files with a .c instead of a .h, so we now follow the convention. * Support many more platforms in QEMU, especially big endian ones. * Kernels < 3.17 don't have read_cpuid_part, so fix building there. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Ma

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190123

2019-01-23 Thread Jason A. Donenfeld
example, so that others can paste it into their own GUI clients for having the same strictly validating highlighting. * netlink: use __kernel_timespec for handshake time This readies us for Y2038. See https://lwn.net/Articles/776435/ for more info. Signed-off-by: Jason A. Donenfeld --- package

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20181119

2018-11-19 Thread Jason A. Donenfeld
trying to port to using Andy Polyakov's original perlasm files, and this means quite a lot of work to re-do that had stableized in our old .S. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180918

2018-09-18 Thread Jason A. Donenfeld
or not to inline certain functions, while still manually choosing so for a few performance-critical sections. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190406

2019-04-06 Thread Jason A. Donenfeld
nux 5.1. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index aab3e59..c04762b 100644 --- a/pack

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190227

2019-02-27 Thread Jason A. Donenfeld
orders of magnitude faster now. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index 2e9f17e

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190531

2019-05-31 Thread Jason A. Donenfeld
building wg(8)-based init scripts and services, or 0, or any other integer. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190601

2019-06-01 Thread Jason A. Donenfeld
tricky to support 33 different kernel versions (3.10+), plus weird distro frankenkernels. If OpenWRT doesn't support < 4.2, you probably don't need to apply this. But it also can't hurt, and probably best to stay updated. Signed-off-by: Jason A. Donenfeld --- package/network/services/wiregu

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20190702

2019-07-02 Thread Jason A. Donenfeld
lan of Axatrax was kind enough to mail me. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index 310d

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20191127

2019-11-27 Thread Jason A. Donenfeld
* messages: recalculate rekey max based on a one minute flood * allowedips: safely dereference rcu roots * socket: remove redundant check of new4 * allowedips: avoid double lock in selftest error case * tools: add syncconf command Signed-off-by: Jason A. Donenfeld --- package/network/services

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20191205

2019-12-05 Thread Jason A. Donenfeld
ure userspace communication frees wgdevice Free things properly on error paths. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/netw

[OpenWrt-Devel] [PATCH] wireguard-tools: bump to 1.0.20200206

2020-02-07 Thread Jason A. Donenfeld
d on libmnl. * embeddable-wg-library: use newer string_list * netlink: don't pretend that sysconf isn't a function Small cleanups. Signed-off-by: Jason A. Donenfeld --- package/network/utils/wireguard-tools/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/ne

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200128

2020-01-28 Thread Jason A. Donenfeld
This fixes a few small oversights for the 5.5 compat layer. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200205

2020-02-05 Thread Jason A. Donenfeld
* netns: tie socket waiting to target pid An added test to our test suite for the above and a small fix for high-load CI scenarios. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200214

2020-02-14 Thread Jason A. Donenfeld
related to setting the MTU of a device to zero. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200215

2020-02-14 Thread Jason A. Donenfeld
* send: cleanup skb padding calculation * socket: remove useless synchronize_net Sorry for the back-to-back releases. This fixes a regression spotted by Eric Dumazet. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH 2/2] wireguard-tools: bump to 1.0.20200121

2020-01-21 Thread Jason A. Donenfeld
in the linker receiving its inputs in a filesystem-dependent order. This screwed up reproducible builds. Signed-off-by: Jason A. Donenfeld --- package/network/utils/wireguard-tools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/wireguard-tools

[OpenWrt-Devel] [PATCH 1/2] wireguard: bump to 0.0.20200121

2020-01-21 Thread Jason A. Donenfeld
s per call Achieving these kind of results with formally verified code is quite remarkable, especialy considering that performance is favorable for newer chips. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[OpenWrt-Devel] [PATCH 2/2] wireguard-tools: bump to 1.0.20200102

2020-01-08 Thread Jason A. Donenfeld
t(8). * fuzz: find bugs in the config syntax parser * fuzz: find bugs when parsing uapi input These are two fuzzers that have been laying around without a repo for a while. Perhaps somebody with enough compute power will find bugs with them. Signed-off-by: Jason A. Donenfeld --- package/network/ut

[OpenWrt-Devel] [PATCH 1/2] wireguard: bump to 0.0.20200105

2020-01-08 Thread Jason A. Donenfeld
Qualcomm 4.14 devices. But I fear that it could lead to issues on other drivers on weird OpenWRT routers. This commit is upstream in net-next as: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=736775d06bac60d7a353e405398b48b2bd8b1e54 Signed-off-by: Jason A. Donenfeld

[OpenWrt-Devel] [PATCH] wireguard: bump to 20191226

2019-12-27 Thread Jason A. Donenfeld
, we'll drop the original module package, leaving only the tools. So this commit shuffles the build definition around a bit but is basically the same idea as before. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 41 +++--- .../network/utils/wireguard

[OpenWrt-Devel] [PATCH] wireguard: bump to 1.0.20200330

2020-03-30 Thread Jason A. Donenfeld
number on the backport compat codebase. When OpenWRT bumps to Linux 5.6, we'll be able to drop this package entirely, which I look forward to seeing. [1] https://lists.zx2c4.com/pipermail/wireguard/2020-March/005206.html Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard

[OpenWrt-Devel] [PATCH] wireguard: bump to 1.0.20200401

2020-04-01 Thread Jason A. Donenfeld
Recent backports to 5.5 and 5.4 broke our compat layer. This release is to keep things running with the latest upstream stable kernels. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[OpenWrt-Devel] [PATCH] wireguard: bump to 1.0.20200429

2020-04-29 Thread Jason A. Donenfeld
upstream, there's no need to set the taint flag. * receive: use tunnel helpers for decapsulating ECN markings ECN markings are now decapsulated using RFC6040 instead of the old RFC3168. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2

Re: [OpenWrt-Devel] [PATCH v3] wireguard-tools: fix version indicator

2020-05-12 Thread Jason A. Donenfeld
Is this a patch you'd like to send upstream to wiregu...@lists.zx2c4.com? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH] wireguard: bump to 1.0.20200506

2020-05-06 Thread Jason A. Donenfeld
l to schedule in preempt_enable. * selftests: initalize ipv6 members to NULL to squelch clang warning This fixes a worthless warning from clang. * send/receive: use explicit unlikely branch instead of implicit coalescing Some code readibility cleanups. Signed-off-by: Jason A. Donenfeld --- package/net

[OpenWrt-Devel] [PATCH] wireguard-tools: bump to 1.0.20200319

2020-03-20 Thread Jason A. Donenfeld
pages in mdocml at some point soon. Signed-off-by: Jason A. Donenfeld --- package/network/utils/wireguard-tools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/wireguard-tools/Makefile b/package/network/utils/wireguard-tools/Makefile index

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200318

2020-03-20 Thread Jason A. Donenfeld
won't complete if they're being used anywhere. * send: use normaler alignment formula from upstream We're trying to keep a minimal delta with upstream for the compat backport. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions

[OpenWrt-Devel] [PATCH] wireguard: bump to 1.0.20200520

2020-05-20 Thread Jason A. Donenfeld
now: three stable kernels were released at the same time, with a patch that necessitated updating in our compat layer. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/servi

[OpenWrt-Devel] [PATCH] wireguard-tools: bump to 1.0.20200513

2020-05-19 Thread Jason A. Donenfeld
an application whitelist instead of application blacklist. * systemd: add wg-quick.target This enables all wg-quick at .services to be restarted or managed as a unit via wg-quick.target. * Makefile: remember to install all systemd units Signed-off-by: Jason A. Donenfeld --- package/network/utils

[PATCH] wireguard: bump to 1.0.20200908

2020-09-08 Thread Jason A. Donenfeld
for a race condition caught by syzkaller. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index

[PATCH] wireguard-tools: bump to 1.0.20200827

2020-09-08 Thread Jason A. Donenfeld
* ipc: split into separate files per-platform This is in preparation for FreeBSD support, which I had hoped to have this release, but we're still waiting on some tooling fixes, so hopefully next wg(8) will support that. Either way, the code base is now a lot more amenable to adding more kernel

Re: [PATCH] wireguard-tools: bump to 1.0.20200827

2020-09-09 Thread Jason A. Donenfeld
On Tue, Sep 8, 2020 at 6:30 PM Jason A. Donenfeld wrote: > > * ipc: split into separate files per-platform > > This is in preparation for FreeBSD support, which I had hoped to have this > release, but we're still waiting on some tooling fixes, so hopefully next > wg(8) will su

[PATCH] wireguard: bump to 1.0.20200729

2020-08-03 Thread Jason A. Donenfeld
etting the DEPMODBASEDIR environment variable. * compat: add missing headers for ip_tunnel_parse_protocol This fixes compilation with some unusual configurations. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH] wireguard: bump to 1.0.20200712

2020-07-12 Thread Jason A. Donenfeld
col and simply use the new ip_tunnel_parse_protocol function directly. * compat: backport ip_tunnel_parse_protocol and ip_tunnel_header_ops These are required for moving wg_examine_packet_protocol out of wireguard and into upstream. Signed-off-by: Jason A. Donenfeld --- package/network/services/wire

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-17 Thread Jason A. Donenfeld
On Wed, Jun 17, 2020 at 02:33:49PM -0600, Jason A. Donenfeld wrote: > So, some more research: it looks like the R_ARM_THM_JUMP11 symbol is > actually wg_packet_send_staged_packets, a boring C function with > nothing fancy about it. That github issue you pointed to suggested > that i

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-17 Thread Jason A. Donenfeld
Hi Rui, On Wed, Jun 17, 2020 at 7:19 AM Rui Salvaterra wrote: > After a bit more digging [1], I believe I've narrowed it down. > CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11=y is required in order to avoid > the emission of R_ARM_THM_JUMP11 relocations in the WireGuard module. > I'm now wondering why

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-17 Thread Jason A. Donenfeld
So, some more research: it looks like the R_ARM_THM_JUMP11 symbol is actually wg_packet_send_staged_packets, a boring C function with nothing fancy about it. That github issue you pointed to suggested that it might have something to do with complex crypto functions, but it looks like that's not

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-17 Thread Jason A. Donenfeld
On Wed, Jun 17, 2020 at 02:45:12PM -0600, Jason A. Donenfeld wrote: > Looks like my explanation there wasn't 100% accurate, but it does seem > like the issue occurs when gcc sees a clear tail call that it can > optimize into a B instruction instead of a BL instruction. > > The bel

[OpenWrt-Devel] Any progress on R_ARM_THM_JUMP11 issues?

2020-06-17 Thread Jason A. Donenfeld
these days so it's just fallen by the wayside and CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11=y is the best we've got? Or something else? Jason On Wed, Jun 17, 2020 at 2:54 PM Jason A. Donenfeld wrote: > > On Wed, Jun 17, 2020 at 02:45:12PM -0600, Jason A. Donenfeld wrote: > > Looks like

Re: [OpenWrt-Devel] Any progress on R_ARM_THM_JUMP11 issues?

2020-06-18 Thread Jason A. Donenfeld
Looks as though in the end this is a binutils bug with -fvisibility=hidden. Details on https://sourceware.org/bugzilla/show_bug.cgi?id=12532#c9 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-18 Thread Jason A. Donenfeld
Hey Rui, I fixed it! It turned out to be caused by -fvisibility=hidden undoing the effect of the binutils fix from a while back. Here's the patch that makes the problem go away: https://git.zx2c4.com/wireguard-linux-compat/commit/?id=178cdfffb99f2fd6fb4a5bfd2f9319461d93f53b This will be in the

[PATCH] wireguard: bump to 1.0.20200623

2020-06-23 Thread Jason A. Donenfeld
5.2.y series. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/wireguard/Makefile b/package/network/services/wireguard/Makefile index ce91fbe..b7adf27 100644 --- a/p

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-10 Thread Jason A. Donenfeld
On Wed, Jun 10, 2020 at 4:05 AM Rui Salvaterra wrote: > > Hi, Jason, > > On Wed, 10 Jun 2020 at 10:31, Rui Salvaterra wrote: > > > > Good question. :) You're testing in QEMU (which I personally never > > used), right? I don't know how familiar you are with OpenWrt, but I > > can surely send you

Re: [OpenWrt-Devel] wireguard: unknown relocation: 102 [ARMv7 Thumb-2]

2020-06-10 Thread Jason A. Donenfeld
Hi Rui, I'm unable to reproduce this: $ git clone https://git.zx2c4.com/wireguard-linux-compat $ ARCH=arm make -C wireguard-linux-compat/src test-qemu -j$(nproc) [... big test suite ...] $ vim wireguard-linux-compat/qemu-build/arm/linux-5.5.14/.config [... enable CONFIG_THUMB2_KERNEL=y ...] $

Re: [PATCH] wireguard-tools: allow compiling with MIPS16 instructions

2020-07-24 Thread Jason A. Donenfeld
On Fri, Jul 24, 2020 at 10:39 AM Rui Salvaterra wrote: > > Well… > > On Fri, 24 Jul 2020 at 09:32, Rosen Penev wrote: > > > > > On Jul 24, 2020, at 1:14 AM, Jason A. Donenfeld wrote: > > > > > > Seems probably fine to me, but would you let me know if

Re: [PATCH] wireguard-tools: allow compiling with MIPS16 instructions

2020-07-24 Thread Jason A. Donenfeld
On Fri, Jul 24, 2020 at 11:05 AM Rui Salvaterra wrote: > > On Fri, 24 Jul 2020 at 09:53, Jason A. Donenfeld wrote: > > > > Testing the process once like that isn't a good testing methodology > > representative of anything at all. > > I completely agree, this wasn

Re: [PATCH] wireguard-tools: allow compiling with MIPS16 instructions

2020-07-24 Thread Jason A. Donenfeld
On Fri, Jul 24, 2020 at 10:03 AM Rui Salvaterra wrote: > > The wg utility compiles and runs without issues in MIPS16 mode, despite > setting > PKG_USE_MIPS16:=0 in the makefile. Let's remove this, allowing for a > substantial > size reduction of the wg executable. Since wg is a just a

[PATCH] wireguard: bump to 1.0.20201112

2020-11-12 Thread Jason A. Donenfeld
} were backported to 5.4 * qemu: bump default testing version The real motivation for this version bump: 5.4.76 made a change that broke our compat layer. Signed-off-by: Jason A. Donenfeld --- package/network/services/wireguard/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] kernel-5.4: backport latest patches for wireguard

2021-06-09 Thread Jason A. Donenfeld
Could somebody apply this please? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [PATCH] kernel-5.4: backport latest patches for wireguard

2021-06-06 Thread Jason A. Donenfeld
Hi Ilya, > diff --git > a/target/linux/generic/backport-5.4/080-wireguard-0124-crypto-mips-poly1305-enable-for-all-MIPS-processors.patch > > b/target/linux/generic/backport-5.4/080-wireguard-0124-crypto-mips-poly1305-enable-for-all-MIPS-processors.patch > new file mode 100644 > index

[PATCH] kernel-5.4: backport latest patches for wireguard

2021-06-06 Thread Jason A. Donenfeld
These are the latest patches that just landed upstream for 5.13, will be backported by Greg into 5.10 (because of stable@), and are now in the 5.4 backport branch of wireguard: https://git.zx2c4.com/wireguard-linux/log/?h=backport-5.4.y Cc: Ilya Lipnitskiy Signed-off-by: Jason A. Donenfeld

Re: OpenWrt 21.02-rc1

2021-04-06 Thread Jason A. Donenfeld
On Tue, Apr 6, 2021 at 5:33 PM Ilya Lipnitskiy wrote: > > Hi Hauke, > > On Tue, Apr 6, 2021 at 3:43 PM Hauke Mehrtens wrote: > > > > Hi, > > > > How do we want to go forward with OpenWrt 21.02-rc1? > > > > * I think the base system is ok. > > * The http (original wolfssl) problem reported by jow

Re: [PATCH] kernel: no chacha-mips.ko on mips32 r1 targets

2021-02-26 Thread Jason A. Donenfeld
/ase, ath25 builds. > > Fixes: 06351f1 ("kernel: migrate wireguard into the kernel tree") > Cc: Jason A. Donenfeld > Signed-off-by: Ilya Lipnitskiy > --- > package/kernel/linux/modules/crypto.mk | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > d

Re: [PATCH] kernel-5.4: backport fd16931a2f51 for chacha neon

2021-03-02 Thread Jason A. Donenfeld
On Tue, Mar 2, 2021 at 9:09 AM Petr Štetiar wrote: > > Jason A. Donenfeld [2021-03-02 00:08:56]: > > Hi, > > > 126 files changed, 288 insertions(+), 249 deletions(-) > > this is quite huge diff for such simple update, what about using `git > format-pat

[PATCH] kernel-5.10: backport chacha non block size optimizations

2021-03-02 Thread Jason A. Donenfeld
These make a big difference when doing WireGuard with small armv7 routers, and the 5.4 backport already has it. Suggested-by: Ilya Lipnitskiy Cc: David Bauer Cc: Petr Štetiar Signed-off-by: Jason A. Donenfeld --- ...a-neon-optimize-for-non-block-size-m.patch | 272

[PATCH] kernel: backport pending fix to select CPU_MIPS64

2021-02-27 Thread Jason A. Donenfeld
Lipnitskiy Cc: David Bauer Signed-off-by: Jason A. Donenfeld --- ...CPU_MIPS64-for-remaining-MIPS64-CPUs.patch | 36 ++ ...CPU_MIPS64-for-remaining-MIPS64-CPUs.patch | 37 +++ 2 files changed, 73 insertions(+) create mode 100644 target/linux/generic/pending-5.10/103-MIPS

Re: OpenWrt 21.02-rc1 (backport request, WireGuard, DSA roaming, iproute2 5.11)

2021-04-07 Thread Jason A. Donenfeld
Re:WireGuard - fine by me. Thanks for doing that. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [PATCH] wireguard-tools: Add dependency on kmod-wireguard

2021-02-18 Thread Jason A. Donenfeld
I've backported WireGuard patch-by patch to 5.4, in a series that you can simply apply to your existing 5.4 kernels. I can prepare that for you guys tomorrow. That way, you'll have the kernel module in both 5.4 and 5.10 through the same mechanisms with the same code. That might save a lot of the

Re: [PATCH] wireguard-tools: Add dependency on kmod-wireguard

2021-02-19 Thread Jason A. Donenfeld
https://github.com/openwrt/openwrt/pull/3890 Voila -- here's a potentially much, much nicer approach in the long term. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [PATCH] wireguard-tools: Add dependency on kmod-wireguard

2021-02-19 Thread Jason A. Donenfeld
On Fri, Feb 19, 2021 at 5:48 AM Rosen Penev wrote: > > On Thu, Feb 18, 2021 at 8:31 PM Ilya Lipnitskiy > wrote: > > > > Hi, > > On Thu, Feb 18, 2021 at 5:57 PM Jason A. Donenfeld wrote: > > > > > > I've backported WireGuard patch-by patch to 5.4

Re: [PATCH v2] netfilter: remove no-op kconfig symbols

2021-04-22 Thread Jason A. Donenfeld
https://git.zx2c4.com/wireguard-linux/commit/?h=backport-5.4.y=ac8265d3b26e7c2674e066af6451c5a61d3f2e7a This will be included in the patchset next time I push a refresh of those. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[PATCH] urandom-seed: use seedrng for seeding the random number generator

2022-03-27 Thread Jason A. Donenfeld
an old one, which means that the amount of entropy might actually regress, due to failing to credit the old seed. Closes: https://github.com/openwrt/openwrt/issues/9570 Signed-off-by: Jason A. Donenfeld --- package/system/urandom-seed/Makefile | 4 +- .../files/etc/init.d/urando

Re: [PATCH] urandom-seed: use seedrng for seeding the random number generator

2022-04-04 Thread Jason A. Donenfeld
Hey Etienne, On Tue, Mar 29, 2022 at 7:21 AM Jason A. Donenfeld wrote: > > Hi Etienne, > > On Tue, Mar 29, 2022 at 1:06 AM Etienne Champetier > wrote: > > > Oh that's an interesting set of considerations and it's possible I > > > didn't understand some aspe

Re: [PATCH] urandom-seed: use seedrng for seeding the random number generator

2022-03-28 Thread Jason A. Donenfeld
Hey Etienne, On Mon, Mar 28, 2022 at 10:19 AM Etienne Champetier wrote: > > Hi All, Jason, > > @Petr Štetiar this merge was a bit too fast to get reviews ... > Some comments inline We can apply fixups on top, no big deal. > When urandom-seed was introduced in 2016 it was decided during review

Re: [PATCH] urandom-seed: use seedrng for seeding the random number generator

2022-03-28 Thread Jason A. Donenfeld
Hi Etienne, On Tue, Mar 29, 2022 at 1:06 AM Etienne Champetier wrote: > > Oh that's an interesting set of considerations and it's possible I > > didn't understand some aspect of this. Most OSes should call seedrng > > once at boot and once at shutdown. > > As routers are always on devices, it's

[PATCH] urandom-seed: go back to seeding with shell script temporarily

2022-04-11 Thread Jason A. Donenfeld
quot; +echo "Seed saved ($1)" +} + +SEED="$(uci -q get system.@system[0].urandom_seed || true)" +[ "${SEED:0:1}" = "/" ] && save "$SEED" + +SEED=/etc/urandom.seed +[ ! -f $SEED ] && save "$SEED" +true diff --git a/pa