aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-06-25curve25519: keep certain sandy2x functions in CJason A. Donenfeld2-232/+84
We can let the compiler optimize how it sees fit.
2017-06-24curve25519: satisfy sparse and use short typesJason A. Donenfeld1-26/+26
2017-06-24receive: extend rate limiting to 1 second after under load detectionJason A. Donenfeld1-0/+5
2017-06-24device: only use one sleep notifierJason A. Donenfeld2-23/+27
This greatly improves performance when adding and removing interfaces, since the power registration function does a linear search each time.
2017-06-24device: netdevice destruction logic change for 4.12Jason A. Donenfeld1-4/+13
2017-06-24wg-quick: properly match IPv6 endpointJason A. Donenfeld1-1/+1
2017-06-24haskell: re-add updated haskell exampleJason A. Donenfeld5-0/+268
Code-from: John Galt <jgalt@centromere.net>
2017-06-24selftest: remove antique siphash self testJason A. Donenfeld1-89/+0
2017-06-24main: annotate init/exit functions to save memoryJason A. Donenfeld11-39/+39
2017-06-13version: bump snapshot0.0.20170613Jason A. Donenfeld2-2/+2
2017-06-12tools: use proper __linux__ ifdefJason A. Donenfeld1-1/+1
2017-06-12random: wait for random bytes when generating nonces and ephemeralsJason A. Donenfeld4-7/+12
We can let userspace configure wireguard interfaces before the RNG is fully initialized, since what we mostly care about is having good randomness for ephemerals and xchacha nonces. By deferring the wait to actually asking for the randomness, we give a lot more opportunity for gathering entropy. This won't cover entropy for hash table secrets or cookie secrets (which rotate anyway), but those have far less catastrophic failure modes, so ensuring good randomness for elliptic curve points and nonces should be sufficient.
2017-06-12version: bump snapshot0.0.20170612Jason A. Donenfeld2-2/+2
2017-06-12wg-quick: match ipv6 default route more broadlyJason A. Donenfeld1-1/+1
2017-06-11wg-quick: make sure we have empty table for both v6 and v4Jason A. Donenfeld1-1/+3
Otherwise, we wind up not doing the right thing in the v6-only case, or doing something totally borked when v4 and v6 are filled unevenly. Reported-by: Roelf Wichertjes <contact@roelf.org>
2017-06-09external-tests: trim the fatJason A. Donenfeld5-205/+0
2017-06-08config: ensure the RNG is initialized before settingJason A. Donenfeld2-0/+48
It's possible that get_random_bytes() will return bad randomness if it hasn't been seeded. This patch makes configuration block until the RNG is properly initialized. Reference: http://www.openwall.com/lists/kernel-hardening/2017/06/02/2
2017-06-08noise: fix race when replacing handshakeJason A. Donenfeld3-11/+24
Replacing an entry that's already been replaced is something that could happen when processing handshake messages in parallel, when starting up multiple instances on the same machine. Reported-by: Hubert Goisern <zweizweizwoelf@gmail.com>
2017-06-08go test: use x/crypto for blake2s now that we have 128-bit macJason A. Donenfeld1-3/+3
2017-06-05peer: explicitly initialize atomicJason A. Donenfeld1-0/+3
2017-06-01go test: correct tai64n and formattingJason A. Donenfeld1-26/+26
2017-06-01external-tests: add keepalive packetJason A. Donenfeld2-0/+23
2017-06-01compat: remove padata hotplug codeJason A. Donenfeld1-149/+0
It's different on different kernel versions, and we're not using it anyway, so it's easiest to just get rid of it, rather than having another ifdef maze.
2017-06-01curve25519: use more standard label convention in asmJason A. Donenfeld2-24/+24
2017-06-01device: do-while assignment styleJason A. Donenfeld1-1/+1
2017-06-01receive: trim incoming packets to IP header lengthJason A. Donenfeld3-2/+17
2017-06-01go test: properly pad messageJason A. Donenfeld1-2/+2
2017-05-31timers: queue up killing ephemerals only if not alreadyJason A. Donenfeld1-1/+1
2017-05-31config: add new line for styleJason A. Donenfeld1-0/+1
2017-05-31version: bump snapshot0.0.20170531Jason A. Donenfeld2-2/+2
2017-05-31timers: reset retry-attempt counter when not retryingJason A. Donenfeld4-7/+10
2017-05-31timers: the completion of a handshake also is on key confirmationJason A. Donenfeld2-2/+3
2017-05-31timers: rework handshake reply control flowJason A. Donenfeld1-9/+8
2017-05-31debug: print interface name in dmesgJason A. Donenfeld11-50/+52
2017-05-31compat: remove warning for < 4.1Jason A. Donenfeld1-2/+0
It still is sort of experimental, I suppose, especially this part in the udp_tunnel drop-in: skb_orphan(skb); sk_mem_reclaim(sk); It seems like sometimes this won't do what we want, but it's hard to diagnose exactly what's happening. In any case, nobody paid attention to that warning anyway, so let's just get rid of it.
2017-05-31config: it's faster to memcpy than strncpyJason A. Donenfeld1-2/+1
IFNAMSIZ is 16, so this is two instructions on 64-bit.
2017-05-31routingtable: Remove unnecessary check in node_placement()Sultan Alsawaf1-2/+1
node_placement() is always given the address of a stack variable for rnode, so there's no need to check if rnode is null. Signed-off-by: Sultan Alsawaf <sultanxda@gmail.com>
2017-05-31data: enable BH during parallel crypto on ARM/NEONJason A. Donenfeld1-0/+12
padata disables it, but in order to use SIMD on ARM, we can't be in an interrupt. We only do this on ARM since it adds jitter to the performance.
2017-05-31curve25519: add NEON versions for ARMJason A. Donenfeld3-29/+2160
2017-05-31curve25519: align the basepoint to 32 bytesJason A. Donenfeld1-2/+2
2017-05-31curve25519: actually, do some things on heap sometimesJason A. Donenfeld1-0/+170
This reverts commit 42dd5bd87e418275203dd6644b6b6b0cc310d4d9.
2017-05-31tools: allow creating device with no peersJason A. Donenfeld1-4/+0
2017-05-31config: do not error out when getting if no peersJason A. Donenfeld1-0/+1
2017-05-30device: keep going when share_check failsJason A. Donenfeld1-4/+4
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
2017-05-30timers: fix typo in commentJason A. Donenfeld1-1/+1
Suggested-by: Peter Wu <peter@lekensteyn.nl>
2017-05-30rust test: add icmp pingJason A. Donenfeld2-10/+63
2017-05-30rust test: convert screech test to snowJake McGinty2-39/+31
2017-05-30style: spaces after for loopsJason A. Donenfeld7-15/+15
2017-05-30peer: use iterator macro instead of callbackJason A. Donenfeld6-77/+73
2017-05-30noise: precompute static-static ECDH operationJason A. Donenfeld4-15/+30