Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2017-10-31 | crypto/avx: make sure we can actually use ymm registers | Jason A. Donenfeld | 4 | -3/+23 | |
2017-10-31 | blake2: include headers for macros | Jason A. Donenfeld | 1 | -0/+2 | |
2017-10-31 | global: accept decent check_patch.pl suggestions | Jason A. Donenfeld | 13 | -30/+44 | |
2017-10-31 | compat: fix up stat calculation for udp tunnel | Jason A. Donenfeld | 2 | -5/+16 | |
2017-10-31 | stats: more robust accounting | Jason A. Donenfeld | 4 | -6/+18 | |
2017-10-31 | selftest: initialize mutex in routingtable selftest | Jason A. Donenfeld | 1 | -0/+2 | |
2017-10-31 | netns: use time-based test instead of quantity-based | Jason A. Donenfeld | 1 | -4/+4 | |
2017-10-31 | netns: use read built-in instead of ncat hack for dmesg | Jason A. Donenfeld | 1 | -4/+2 | |
This misses lines that are greater than 128 bytes -- read returns -EINVAL -- but the lines we care about anyway are less than that, so we simply keep looping and skip the bad reads when this happens. Not ideal, but probably the best we can do in pure bash. And, importantly, it's much better than streaming this over a TCP socket, which was an even uglier hack. | |||||
2017-10-17 | version: bump snapshot0.0.20171017 | Jason A. Donenfeld | 2 | -2/+2 | |
2017-10-17 | tools: account for padding being in zero attribute | Jason A. Donenfeld | 1 | -0/+6 | |
2017-10-17 | tools: newline after warning | Jason A. Donenfeld | 1 | -1/+1 | |
2017-10-17 | tools: style | Jason A. Donenfeld | 1 | -1/+1 | |
2017-10-17 | qemu: put hvc directive into configuration | Jason A. Donenfeld | 2 | -2/+3 | |
2017-10-17 | netns: disable accept_dad for all interfaces | Jason A. Donenfeld | 1 | -0/+2 | |
Upstream's a2d3f3e33853ef52e5f66b41c3e8ee5710aa3305 broke things in strange and confusing ways. | |||||
2017-10-17 | tools: add pass example to wg-quick man page | Jason A. Donenfeld | 1 | -22/+9 | |
2017-10-17 | tools: don't insist on having a private key | Jason A. Donenfeld | 1 | -5/+0 | |
This lets us do flexible things from wg-quick such as: PostUp = wg set %i private-key <(pass WireGuard/private-keys/%i) It also was never a very sensible policy to enforce. Suggested-by: Luis Ressel <aranea@aixah.de> | |||||
2017-10-17 | tools: retry resolution except when fatal | Jason A. Donenfeld | 3 | -21/+23 | |
The reference to this is <https://sourceware.org/glibc/wiki/NameResolver>, which mentions: "From the perspective of the application that calls getaddrinfo() it perhaps doesn't matter that much since EAI_FAIL, EAI_NONAME and EAI_NODATA are all permanent failure codes and the causes are all permanent failures in the sense that there is no point in retrying later." This should cover more early-boot situations. While we're at it, we clean up the logic a bit so that we don't have a retry message on the final non-retrying attempt. We also peer into errno when receiving EAI_SYSTEM, to report to the user what actually happened. Also, fix the quoting back tick front tick mess. | |||||
2017-10-17 | tools: encoding: be more paranoid | Jason A. Donenfeld | 1 | -2/+2 | |
Needless, but overkill can be fun. | |||||
2017-10-17 | Makefile: even prettier output | Jason A. Donenfeld | 2 | -3/+7 | |
2017-10-17 | qemu: newer packages | Jason A. Donenfeld | 1 | -37/+50 | |
2017-10-17 | qemu: always create directory before untarring | Jason A. Donenfeld | 1 | -1/+9 | |
2017-10-17 | qemu: phase out bitbanging | Jason A. Donenfeld | 3 | -28/+5 | |
Although I was secretly proud of having figured out these unholy hacks, it turns out -no-reboot lets us do things in a platform-independent way. Suggested-by: Jann Horn <jann@thejh.net> | |||||
2017-10-17 | qemu: open /dev/console if we're started early | Jason A. Donenfeld | 1 | -3/+19 | |
2017-10-17 | qemu: simplify shutdown | Jason A. Donenfeld | 1 | -4/+2 | |
Now that we have the watchdog, killing the watchdog process is another way of shutting down. | |||||
2017-10-17 | qemu: add more debugging options to main makefile | Jason A. Donenfeld | 2 | -13/+11 | |
2017-10-17 | qemu: work on ubuntu toolchain | Jason A. Donenfeld | 1 | -1/+1 | |
2017-10-17 | qemu: add build-only target | Jason A. Donenfeld | 1 | -0/+3 | |
Useful for IDEs | |||||
2017-10-17 | selftest: better test index for rate limiter | Jason A. Donenfeld | 1 | -2/+13 | |
2017-10-17 | blake2s: modernize API and have faster _final | Jason A. Donenfeld | 2 | -48/+64 | |
2017-10-17 | Makefile: do not clean before cloc | Jason A. Donenfeld | 1 | -2/+2 | |
2017-10-17 | receive: improve control flow | Jason A. Donenfeld | 1 | -4/+2 | |
2017-10-17 | compat: support READ_ONCE | Jason A. Donenfeld | 1 | -0/+4 | |
2017-10-17 | device: no need to take lock for integer comparison | Jason A. Donenfeld | 1 | -4/+3 | |
2017-10-17 | device: our use of queues means this check is worthless | Jason A. Donenfeld | 1 | -6/+0 | |
2017-10-17 | socket: eliminate dead code | Jason A. Donenfeld | 1 | -2/+1 | |
2017-10-17 | send: improve dead packet control flow | Jason A. Donenfeld | 1 | -6/+3 | |
2017-10-17 | noise: no need to take the RCU lock if we're not dereferencing | Jason A. Donenfeld | 1 | -4/+2 | |
2017-10-17 | compat: just make ro_after_init read_mostly | Jason A. Donenfeld | 2 | -3/+5 | |
2017-10-17 | noise: handshake constants can be read-only after init | Jason A. Donenfeld | 1 | -2/+2 | |
2017-10-11 | version: bump snapshot0.0.20171011 | Jason A. Donenfeld | 2 | -2/+2 | |
2017-10-11 | contrib: filter compat lines | Jason A. Donenfeld | 2 | -1/+29 | |
2017-10-11 | receive: disable bh before using stats seq lock | Jason A. Donenfeld | 1 | -0/+4 | |
Otherwise we might get a situation like this: CPU0 CPU1 ---- ---- lock(tstats lock); local_irq_disable(); lock(queue lock); lock(tstats lock); <Interrupt> lock(queue lock); CPU1 is waiting for CPU0 to release tstats lock. But CPU0, in the interrupt handler, is waiting for CPU1 to release queue lock. The solution is to disable interrupts on CPU0, so that this can't happen. Note that this only affects 32-bit, since u64_stats_update_begin nops out on native 64-bit platforms. Reported-by: René van Dorst <opensource@vdorst.com> | |||||
2017-10-11 | tools: man: include kill-switch documentation using fwmark | Jason A. Donenfeld | 1 | -0/+36 | |
2017-10-11 | socket: set skb->mark in addition to flowi | Jason A. Donenfeld | 1 | -0/+2 | |
Otherwise netfilter's ip_route_me_harder doesn't know how to reroute this and we get a nasty loop. | |||||
2017-10-11 | send: do not requeue if packet is dead | Jason A. Donenfeld | 1 | -1/+6 | |
2017-10-11 | compat: move version logic to compat.h and out of main .c | Jason A. Donenfeld | 3 | -8/+22 | |
2017-10-10 | tools: store tail pointer to make coalescing peers fast | Jason A. Donenfeld | 2 | -74/+70 | |
2017-10-09 | tools: warn once on unrecognized items | Jason A. Donenfeld | 2 | -0/+22 | |
DaveM suggests we do in fact do this. Others on the same thread weren't happy about the length of the proposed message, so we also give a bit of a less dramatic warning. This reverts commit a2cc976a3b572cf308cc2d97c080eacac60416fe. | |||||
2017-10-09 | routingtable: iterate progressively | Jason A. Donenfeld | 4 | -53/+81 | |
2017-10-09 | routingtable: only use device's mutex, not a special rt one | Jason A. Donenfeld | 6 | -100/+38 | |