]>
git.ipfire.org Git - thirdparty/wireguard-go.git/log 
Jason A. Donenfeld  [Tue, 4 Feb 2020 17:03:31 +0000  (18:03 +0100)]  
uapi: allow unsetting device private key with /dev/null
Jason A. Donenfeld  [Tue, 21 Jan 2020 15:27:19 +0000  (16:27 +0100)]  
version: bump snapshot
Jason A. Donenfeld  [Wed, 15 Jan 2020 18:39:37 +0000  (13:39 -0500)]  
tun: darwin: ignore ENOMEM errorsCoauthored-by: Andrej Mihajlov <and@mullvad.net> 
Jason A. Donenfeld  [Tue, 7 Jan 2020 16:40:45 +0000  (11:40 -0500)]  
tun: windows: serialize write calls
Jason A. Donenfeld  [Mon, 30 Dec 2019 10:46:34 +0000  (11:46 +0100)]  
README: update repo urls
Jason A. Donenfeld  [Wed, 27 Nov 2019 12:38:45 +0000  (13:38 +0100)]  
device: SendmsgN mutates the input sockaddr
So we take a new granular lock to prevent concurrent writes from
racing.
WARNING: DATA RACE
Write at 0x00c0011f2740 by goroutine 27:
  golang.org/x/sys/unix.(*SockaddrInet4).sockaddr()
      /go/pkg/mod/golang.org/x/sys@v0.0.0-
20191105231009 -
c1f44814a5cd /unix/syscall_linux.go:384
+0x114
  golang.org/x/sys/unix.SendmsgN()
      /go/pkg/mod/golang.org/x/sys@v0.0.0-
20191105231009 -
c1f44814a5cd /unix/syscall_linux.go:1304
+0x288
  golang.zx2c4.com/wireguard/device.send4()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/conn_linux.go:485
+0x11f
  golang.zx2c4.com/wireguard/device.(*nativeBind).Send()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/conn_linux.go:268
+0x1d6
  golang.zx2c4.com/wireguard/device.(*Peer).SendBuffer()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/peer.go:151
+0x285
  golang.zx2c4.com/wireguard/device.(*Peer).SendHandshakeInitiation()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/send.go:163
+0x692
  golang.zx2c4.com/wireguard/device.(*Device).RoutineReadFromTUN()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/send.go:318
+0x4b8
Previous write at 0x00c0011f2740 by goroutine 386:
  golang.org/x/sys/unix.(*SockaddrInet4).sockaddr()
      /go/pkg/mod/golang.org/x/sys@v0.0.0-
20191105231009 -
c1f44814a5cd /unix/syscall_linux.go:384
+0x114
  golang.org/x/sys/unix.SendmsgN()
      /go/pkg/mod/golang.org/x/sys@v0.0.0-
20191105231009 -
c1f44814a5cd /unix/syscall_linux.go:1304
+0x288
  golang.zx2c4.com/wireguard/device.send4()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/conn_linux.go:485
+0x11f
  golang.zx2c4.com/wireguard/device.(*nativeBind).Send()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/conn_linux.go:268
+0x1d6
  golang.zx2c4.com/wireguard/device.(*Peer).SendBuffer()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/peer.go:151
+0x285
  golang.zx2c4.com/wireguard/device.(*Peer).SendHandshakeInitiation()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/send.go:163
+0x692
  golang.zx2c4.com/wireguard/device.expiredRetransmitHandshake()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/timers.go:110
+0x40c
  golang.zx2c4.com/wireguard/device.(*Peer).NewTimer.func1()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/timers.go:42
+0xd8
Goroutine 27 (running) created at:
  golang.zx2c4.com/wireguard/device.NewDevice()
      /go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.
20191012 /device/device.go:322
+0x5e8
  main.main()
      /go/src/x/main.go:102 +0x58e
Goroutine 386 (finished) created at:
  time.goFunc()
      /usr/local/go/src/time/sleep.go:168 +0x51
Reported-by: Ben Burkert <ben@benburkert.com> 
Jason A. Donenfeld  [Thu, 21 Nov 2019 13:48:21 +0000  (14:48 +0100)]  
wintun: manage ring memory manually
Jason A. Donenfeld  [Wed, 30 Oct 2019 13:29:32 +0000  (14:29 +0100)]  
constants: recalculate rekey max based on a one minute flood
Jonathan Tooker  [Mon, 21 Oct 2019 20:52:26 +0000  (15:52 -0500)]  
global: fix a few typos courtesy of codespellSigned-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com> 
Jason A. Donenfeld  [Mon, 21 Oct 2019 11:29:57 +0000  (13:29 +0200)]  
device: allow blackholing sockets
Jason A. Donenfeld  [Mon, 21 Oct 2019 09:46:54 +0000  (11:46 +0200)]  
device: remove dead error reporting code
Jason A. Donenfeld  [Mon, 21 Oct 2019 07:02:29 +0000  (09:02 +0200)]  
namespaceapi: remove tasteless comment
Jason A. Donenfeld  [Thu, 17 Oct 2019 13:43:06 +0000  (15:43 +0200)]  
device: recheck counters while holding write lock
Jason A. Donenfeld  [Thu, 17 Oct 2019 13:30:56 +0000  (15:30 +0200)]  
wintun: normalize variable names for their types
Avery Pennarun  [Fri, 5 Apr 2019 06:26:40 +0000  (02:26  -0400)]  
wintun: quickly ignore non-Wintun devicesSigned-off-by: Avery Pennarun <apenwarr@gmail.com> 
Avery Pennarun  [Sat, 20 Apr 2019 07:28:06 +0000  (03:28  -0400)]  
tun: match windows CreateTUN signature to the Linux variantSigned-off-by: Avery Pennarun <apenwarr@gmail.com> 
Avery Pennarun  [Sat, 12 Oct 2019 07:46:13 +0000  (00:46  -0700)]  
rwcancel: handle EINTR and EAGAIN in unixSelect()Signed-off-by: Avery Pennarun <apenwarr@gmail.com> 
David Crawshaw  [Sat, 12 Oct 2019 16:44:05 +0000  (12:44 -0400)]  
device: test packets between two fake devicesSigned-off-by: David Crawshaw <crawshaw@tailscale.io> 
Jason A. Donenfeld  [Sat, 12 Oct 2019 20:34:10 +0000  (22:34 +0200)]  
version: bump snapshot
Jason A. Donenfeld  [Tue, 8 Oct 2019 14:48:18 +0000  (16:48 +0200)]  
Makefile: remove v prefix
Jason A. Donenfeld  [Tue, 8 Oct 2019 07:58:58 +0000  (09:58 +0200)]  
wintun: expose version
Jason A. Donenfeld  [Sat, 28 Sep 2019 18:12:46 +0000  (20:12 +0200)]  
uapi: allow preventing creation of new peers when updatingSuggested-by: Thomas Gschwantner <tharre3@gmail.com> 
Jason A. Donenfeld  [Sat, 21 Sep 2019 19:13:54 +0000  (21:13 +0200)]  
mod: bump versions
Jason A. Donenfeld  [Tue, 17 Sep 2019 05:39:16 +0000  (23:39 -0600)]  
winpipe: use x/sys/windows instead of syscall
Jason A. Donenfeld  [Tue, 17 Sep 2019 01:38:33 +0000  (19:38 -0600)]  
wintun: use correct length for security attributes
Jason A. Donenfeld  [Sun, 8 Sep 2019 18:52:44 +0000  (13:52 -0500)]  
tun: windows: unify error message format
Jason A. Donenfeld  [Sun, 8 Sep 2019 15:56:55 +0000  (10:56 -0500)]  
version: bump snapshot
Jason A. Donenfeld  [Sun, 8 Sep 2019 15:56:00 +0000  (10:56 -0500)]  
main: simplify warnings
Jason A. Donenfeld  [Sat, 7 Sep 2019 05:02:07 +0000  (00:02  -0500)]  
tun: openbsd: check for interface already being upReported-by: Theo Buehler <tb@theobuehler.org> 
Jason A. Donenfeld  [Fri, 6 Sep 2019 03:48:21 +0000  (21:48 -0600)]  
namespaceapi: AddSIDToBoundaryDescriptor modifies the handle
Jason A. Donenfeld  [Mon, 2 Sep 2019 03:32:28 +0000  (21:32 -0600)]  
wintun: take mutex first always
Jason A. Donenfeld  [Mon, 2 Sep 2019 03:25:47 +0000  (21:25 -0600)]  
wintun: consider abandoned mutexes as released
Jason A. Donenfeld  [Sat, 31 Aug 2019 13:48:42 +0000  (07:48 -0600)]  
ipc: windows: use protected prefix
Jason A. Donenfeld  [Fri, 30 Aug 2019 19:21:47 +0000  (13:21 -0600)]  
winpipe: enforce ownership of client connection
Jason A. Donenfeld  [Fri, 30 Aug 2019 16:31:27 +0000  (10:31 -0600)]  
wintun: put mutex into private namespace
Jason A. Donenfeld  [Fri, 30 Aug 2019 15:59:25 +0000  (09:59 -0600)]  
namespaceapi: fix mistake
Simon Rozman  [Fri, 30 Aug 2019 12:41:33 +0000  (14:41 +0200)]  
namespaceapi: initial versionSigned-off-by: Simon Rozman <simon@rozman.si> 
Jason A. Donenfeld  [Thu, 29 Aug 2019 23:42:28 +0000  (17:42 -0600)]  
wintun: take mutex so that deletion uses the right name
Jason A. Donenfeld  [Thu, 29 Aug 2019 18:47:16 +0000  (12:47 -0600)]  
wintun: move ring constants into module
Jason A. Donenfeld  [Thu, 29 Aug 2019 18:22:15 +0000  (12:22 -0600)]  
wintun: delete all interfaces is not used anymore
Jason A. Donenfeld  [Thu, 29 Aug 2019 18:20:40 +0000  (12:20 -0600)]  
wintun: Wintun->Interface
Jason A. Donenfeld  [Thu, 29 Aug 2019 18:13:16 +0000  (12:13 -0600)]  
wintun: keep reference to pool in wintun object
Simon Rozman  [Thu, 29 Aug 2019 16:00:44 +0000  (18:00 +0200)]  
wintun: introduce adapter poolsSigned-off-by: Simon Rozman <simon@rozman.si> 
Jason A. Donenfeld  [Thu, 29 Aug 2019 01:31:20 +0000  (19:31 -0600)]  
wintun: simplify rename logic
Jason A. Donenfeld  [Wed, 28 Aug 2019 14:39:26 +0000  (08:39 -0600)]  
wintun: give better errors when ndis interface listing fails
Jason A. Donenfeld  [Wed, 28 Aug 2019 14:08:07 +0000  (08:08 -0600)]  
wintun: also check for numbered suffix and friendly name
Simon Rozman  [Wed, 28 Aug 2019 09:39:01 +0000  (11:39 +0200)]  
wintun: upgrade deleting all interfaces and make it reusableSigned-off-by: Simon Rozman <simon@rozman.si> 
Jason A. Donenfeld  [Tue, 27 Aug 2019 16:54:49 +0000  (10:54 -0600)]  
wintun: cleanup earlier
Jason A. Donenfeld  [Tue, 27 Aug 2019 16:09:16 +0000  (10:09 -0600)]  
wintun: rename duplicate adapters instead of ourselves
Jason A. Donenfeld  [Mon, 26 Aug 2019 20:46:43 +0000  (14:46 -0600)]  
wintun: match suffix numbers
Jason A. Donenfeld  [Sun, 25 Aug 2019 18:45:13 +0000  (12:45 -0600)]  
device: getsockname on linux to determine port
Jason A. Donenfeld  [Sat, 24 Aug 2019 10:29:17 +0000  (12:29 +0200)]  
wintun: make description consistent across fields
Jason A. Donenfeld  [Thu, 22 Aug 2019 06:52:59 +0000  (08:52 +0200)]  
wintun: try multiple names until one isn't a duplicate
Jason A. Donenfeld  [Wed, 21 Aug 2019 06:40:44 +0000  (08:40 +0200)]  
wintun: use nci.dll directly instead of buggy netshell
Jason A. Donenfeld  [Tue, 20 Aug 2019 13:48:08 +0000  (15:48 +0200)]  
wintun: set friendly a bit better
Jason A. Donenfeld  [Mon, 19 Aug 2019 07:20:23 +0000  (09:20 +0200)]  
wintun: also set friendly name after setting interface name
Jason A. Donenfeld  [Mon, 19 Aug 2019 07:11:21 +0000  (09:11 +0200)]  
wintun: defer requires unique variable
Jason A. Donenfeld  [Mon, 19 Aug 2019 07:01:53 +0000  (09:01 +0200)]  
wintun: set adapter description name
Jason A. Donenfeld  [Sun, 18 Aug 2019 09:49:37 +0000  (11:49 +0200)]  
tun: windows: don't spin unless we really need it
Jason A. Donenfeld  [Mon, 5 Aug 2019 17:29:12 +0000  (19:29 +0200)]  
version: bump snapshot
Jason A. Donenfeld  [Mon, 5 Aug 2019 15:46:34 +0000  (17:46 +0200)]  
device: drop lock before expiring keys
Jason A. Donenfeld  [Mon, 5 Aug 2019 14:57:41 +0000  (16:57 +0200)]  
uapi: skip peers with invalid keys
Jason A. Donenfeld  [Sat, 3 Aug 2019 17:05:53 +0000  (19:05 +0200)]  
tun: windows: spin for only a millisecond/80
Simon Rozman  [Fri, 2 Aug 2019 13:48:41 +0000  (15:48 +0200)]  
wintun: merge opening device registry keySigned-off-by: Simon Rozman <simon@rozman.si> 
Simon Rozman  [Fri, 2 Aug 2019 13:37:08 +0000  (15:37 +0200)]  
wintun: simplify checking reboot requirementSigned-off-by: Simon Rozman <simon@rozman.si> 
Simon Rozman  [Fri, 2 Aug 2019 12:53:02 +0000  (14:53 +0200)]  
wintun: refactor `err == nil` error checkingSigned-off-by: Simon Rozman <simon@rozman.si> 
Jason A. Donenfeld  [Fri, 2 Aug 2019 12:37:09 +0000  (14:37 +0200)]  
wintun: handle error for deadgwdetect
Jason A. Donenfeld  [Fri, 2 Aug 2019 10:24:00 +0000  (12:24 +0200)]  
tun: darwin: do not attempt to close tun.event twice
Jason A. Donenfeld  [Tue, 23 Jul 2019 12:58:46 +0000  (14:58 +0200)]  
wintun: get interface path properly with cfgmgr
Jason A. Donenfeld  [Tue, 23 Jul 2019 09:45:48 +0000  (11:45 +0200)]  
tun: windows: style
Jason A. Donenfeld  [Tue, 23 Jul 2019 09:45:13 +0000  (11:45 +0200)]  
wintun: simplify resolution of dev node
Jason A. Donenfeld  [Mon, 22 Jul 2019 15:01:27 +0000  (17:01 +0200)]  
wintun: enable sharing of pnp node
Jason A. Donenfeld  [Mon, 22 Jul 2019 07:37:20 +0000  (09:37 +0200)]  
tun: windows: close event handle on shutdown
Jason A. Donenfeld  [Fri, 19 Jul 2019 13:34:26 +0000  (15:34 +0200)]  
ipc: windows: match SDDL of WDK and make monkeyable
Jason A. Donenfeld  [Fri, 19 Jul 2019 11:51:56 +0000  (13:51 +0200)]  
tun: windows: get rid of retry logic
Jason A. Donenfeld  [Fri, 19 Jul 2019 06:30:19 +0000  (08:30 +0200)]  
tun: windows: use specific IOCTL code
Jason A. Donenfeld  [Thu, 18 Jul 2019 17:34:45 +0000  (19:34 +0200)]  
device: do not crash on nil'd bind in windows binding
Jason A. Donenfeld  [Thu, 18 Jul 2019 17:26:25 +0000  (19:26 +0200)]  
tun: windows: open file at startup time
Jason A. Donenfeld  [Thu, 18 Jul 2019 13:48:34 +0000  (15:48 +0200)]  
tun: windows: silently drop packet when ring is full
Jason A. Donenfeld  [Thu, 18 Jul 2019 10:26:57 +0000  (12:26 +0200)]  
tun: windows: switch to NDIS device object
Jason A. Donenfeld  [Thu, 18 Jul 2019 08:25:12 +0000  (10:25 +0200)]  
wintun: calculate path of NDIS device object symbolic link
Michael Zeltner  [Wed, 17 Jul 2019 21:04:01 +0000  (23:04 +0200)]  
tun: openbsd: don't change MTU when it's already the expected sizeSigned-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 
Jason A. Donenfeld  [Wed, 17 Jul 2019 07:06:34 +0000  (09:06 +0200)]  
tun: windows: spin for a bit before falling back to event object
Simon Rozman  [Thu, 11 Jul 2019 08:35:47 +0000  (10:35 +0200)]  
tun: windows: implement ring buffersSigned-off-by: Simon Rozman <simon@rozman.si> 
Jason A. Donenfeld  [Thu, 11 Jul 2019 15:36:36 +0000  (17:36 +0200)]  
device: immediately rekey all peers after changing device private keyReported-by: Derrick Pallas <derrick@pallas.us> 
Jason A. Donenfeld  [Mon, 8 Jul 2019 12:52:49 +0000  (14:52 +0200)]  
README: update windows info
Jason A. Donenfeld  [Fri, 5 Jul 2019 05:54:25 +0000  (07:54 +0200)]  
tun: windows: registration of write buffer no longer required
Jason A. Donenfeld  [Fri, 5 Jul 2019 05:53:19 +0000  (07:53 +0200)]  
tun: windows: decrease alignment to 4
Jason A. Donenfeld  [Thu, 4 Jul 2019 20:41:42 +0000  (22:41 +0200)]  
tun: windows: delay initial write
Jason A. Donenfeld  [Mon, 1 Jul 2019 13:24:50 +0000  (15:24 +0200)]  
device: receive: uniform message for source address check
Jason A. Donenfeld  [Mon, 1 Jul 2019 11:37:54 +0000  (13:37 +0200)]  
tun: windows: packetNum is unused
Jason A. Donenfeld  [Mon, 1 Jul 2019 13:23:24 +0000  (15:23 +0200)]  
device: receive: simplify flush loop
Jason A. Donenfeld  [Wed, 26 Jun 2019 11:27:48 +0000  (13:27 +0200)]  
tun: windows: inform wintun of maximum buffer length for writes
Jason A. Donenfeld  [Tue, 18 Jun 2019 14:08:28 +0000  (16:08 +0200)]  
tun: windows: never retry open on Windows 10
Matt Layher  [Mon, 10 Jun 2019 21:33:40 +0000  (17:33 -0400)]  
tun: remove TUN prefix from types to reduce stutter elsewhereSigned-off-by: Matt Layher <mdlayher@gmail.com> 
Jason A. Donenfeld  [Tue, 11 Jun 2019 16:13:52 +0000  (18:13 +0200)]  
device: update transfer counters correctly
Jason A. Donenfeld  [Mon, 10 Jun 2019 22:33:07 +0000  (00:33  +0200)]  
wintun: increase registry timeout
Jason A. Donenfeld  [Mon, 10 Jun 2019 09:20:49 +0000  (11:20 +0200)]  
wintun: add helper for cleaning up
Jason A. Donenfeld  [Mon, 10 Jun 2019 09:10:49 +0000  (11:10 +0200)]  
wintun: simplify error matching and remove dumb comments
Jason A. Donenfeld  [Mon, 10 Jun 2019 09:02:18 +0000  (11:02 +0200)]  
wintun: fix comments and remove hwnd param