aboutsummaryrefslogtreecommitdiffstats
path: root/TODO.md
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-03 16:31:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-03 19:54:39 +0200
commit561f3a8f930cf2e44f493fa04d932ba9a2362cc5 (patch)
tree0adc4943df4c61f0f0e2c8a92673b590a742cc22 /TODO.md
parentif_wg: put event notifiers in main loop (diff)
downloadwireguard-freebsd-561f3a8f930cf2e44f493fa04d932ba9a2362cc5.tar.xz
wireguard-freebsd-561f3a8f930cf2e44f493fa04d932ba9a2362cc5.zip
wg_noise: set handshake to dead before removing keypair
Otherwise CK_LIST_REMOVE might be called twice on the same element. Running the following trigger will reproduce the bug that Manojav reported: #!/usr/local/bin/bash NUM_PEER=50 peer_args=( ) for ((i=0; i<NUM_PEER; i++)); do port="$RANDOM" private="$(wg genkey)" ifconfig "wg$i" create wg set "wg$i" listen-port "$port" private-key <(echo "$private") peer_args+=( peer "$(wg pubkey <<<"$private")" endpoint "127.0.0.1:$port" persistent-keepalive 1 ) done for ((i=0; i<NUM_PEER; i++)); do wg set "wg$i" "${peer_args[@]}" ifconfig "wg$i" up done wg while true; do for ((i=0; i<NUM_PEER; i++)); do ifconfig "wg$i" down ifconfig "wg$i" up done done Reported-by: Manojav Sridhar <manojav@manojav.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'TODO.md')
0 files changed, 0 insertions, 0 deletions