aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: year bumpJason A. Donenfeld2018-01-033-3/+3
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-093-3/+11
| | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: take shared lock for untarringJason A. Donenfeld2017-11-271-18/+10
|
* qemu: use netfilter.org https siteJason A. Donenfeld2017-11-251-2/+2
|
* tools: fix removing preshared keysJason A. Donenfeld2017-11-231-0/+18
| | | | Also clean up related logic quite a bit and add unit tests.
* poly1305: import MIPS64 primitive from OpenSSLJason A. Donenfeld2017-11-223-6/+8
|
* compat: new kernels have netlink fixesJason A. Donenfeld2017-11-221-1/+1
|
* qemu: use unprefixed strip when not cross-compilingJason A. Donenfeld2017-11-171-1/+2
| | | | | | | Fedora/Redhat doesn't ship with a prefixed strip, and we don't need to use it anyway when we're not cross compiling, so don't. Reported-by: Samuel Neves <sneves@dei.uc.pt>
* qemu: update kernelJason A. Donenfeld2017-11-141-1/+1
|
* netlink: make sure we reserve space for NLMSG_DONEJason A. Donenfeld2017-11-101-0/+9
| | | | | | | Otherwise, if messages pack really close together, we'll exceed the size of the sk_buff and return ENOBUFS. I suspect this has been the cause of a lot of weird bugs that people just worked around by increasing the receive buffer size. This actually addresses the root cause.
* qemu: bump kernel versionJason A. Donenfeld2017-11-101-1/+1
|
* qemu: more debuggingJason A. Donenfeld2017-11-103-1/+15
|
* qemu: check for memory leaksJason A. Donenfeld2017-11-103-6/+28
|
* qemu: test using four coresJason A. Donenfeld2017-10-311-1/+1
|
* qemu: work around ccache bugsJason A. Donenfeld2017-10-311-1/+1
|
* qemu: allow for cross compilationJason A. Donenfeld2017-10-3111-94/+240
|
* stats: more robust accountingJason A. Donenfeld2017-10-311-1/+8
|
* netns: use time-based test instead of quantity-basedJason A. Donenfeld2017-10-311-4/+4
|
* netns: use read built-in instead of ncat hack for dmesgJason A. Donenfeld2017-10-311-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.
* qemu: put hvc directive into configurationJason A. Donenfeld2017-10-172-2/+3
|
* netns: disable accept_dad for all interfacesJason A. Donenfeld2017-10-171-0/+2
| | | | | Upstream's a2d3f3e33853ef52e5f66b41c3e8ee5710aa3305 broke things in strange and confusing ways.
* qemu: newer packagesJason A. Donenfeld2017-10-171-37/+50
|
* qemu: always create directory before untarringJason A. Donenfeld2017-10-171-1/+9
|
* qemu: phase out bitbangingJason A. Donenfeld2017-10-173-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>
* qemu: open /dev/console if we're started earlyJason A. Donenfeld2017-10-171-3/+19
|
* qemu: simplify shutdownJason A. Donenfeld2017-10-171-4/+2
| | | | | Now that we have the watchdog, killing the watchdog process is another way of shutting down.
* qemu: add more debugging options to main makefileJason A. Donenfeld2017-10-172-13/+11
|
* qemu: work on ubuntu toolchainJason A. Donenfeld2017-10-171-1/+1
|
* qemu: add build-only targetJason A. Donenfeld2017-10-171-0/+3
| | | | Useful for IDEs
* routingtable: iterate progressivelyJason A. Donenfeld2017-10-091-2/+2
|
* qemu: bump stable kernelJason A. Donenfeld2017-10-091-1/+1
|
* send: put keypair referenceJason A. Donenfeld2017-10-051-0/+19
|
* global: satisfy bitshift pedantryJason A. Donenfeld2017-10-031-1/+1
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* qemu: add watchdog for not hanging on oopsJason A. Donenfeld2017-10-023-1/+24
|
* debug: add better insert targetJason A. Donenfeld2017-10-021-4/+4
|
* netlink: switch from ioctl to netlink for configurationJason A. Donenfeld2017-10-022-5/+42
|
* netns: disable rp_filter for final testJason A. Donenfeld2017-09-241-0/+4
|
* queue: entirely rework parallel systemJason A. Donenfeld2017-09-181-1/+0
| | | | | | | | | | This removes our dependency on padata and moves to a different mode of multiprocessing that is more efficient. This began as Samuel Holland's GSoC project and was gradually reworked/redesigned/rebased into this present commit, which is a combination of his initial contribution and my subsequent rewriting and redesigning.
* qemu: enable debug info for debug qemuJason A. Donenfeld2017-09-161-0/+2
|
* socket: improve reply-to-src algorithmJason A. Donenfeld2017-08-232-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We store the destination IP of incoming packets as the source IP of outgoing packets. When we send outgoing packets, we then ask the routing table for which interface to use and which source address, given our inputs of the destination address and a suggested source address. This all is good and fine, since it means we'll successfully reply using the correct source address, correlating with the destination address for incoming packets. However, what happens when default routes change? Or when interface IP addresses change? Prior to this commit, after getting the response from the routing table of the source address, destination address, and interface, we would then make sure that the source address actually belonged to the outbound interface. If it didn't, we'd reset our source address to zero and re-ask the routing table, in which case the routing table would then give us the default IP address for sending that packet. This worked mostly fine for most purposes, but there was a problem: what if WireGuard legitimately accepted an inbound packet on a default interface using an IP of another interface? In this case, falling back to asking for the default source IP was not a good strategy, since it'd nearly always mean we'd fail to reply using the right source. So, this commit changes the algorithm slightly. Rather than falling back to using the default IP if the preferred source IP doesn't belong to the outbound interface, we have two checks: we make sure that the source IP address belongs to _some_ interface on the system, no matter which one (so long as it's within the network namespace), and we check whether or not the interface of an incoming packet matches the returned interface for the outbound traffic. If both these conditions are true, then we proceed with using this source IP address. If not, we fall back to the default IP address.
* netns: work around linux 3.10 issuesJason A. Donenfeld2017-08-031-0/+6
|
* netns: explictly test reply to sender routingJason A. Donenfeld2017-08-031-1/+25
|
* qemu: warn on all unseeded random usage when in debug modeJason A. Donenfeld2017-07-201-0/+1
|
* global: wireguard.io --> wireguard.comJason A. Donenfeld2017-07-203-3/+3
| | | | | Due to concerns with the .io TLD, we are switching to using wireguard.com instead.
* qemu: update default testing kernelJason A. Donenfeld2017-07-071-1/+1
|
* device: remove icmp conntrack hacksJason A. Donenfeld2017-06-261-2/+0
| | | | This logic belongs upstream.
* ratelimiter: rewrite from scratchJason A. Donenfeld2017-06-262-2/+1
| | | | | | | 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.
* receive: trim incoming packets to IP header lengthJason A. Donenfeld2017-06-011-1/+1
|
* tests: check for stats counter increasesJason A. Donenfeld2017-05-171-0/+4
| | | | | The kernel API for this has changed a lot, so this test is important to ensure our compat layer is doing the right thing.
* qemu: new location for test kernelsJason A. Donenfeld2017-05-171-3/+3
|