summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* version: bump snapshot0.0.20170706Jason A. Donenfeld2017-07-062-2/+2
|
* socket: the checkers distinguish between _bh and non _bhJason A. Donenfeld2017-07-061-1/+1
|
* device: cleanup register_netdev logicJason A. Donenfeld2017-07-062-15/+12
|
* compat: priv_destructor got backportedJason A. Donenfeld2017-07-061-5/+7
|
* counter: use correct unit for indicesJason A. Donenfeld2017-07-061-3/+3
| | | | | Even though redundant bits == bits per long, we're indexing into something that uses longs as its unit, so this is correct.
* ratelimiter: add self-testJason A. Donenfeld2017-07-064-1/+121
|
* ratelimiter: use IPv6 /64 instead of /96Jason A. Donenfeld2017-07-041-8/+8
|
* ratelimiter: use kvzalloc for hash table allocationJason A. Donenfeld2017-07-042-9/+41
|
* gitignore: ignore split DWARF debug infoSamuel Holland2017-07-031-0/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* compat: workaround Ubuntu 16.10 kernel weirdnessJason A. Donenfeld2017-07-031-0/+1
|
* compat: support OpenSUSE's backportsJason A. Donenfeld2017-07-031-1/+6
|
* receive: cleanup error handlersJason A. Donenfeld2017-06-291-21/+23
|
* version: bump snapshot0.0.20170629Jason A. Donenfeld2017-06-292-2/+2
|
* receive: pull IP header into headJason A. Donenfeld2017-06-291-0/+4
|
* receive: fix off-by-one in packet length checkingJason A. Donenfeld2017-06-291-1/+1
| | | | | | | | | | | | This caused certain packets to be rejected that shouldn't be rejected, in the case of certain scatter-gather ethernet drivers doing GRO pulling right up to the UDP bounds but not beyond. This caused certain TCP connections to fail. Thanks very much to Reuben for providing access to the machine to debug this regression. Reported-by: Reuben Martin <reuben.m@gmail.com>
* tools: remove double include in ipcJason A. Donenfeld2017-06-291-1/+0
|
* version: bump snapshot0.0.20170628Jason A. Donenfeld2017-06-282-2/+2
|
* compat: support Ubuntu 14.04Jason A. Donenfeld2017-06-281-4/+10
|
* compat: support EL7.3Jason A. Donenfeld2017-06-281-16/+21
|
* wg-quick: use printf -v instead of namerefs for bash 4.2Jason A. Donenfeld2017-06-281-3/+2
| | | | I'm not happy about this.
* compat: do not export symbols unnecessarilyJason A. Donenfeld2017-06-284-34/+0
|
* 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
|
* haskell: re-add updated haskell exampleJason A. Donenfeld2017-06-245-0/+268
| | | | Code-from: John Galt <jgalt@centromere.net>
* 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>
* external-tests: trim the fatJason A. Donenfeld2017-06-095-205/+0
|
* 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>
* go test: use x/crypto for blake2s now that we have 128-bit macJason A. Donenfeld2017-06-081-3/+3
|
* peer: explicitly initialize atomicJason A. Donenfeld2017-06-051-0/+3
|
* go test: correct tai64n and formattingJason A. Donenfeld2017-06-011-26/+26
|
* external-tests: add keepalive packetJason A. Donenfeld2017-06-012-0/+23
|