summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-11-17Fix a clang unitialized-var warningNick Mathewson
2017-11-17Intoduce unittest for skipping outdated dirservers.George Kadianakis
2017-11-17Fix a wide commentNick Mathewson
2017-11-17Merge branch 'bug23817_031' into maint-0.3.2Nick Mathewson
2017-11-17Make should_set_md_dirserver_restriction() look at num filtered guardsNick Mathewson
This seems closer to what the code intended.
2017-11-17Skip dirserver restrictions in small networks.George Kadianakis
2017-11-17Introduce new guard restriction and use it to skip outdated dirs.George Kadianakis
2017-11-17Introduce cache for outdated microdesc dirservers.George Kadianakis
We gonna use this cache to avoid dirservers without outdated md info.
2017-11-17Only log about lost KIST support onceMatt Traudt
2017-11-17Merge remote-tracking branch 'dgoulet/bug23861_032_01' into maint-0.3.2Nick Mathewson
2017-11-17Merge branch 'bug24167_025' into maint-0.3.2Nick Mathewson
2017-11-17Merge branch 'ticket24097_032' into maint-0.3.2Nick Mathewson
2017-11-16Fix a traceback when closing a blocked connection "immediately".Nick Mathewson
When we close a connection via connection_close_immediately, we kill its events immediately. But if it had been blocked on bandwidth read/write, we could try to re-add its (nonexistent) events later from connection_bucket_refill -- if we got to that callback before we swept the marked connections. Fixes bug 24167. Fortunately, this hasn't been a crash bug since we introduced connection_check_event in 0.2.9.10, and backported it. This is a bugfix on commit 89d422914a0c3cb, I believe, which appeared in Tor 0.1.0.1-rc.
2017-11-16relay: Avoid extra LOG_NOTICE for every new descriptor batchDavid Goulet
Commit 56c5e282a733912776f6dacbe4f5df66b4fb9606 suppressed that same log statement in directory_info_has_arrived() for microdescriptors so do the same for the descriptors. As the commit says, we already have the bootstrap progress for this. Fixes #23861 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-16Downgrade evdns warnings about weird replies.Nick Mathewson
evdns is allowed to give us unrecognized object types; it is allowed to give us non-IPv4 answer types, and it is (even) allowed to give us empty answers without an error. Closes ticket 24097.
2017-11-15Tweak the message when we re-enable CBT.Nick Mathewson
Implements ticket 20963.
2017-11-15Merge remote-tracking branch 'asn/bug23662_032' into maint-0.3.2Nick Mathewson
2017-11-14Merge remote-tracking branch 'dgoulet/bug24230_032_01' into maint-0.3.2Nick Mathewson
2017-11-14Silence a warning about failed descriptor uploads.George Kadianakis
Due to #23662 this can happen under natural causes and does not disturb the functionality of the service. This is a simple 0.3.2 fix for now, and we plan to fix this properly in 0.3.3.
2017-11-13Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-11-13Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-13Merge branch 'bug22895_027' into maint-0.2.9Nick Mathewson
2017-11-13Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-13Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-11-13Merge branch 'bug23291_028' into maint-0.2.8Nick Mathewson
2017-11-13Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-11-13hs-v3: Fix consensus param "hsdir-interval" nameDavid Goulet
The dir-spec.txt specifies it to be "hsdir_interval" (underscore). Fixes #24262 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-13Merge remote-tracking branch 'arma/ticket23637' into maint-0.3.2Nick Mathewson
2017-11-13Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-13Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-11-13Merge remote-tracking branch 'teor/bug23470-029' into maint-0.2.9Nick Mathewson
2017-11-13Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-13Merge branch 'bug8185_025' into maint-0.2.9Nick Mathewson
2017-11-13Merge branch 'bug8185_031' into maint-0.3.1Nick Mathewson
2017-11-13Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-13Merge branch 'ticket21953_029' into maint-0.2.9Nick Mathewson
2017-11-11Fix mock_crypto_pk_public_checksig__nocheck() to handle short RSA keysNick Mathewson
This function -- a mock replacement used only for fuzzing -- would have a buffer overflow if it got an RSA key whose modulus was under 20 bytes long. Fortunately, Tor itself does not appear to have a bug here. Fixes bug 24247; bugfix on 0.3.0.3-alpha when fuzzing was introduced. Found by OSS-Fuzz; this is OSS-Fuzz issue 4177.
2017-11-11Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-11-11Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-11-11Merge branch 'maint-0.2.5' into maint-0.2.8Nick Mathewson
2017-11-11Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-11-11Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-11-10control: Fix wrong Action on failure to upload an HS descriptorDavid Goulet
On failure to upload, the HS_DESC event would report "UPLOAD_FAILED" as the Action but it should have reported "FAILED" according to the spec. Fixes #24230 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-10Update geoip and geoip6 to the November 6 2017 database.Karsten Loesing
2017-11-09Merge branch 'bug23985_029' into maint-0.3.2Nick Mathewson
2017-11-09Re-remove AllowDotExit deprecation.Nick Mathewson
This was accidentally reintroduced in 5a46074e55. It should be harmless, though: the option is obsolete, so calling it deprecated is redundant.
2017-11-08bump to 0.3.2.4-alpha-devNick Mathewson
2017-11-08dirauth: Recalculate voting schedule at first voteDavid Goulet
Commit e67f4441eb2646368e3e7cb1bcee403667b786f0 introduced a safeguard against using an uninitialized voting schedule object. However, the dirvote_act() code was looking roughly at the same thing to know if it had to compute the timings before voting with this condition: if (!voting_schedule.voting_starts) { ... dirvote_recalculate_timing(options, now); } The sr_init() function is called very early and goes through the safeguard thus the voting schedule is always initilized before the first vote. That first vote is a crucial one because we need to have our voting schedule aligned to the "now" time we are about to use for voting. Then, the schedule is updated when we publish our consensus or/and when we set a new consensus. From that point on, we only want to update the voting schedule through that code flow. This "created_on_demand" is indicating that the timings have been recalculated on demand by another subsystem so if it is flagged, we know that we need to ignore its values before voting. Fixes #24186 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-08Don't delay descriptor fetches when missing info needed for circuitsNick Mathewson
When we have fewer than 15 descriptors to fetch, we will delay the fetch for a little while. That's fine, if we can go ahead and build circuits... but if not, it's a poor choice indeed. Fixes bug 23985; bugfix on 0.1.1.11-alpha. In 0.3.0.3-alpha, when we made primary guard descriptors necessary for circuit building, this situation got worse.
2017-11-08downgrade severity for get_voting_schedule()Nick Mathewson