1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 09:15:14 +01:00
wireguard-go/device
David Anderson ad256f0b73 device: remove racey read in session key rotation.
This code was attempting to use the "compare racily, then lock
and compare again" idiom to try and reduce lock contention.
However, that idiom is not safe to use unless the comparison
uses atomic operations, which this does not.

This change simply deletes the racy read. This makes the code
correct, but potentially increases lock contention.

Signed-off-by: David Anderson <danderson@tailscale.com>
2020-04-03 11:35:28 +11:00
..
allowedips_rand_test.go global: begin modularization 2019-03-03 05:00:40 +01:00
allowedips_test.go global: begin modularization 2019-03-03 05:00:40 +01:00
allowedips.go global: begin modularization 2019-03-03 05:00:40 +01:00
bind_test.go conn: new package that splits out the Bind and Endpoint types 2020-03-30 21:05:11 +11:00
bindsocketshim.go conn: new package that splits out the Bind and Endpoint types 2020-03-30 21:05:11 +11:00
boundif_android.go device: fail to give bind if it doesn't exist 2019-05-17 15:35:20 +02:00
constants.go constants: recalculate rekey max based on a one minute flood 2019-10-30 14:29:32 +01:00
cookie_test.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
cookie.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
device_test.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
device.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
endpoint_test.go global: begin modularization 2019-03-03 05:00:40 +01:00
indextable.go global: begin modularization 2019-03-03 05:00:40 +01:00
ip.go global: begin modularization 2019-03-03 05:00:40 +01:00
kdf_test.go global: regroup all imports 2019-05-14 09:09:52 +02:00
keypair.go global: regroup all imports 2019-05-14 09:09:52 +02:00
logger.go global: begin modularization 2019-03-03 05:00:40 +01:00
misc.go global: begin modularization 2019-03-03 05:00:40 +01:00
noise_test.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
noise-helpers.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
noise-protocol.go device: remove racey read in session key rotation. 2020-04-03 11:35:28 +11:00
peer_test.go device: make Peer fields safe for atomic access on 32-bit. 2020-03-30 20:10:36 +11:00
peer.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
pools.go global: begin modularization 2019-03-03 05:00:40 +01:00
queueconstants_android.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
queueconstants_default.go tun: import mobile particularities 2019-03-04 16:37:11 +01:00
queueconstants_ios.go tun: import mobile particularities 2019-03-04 16:37:11 +01:00
receive.go conn: new package that splits out the Bind and Endpoint types 2020-03-30 21:05:11 +11:00
send.go send: account for zero mtu 2020-02-14 18:53:55 +01:00
sticky_default.go conn: new package that splits out the Bind and Endpoint types 2020-03-30 21:05:11 +11:00
sticky_linux.go conn: new package that splits out the Bind and Endpoint types 2020-03-30 21:05:11 +11:00
timers.go device: timers: add jitter on ack failure reinitiation 2019-05-24 13:48:25 +02:00
tun_test.go tun: remove TUN prefix from types to reduce stutter elsewhere 2019-06-14 18:35:57 +02:00
tun.go tun: remove TUN prefix from types to reduce stutter elsewhere 2019-06-14 18:35:57 +02:00
uapi.go device: use wgcfg key types 2020-04-02 15:53:10 +11:00
version.go version: bump snapshot 2020-03-20 12:00:53 -06:00