summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* compat: grsecurity backports get_random_longexperimental-0.0.20161025Jason A. Donenfeld2016-10-231-0/+3
|
* data: reset all packet fields like tun.cJason A. Donenfeld2016-10-231-2/+2
|
* device: better debug message for unroutable packetsJason A. Donenfeld2016-10-221-1/+5
|
* compat: support PaX constify pluginJason A. Donenfeld2016-10-221-0/+7
|
* uapi.h: public_key field is a getterJörg Thalheim2016-10-221-1/+1
| | | | Signed-off-by: Jörg Thalheim <joerg@higgsboson.tk>
* receive: always send confirmation, even if queue is emptyJason A. Donenfeld2016-10-191-1/+5
|
* timers: only have initiator rekeyJason A. Donenfeld2016-10-196-66/+44
| | | | | | | | | If it's time to rekey, and the responder sends a message, the initator will begin the rekeying when sending his response message. In the worst case, this response message will actually just be the keepalive. This generally works well, with the one edge case of the message arriving less than 10 seconds before key expiration, in which the keepalive is not sufficient. In this case, we simply rehandshake immediately.
* timers: always delay handshakes for responderJason A. Donenfeld2016-10-195-8/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the prior behavior, when sending a packet, we checked to see if it was about time to start a new handshake, and if we were past a certain time, we started it. For the responder, we made that time a bit further in the future than for the initiator, to prevent the thundering herd problem of them both starting at the same time. However, this was flawed. If both parties stopped communicating after 2.2 minutes, and then one party decided to initiate a TCP connection before the 3 minute mark, the currently open session would be used. However, because it was after the 2.2 minute mark, both peers would try to initiate a handshake upon sending their first packet. The errant flow was as follows: 1. Peer A sends SYN. 2. Peer A sees that his key is getting old and initiates new handshake. 3. Peer B receives SYN and sends ACK. 4. Peer B sees that his key is getting old and initiates new handshake. Since these events happened after the 2.2 minute mark, there's no delay between handshake initiations, and problems begin. The new behavior is changed to: 1. Peer A sends SYN. 2. Peer A sees that his key is getting old and initiates new handshake. 3. Peer B receives SYN and sends ACK. 4. Peer B sees that his key is getting old and schedules a delayed handshake for 12.5 seconds in the future. 5. Peer B receives handshake initiation and cancels scheduled handshake.
* timers: move constants to headerJason A. Donenfeld2016-10-192-12/+9
|
* timers: kill half-open handshakes after a whileJason A. Donenfeld2016-10-191-0/+4
|
* timers: avoid thundering herd for simultaneous initiationJason A. Donenfeld2016-10-191-1/+1
| | | | | | Since it's extremely unlikely for jiffies to be exactly identical everywhere, applying quarter second power of two slack not only improves power efficiency but also ensures that retries have a bit of jitter.
* debug: keep alive -> keepaliveJason A. Donenfeld2016-10-193-3/+2
|
* noise: comment/document the key swappingJason A. Donenfeld2016-10-191-1/+19
|
* send: ensure that rekey retries are staggeredexperimental-0.0.20161014Jason A. Donenfeld2016-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Before: t+120: A sends rekey [packet dropped by network congestion] t+125: A sends rekey [packet dropped by network congestion] t+130: A sends rekey t+130: B sends rekey ! race ! After: t+120: A sends rekey [packet dropped by network congestion] t+125: A sends rekey [packet dropped by network congestion] t+130: A sends rekey [packet dropped by network congestion] T+132.5: B sends rekey [packet dropped by network congestion] T+135: A sends rekey [packet dropped by network congestion] T+137.5: B sends rekey ! success, eventually !
* device: show debug message when no peer has allowed-ips for packetJason A. Donenfeld2016-10-141-0/+1
|
* send: requeue jobs for later if padata is fullJason A. Donenfeld2016-10-052-2/+14
|
* compat: akpm merged this to 4.9Jason A. Donenfeld2016-10-041-1/+2
| | | | http://marc.info/?l=linux-mm-commits&m=147553169709478&w=2
* send: only avoid parallel path when there aren't inflight jobsJason A. Donenfeld2016-10-022-1/+14
| | | | Otherwise we get packet reordering.
* remote-run: reflect recent makefile changesexperimental-0.0.20161001Jason A. Donenfeld2016-09-291-1/+1
|
* git: organize ignore filesJason A. Donenfeld2016-09-295-2/+10
|
* compat: Isolate more functionsJason A. Donenfeld2016-09-292-59/+97
|
* Rework headers and includesJason A. Donenfeld2016-09-2933-180/+190
|
* poly1305: optimize unaligned accessRené van Dorst2016-09-291-0/+30
|
* tools: allow multiple AllowedIPs invocationsJason A. Donenfeld2016-08-301-1/+0
| | | | It turns out this is a somewhat natural thing to do in config files.
* send: properly encapsulate ECNJason A. Donenfeld2016-08-294-16/+38
| | | | We're not leaking the DSCP, but we do deal with ECN.
* netns: remove dangling $@Jason A. Donenfeld2016-08-291-4/+4
|
* examples: add key extractorJason A. Donenfeld2016-08-264-0/+221
|
* examples: add nat-hole-punchingJason A. Donenfeld2016-08-243-0/+354
|
* socket: use isdigitJason A. Donenfeld2016-08-221-1/+2
|
* routingtable: hyphen was uglyJason A. Donenfeld2016-08-224-3/+3
|
* hashtables: use rdrand() instead of counterJason A. Donenfeld2016-08-223-5/+7
|
* tests: test jumbo frames with more transferJason A. Donenfeld2016-08-211-4/+19
|
* qemu: enhancementsJason A. Donenfeld2016-08-173-32/+98
|
* send: needless debugging checkJason A. Donenfeld2016-08-161-2/+1
|
* tests: add crypto-RP filter testJason A. Donenfeld2016-08-123-1/+34
|
* main: load driver late in boot process when debuggingJason A. Donenfeld2016-08-101-0/+6
|
* main: fix typoJason A. Donenfeld2016-08-101-1/+1
|
* qemu: lock distfilesJason A. Donenfeld2016-08-101-19/+34
|
* qemu: allow testing with RCsJason A. Donenfeld2016-08-091-2/+8
|
* ratelimiter: hard-depend on runtime dependenciesJason A. Donenfeld2016-08-091-0/+7
|
* ratelimiter: do not require IPv6experimental-0.0.20160808Jason A. Donenfeld2016-08-081-4/+12
|
* tests: use makefile and expand greatlyJason A. Donenfeld2016-08-089-237/+609
|
* persistent-keepalive: change range to [1,65535]Jason A. Donenfeld2016-08-083-11/+8
|
* Kbuild: move module deps out of tests/Jason A. Donenfeld2016-08-032-18/+16
|
* selftest: move to subfolderJason A. Donenfeld2016-08-0212-414/+422
|
* tools: use correct headers in ipcJason A. Donenfeld2016-08-021-2/+2
|
* tools: do not show private keys in pretty outputJason A. Donenfeld2016-08-023-3/+14
|
* contrib: move patchers to contrib/kernel-treeJason A. Donenfeld2016-08-022-1/+21
|
* Makefile: check tools as part of make checkJason A. Donenfeld2016-08-021-0/+1
|
* uapi: typeof is not necessaryJason A. Donenfeld2016-08-021-4/+4
|