aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: cleanup IP header checkingJason A. Donenfeld2017-06-267-77/+46
| | | | This way is more correct and ensures we're within the skb head.
* device: remove icmp conntrack hacksJason A. Donenfeld2017-06-263-35/+37
| | | | This logic belongs upstream.
* compat: clean up cruftJason A. Donenfeld2017-06-261-4/+2
|
* device: avoid double icmp send on routing loopJason A. Donenfeld2017-06-261-1/+0
|
* socket: use ip_rt_put instead of dst_releaseJason A. Donenfeld2017-06-261-2/+2
|
* socket: verify saddr belongs to interfaceJason A. Donenfeld2017-06-262-1/+9
| | | | | This helps "unstick" stuck source addresses, when changing routes dynamically.
* ratelimiter: rewrite from scratchJason A. Donenfeld2017-06-2611-159/+179
| | | | | | | This not only removes the depenency on x_tables, but it also gives us much better performance and memory usage. Now, systems are able to have millions of WireGuard interfaces, without having to worry about a thundering herd of garbage collection.
* curve25519: keep certain sandy2x functions in CJason A. Donenfeld2017-06-252-232/+84
| | | | We can let the compiler optimize how it sees fit.
* curve25519: satisfy sparse and use short typesJason A. Donenfeld2017-06-241-26/+26
|
* receive: extend rate limiting to 1 second after under load detectionJason A. Donenfeld2017-06-241-0/+5
|
* device: only use one sleep notifierJason A. Donenfeld2017-06-242-23/+27
| | | | | This greatly improves performance when adding and removing interfaces, since the power registration function does a linear search each time.
* device: netdevice destruction logic change for 4.12Jason A. Donenfeld2017-06-241-4/+13
|
* wg-quick: properly match IPv6 endpointJason A. Donenfeld2017-06-241-1/+1
|
* selftest: remove antique siphash self testJason A. Donenfeld2017-06-241-89/+0
|
* main: annotate init/exit functions to save memoryJason A. Donenfeld2017-06-2411-39/+39
|
* version: bump snapshot0.0.20170613Jason A. Donenfeld2017-06-132-2/+2
|
* tools: use proper __linux__ ifdefJason A. Donenfeld2017-06-121-1/+1
|
* random: wait for random bytes when generating nonces and ephemeralsJason A. Donenfeld2017-06-124-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.
* version: bump snapshot0.0.20170612Jason A. Donenfeld2017-06-122-2/+2
|
* wg-quick: match ipv6 default route more broadlyJason A. Donenfeld2017-06-121-1/+1
|
* wg-quick: make sure we have empty table for both v6 and v4Jason A. Donenfeld2017-06-111-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>
* config: ensure the RNG is initialized before settingJason A. Donenfeld2017-06-082-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
* noise: fix race when replacing handshakeJason A. Donenfeld2017-06-083-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>
* peer: explicitly initialize atomicJason A. Donenfeld2017-06-051-0/+3
|
* compat: remove padata hotplug codeJason A. Donenfeld2017-06-011-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.
* curve25519: use more standard label convention in asmJason A. Donenfeld2017-06-012-24/+24
|
* device: do-while assignment styleJason A. Donenfeld2017-06-011-1/+1
|
* receive: trim incoming packets to IP header lengthJason A. Donenfeld2017-06-013-2/+17
|
* timers: queue up killing ephemerals only if not alreadyJason A. Donenfeld2017-05-311-1/+1
|
* config: add new line for styleJason A. Donenfeld2017-05-311-0/+1
|
* version: bump snapshot0.0.20170531Jason A. Donenfeld2017-05-312-2/+2
|
* timers: reset retry-attempt counter when not retryingJason A. Donenfeld2017-05-314-7/+10
|
* timers: the completion of a handshake also is on key confirmationJason A. Donenfeld2017-05-312-2/+3
|
* timers: rework handshake reply control flowJason A. Donenfeld2017-05-311-9/+8
|
* debug: print interface name in dmesgJason A. Donenfeld2017-05-3111-50/+52
|
* compat: remove warning for < 4.1Jason A. Donenfeld2017-05-311-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.
* config: it's faster to memcpy than strncpyJason A. Donenfeld2017-05-311-2/+1
| | | | IFNAMSIZ is 16, so this is two instructions on 64-bit.
* routingtable: Remove unnecessary check in node_placement()Sultan Alsawaf2017-05-311-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>
* data: enable BH during parallel crypto on ARM/NEONJason A. Donenfeld2017-05-311-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.
* curve25519: add NEON versions for ARMJason A. Donenfeld2017-05-313-29/+2160
|
* curve25519: align the basepoint to 32 bytesJason A. Donenfeld2017-05-311-2/+2
|
* curve25519: actually, do some things on heap sometimesJason A. Donenfeld2017-05-311-0/+170
| | | | This reverts commit 42dd5bd87e418275203dd6644b6b6b0cc310d4d9.
* tools: allow creating device with no peersJason A. Donenfeld2017-05-311-4/+0
|
* config: do not error out when getting if no peersJason A. Donenfeld2017-05-311-0/+1
|
* device: keep going when share_check failsJason A. Donenfeld2017-05-301-4/+4
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* timers: fix typo in commentJason A. Donenfeld2017-05-301-1/+1
| | | | Suggested-by: Peter Wu <peter@lekensteyn.nl>
* style: spaces after for loopsJason A. Donenfeld2017-05-307-15/+15
|
* peer: use iterator macro instead of callbackJason A. Donenfeld2017-05-306-77/+73
|
* noise: precompute static-static ECDH operationJason A. Donenfeld2017-05-304-15/+30
|
* noise: no need to store ephemeral public keyJason A. Donenfeld2017-05-302-7/+6
|