]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 1 Mar 2017 13:54:58 +0000 (08:54 -0500)]
Merge branch 'maint-0.3.0'
George Kadianakis [Wed, 1 Mar 2017 10:38:12 +0000 (12:38 +0200)]
Improve descriptor checks in the new guard algorithm.
- Make sure we check at least two guards for descriptor before making
circuits. We typically use the first primary guard for circuits, but
it can also happen that we use the second primary guard (e.g. if we
pick our first primary guard as an exit), so we should make sure we
have descriptors for both of them.
- Remove BUG() from the guard_has_descriptor() check since we now know
that this can happen in rare but legitimate situations as well, and we
should just move to the next guard in that case.
Nick Mathewson [Wed, 1 Mar 2017 13:19:45 +0000 (08:19 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Wed, 1 Mar 2017 13:19:23 +0000 (08:19 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.0
"Ours" merge to avoid version bump
Nick Mathewson [Wed, 1 Mar 2017 13:18:54 +0000 (08:18 -0500)]
Bump to 0.2.9.10-dev
Nick Mathewson [Wed, 1 Mar 2017 13:17:52 +0000 (08:17 -0500)]
Port 0.2.9.10 changelog and releasenotes to master
Nick Mathewson [Wed, 1 Mar 2017 12:52:51 +0000 (07:52 -0500)]
Merge branch 'maint-0.3.0'
teor [Wed, 1 Mar 2017 01:28:16 +0000 (12:28 +1100)]
Remove the space before the interpreter name in test-network.sh
Apparently some unixes don't like this.
Part of #21581.
Nick Mathewson [Wed, 1 Mar 2017 01:14:06 +0000 (20:14 -0500)]
Merge branch 'maint-0.3.0'
teor [Wed, 1 Mar 2017 00:54:31 +0000 (11:54 +1100)]
Remove a spurious test-network-all warning that triggers when sh is not bash
Part of 21581.
teor [Wed, 1 Mar 2017 00:21:07 +0000 (11:21 +1100)]
Restore support for test-network.sh on BSD and other systems without bash
(But use bash if it's available.)
This is a workaround until we remove bash-specific code in 19699.
Fixes bug 21581; bugfix on 21562, not in any released version of tor.
Nick Mathewson [Tue, 28 Feb 2017 16:43:58 +0000 (11:43 -0500)]
Merge remote-tracking branch 'teor/bug21510'
Nick Mathewson [Tue, 28 Feb 2017 16:31:07 +0000 (11:31 -0500)]
Merge remote-tracking branch 'teor/test21470-029'
Nick Mathewson [Tue, 28 Feb 2017 16:19:24 +0000 (11:19 -0500)]
Merge remote-tracking branch 'teor/bug21507-029'
Nick Mathewson [Tue, 28 Feb 2017 16:17:30 +0000 (11:17 -0500)]
Merge remote-tracking branch 'public/bug21407'
Nick Mathewson [Tue, 28 Feb 2017 15:40:34 +0000 (10:40 -0500)]
Merge branch 'maint-0.3.0'
This is an "ours" merge to avoid a version bump.
Nick Mathewson [Tue, 28 Feb 2017 15:40:08 +0000 (10:40 -0500)]
bump version to 0.3.0.4-rc
Nick Mathewson [Tue, 28 Feb 2017 15:39:29 +0000 (10:39 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.0
This is an "ours" merge to avoid a version bump.
Nick Mathewson [Tue, 28 Feb 2017 15:38:55 +0000 (10:38 -0500)]
bump version to 0.2.9.10
Nick Mathewson [Tue, 28 Feb 2017 15:38:31 +0000 (10:38 -0500)]
Merge branch 'maint-0.2.8' into maint-0.2.9
This is an "ours" merge to avoid taking a version bump
Nick Mathewson [Tue, 28 Feb 2017 15:37:25 +0000 (10:37 -0500)]
Merge branch 'maint-0.2.7-redux' into maint-0.2.8
This is an "ours" merge to avoid taking a version bump, and to
avoid replaying the post-0.2.7.6 history of "maint-0.2.7-redux" onto maint-0.2.8, which already included the relevant changes.
Nick Mathewson [Tue, 28 Feb 2017 15:34:33 +0000 (10:34 -0500)]
bump version to 0.2.8.13
Nick Mathewson [Tue, 28 Feb 2017 15:27:20 +0000 (10:27 -0500)]
Bump version to 0.2.7.7
Nick Mathewson [Tue, 28 Feb 2017 15:26:45 +0000 (10:26 -0500)]
Merge branch 'maint-0.2.6' into maint-0.2.7-redux
"ours" merge to avoid version bumps
Nick Mathewson [Tue, 28 Feb 2017 15:26:24 +0000 (10:26 -0500)]
bump to 0.2.6.11
Nick Mathewson [Tue, 28 Feb 2017 15:25:51 +0000 (10:25 -0500)]
Merge branch 'maint-0.2.5' into maint-0.2.6
"ours" merge to avoid version bumps
Nick Mathewson [Tue, 28 Feb 2017 15:23:20 +0000 (10:23 -0500)]
Bump version to 0.2.5.13
Nick Mathewson [Tue, 28 Feb 2017 15:22:36 +0000 (10:22 -0500)]
Merge branch 'maint-0.2.4' into maint-0.2.5
"ours" merge to avoid bumping version
Nick Mathewson [Tue, 28 Feb 2017 15:20:46 +0000 (10:20 -0500)]
Bump to 0.2.4.28
Nick Mathewson [Tue, 28 Feb 2017 15:12:17 +0000 (10:12 -0500)]
Update changelog sorting rules to know about dirauth changes
Nick Mathewson [Tue, 28 Feb 2017 14:27:04 +0000 (09:27 -0500)]
Remove changes files from master for items in <=0.3.0.4-rc
Nick Mathewson [Tue, 28 Feb 2017 13:28:55 +0000 (08:28 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Tue, 28 Feb 2017 13:28:46 +0000 (08:28 -0500)]
Merge remote-tracking branch 'public/bug21007_case2_030' into maint-0.3.0
Nick Mathewson [Tue, 28 Feb 2017 13:20:09 +0000 (08:20 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Tue, 28 Feb 2017 13:16:43 +0000 (08:16 -0500)]
Merge branch 'bug21027_v2_squashed' into maint-0.3.0
Nick Mathewson [Tue, 14 Feb 2017 17:21:31 +0000 (12:21 -0500)]
Change approach to preventing duplicate guards.
Previously I'd made a bad assumption in the implementation of
prop271 in 0.3.0.1-alpha: I'd assumed that there couldn't be two
guards with the same identity. That's true for non-bridges, but in
the bridge case, we allow two bridges to have the same ID if they
have different addr:port combinations -- in order to have the same
bridge ID running multiple PTs.
Fortunately, this assumption wasn't deeply ingrained: we stop
enforcing the "one guard per ID" rule in the bridge case, and
instead enforce "one guard per <id,addr,port>".
We also needed to tweak our implementation of
get_bridge_info_for_guard, since it made the same incorrect
assumption.
Fixes bug 21027; bugfix on 0.3.0.1-alpha.
Nick Mathewson [Mon, 27 Feb 2017 21:25:25 +0000 (16:25 -0500)]
Merge branch 'disable_memory_sentinels_squashed'
Nick Mathewson [Mon, 13 Feb 2017 14:10:11 +0000 (09:10 -0500)]
Code to disable memory sentinels for fuzzing
This feature makes it possible to turn off memory sentinels (like
those used for safety in buffers.c and memarea.c) when fuzzing, so
that we can catch bugs that they would otherwise prevent.
Nick Mathewson [Mon, 27 Feb 2017 16:36:56 +0000 (11:36 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Mon, 27 Feb 2017 16:36:39 +0000 (11:36 -0500)]
Merge remote-tracking branch 'teor/feature21570-030' into maint-0.3.0
Nick Mathewson [Mon, 27 Feb 2017 16:25:46 +0000 (11:25 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Mon, 27 Feb 2017 16:25:34 +0000 (11:25 -0500)]
Merge branch 'bug21369_check_029_squashed' into maint-0.3.0
Nick Mathewson [Mon, 27 Feb 2017 16:23:02 +0000 (11:23 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Mon, 27 Feb 2017 16:20:39 +0000 (11:20 -0500)]
Merge branch 'bug21420_029_squashed' into maint-0.3.0
Nick Mathewson [Mon, 13 Feb 2017 20:37:41 +0000 (15:37 -0500)]
Revise the logic for picking the start time for link certs
Since 0.2.4.11-alpha (in
0196647970a91d ) we've tried to randomize
the start time to up to some time in the past. But unfortunately we
allowed the start time to be in the future as well, which isn't
really legit.
The new behavior lets the start time be be up to
MAX(cert_lifetime-2days, 0) in the past, but never in the future.
Fixes bug 21420; bugfix on 0.2.4.11-alpha.
Nick Mathewson [Mon, 27 Feb 2017 16:03:25 +0000 (11:03 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Mon, 27 Feb 2017 16:00:02 +0000 (11:00 -0500)]
Merge remote-tracking branch 'teor/bug20711' into maint-0.3.0
Nick Mathewson [Mon, 27 Feb 2017 15:58:26 +0000 (10:58 -0500)]
Fix a wide line
Nick Mathewson [Mon, 27 Feb 2017 15:58:19 +0000 (10:58 -0500)]
Fix a "directive within macro arguments" warning
Nick Mathewson [Mon, 27 Feb 2017 15:53:12 +0000 (10:53 -0500)]
Merge remote-tracking branch 'ahf/bugs/21206'
teor [Mon, 27 Feb 2017 05:11:22 +0000 (16:11 +1100)]
Use bash in src/test/test-network.sh
This ensures we reliably call chutney's newer tools/test-network.sh when
available.
Fixes bug 21562; bugfix on tor-0.2.9.1-alpha.
teor [Mon, 27 Feb 2017 15:02:32 +0000 (02:02 +1100)]
Reserve a test-network.sh exit status of 2 for unknown arguments
Part of 21570.
teor [Mon, 27 Feb 2017 14:46:16 +0000 (01:46 +1100)]
Log tor warnings during 'make test-network-all'
Requires the chutney changes from 21572.
(Otherwise, asks users to upgrade their chutney.)
Implements 21570.
Nick Mathewson [Mon, 27 Feb 2017 14:12:51 +0000 (09:12 -0500)]
Add one other BUG check to try to fix/solve 21369.
Teor thinks that this connection_dirserv_add_dir_bytes_to_outbuf()
might be the problem, if the "remaining" calculation underflows. So
I'm adding a couple of checks there, and improving the casts.
Nick Mathewson [Mon, 13 Feb 2017 20:51:55 +0000 (15:51 -0500)]
Try to check for (and prevent) buffer size INT_MAX overflow better.
Possible fix or diagnostic for 21369.
teor [Mon, 27 Feb 2017 14:45:30 +0000 (01:45 +1100)]
Add a quiet mode to test-network.sh
Requires the equivalent chutney changes in 21571.
Part of 21570.
Nick Mathewson [Mon, 27 Feb 2017 13:38:52 +0000 (08:38 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Mon, 27 Feb 2017 13:38:14 +0000 (08:38 -0500)]
Merge remote-tracking branch 'public/bug21472_030' into maint-0.3.0
Nick Mathewson [Fri, 24 Feb 2017 16:37:41 +0000 (11:37 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Fri, 24 Feb 2017 16:37:33 +0000 (11:37 -0500)]
Whitespace fix.
Nick Mathewson [Fri, 24 Feb 2017 16:37:04 +0000 (11:37 -0500)]
Merge branch 'maint-0.3.0'
David Goulet [Fri, 24 Feb 2017 14:48:14 +0000 (09:48 -0500)]
hs: Fix bad use of sizeof() when encoding ESTABLISH_INTRO legacy cell
When encoding a legacy ESTABLISH_INTRO cell, we were using the sizeof() on a
pointer instead of using the real size of the destination buffer leading to an
overflow passing an enormous value to the signing digest function.
Fortunately, that value was only used to make sure the destination buffer
length was big enough for the key size and in this case it always was because
of the overflow.
Fixes #21553
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 24 Feb 2017 16:12:21 +0000 (11:12 -0500)]
Also allow C_MEASURE_TIMEOUT circuits to lack guard state.
Fixes a case of 21007; bugfix on 0.3.0.1-alpha when prop271 was
implemented. Found by toralf.
Nick Mathewson [Fri, 24 Feb 2017 15:57:58 +0000 (10:57 -0500)]
Small fixes to fuzzing documentation.
teor [Sun, 19 Feb 2017 12:09:50 +0000 (23:09 +1100)]
Make display of captured unit test log messages consistent
There was a missing space and an extra colon.
Fixes bug 21510; bugfix on 0.2.9.3-alpha.
teor [Sun, 19 Feb 2017 11:51:50 +0000 (22:51 +1100)]
Changes file for 21470
teor [Sun, 19 Feb 2017 11:47:47 +0000 (22:47 +1100)]
Reject versions that have non-numeric prefixes
Unit tests #21507.
Part of #21470.
teor [Sun, 19 Feb 2017 11:46:42 +0000 (22:46 +1100)]
Add unit tests that ensure out of range versions are rejected
Unit tests for #21278.
Part of #21470.
teor [Sun, 19 Feb 2017 11:45:25 +0000 (22:45 +1100)]
Add unit tests for version parsing integer size inconsistencies
Unit tests for #21450.
Part of #21470.
teor [Sun, 19 Feb 2017 11:44:07 +0000 (22:44 +1100)]
Add unit tests for current tor version git tags
Related to #21470
teor [Sun, 19 Feb 2017 11:42:44 +0000 (22:42 +1100)]
Add unit tests for the current range of tor version status tags
Related to #21470.
teor [Sun, 19 Feb 2017 11:38:06 +0000 (22:38 +1100)]
Reject Tor versions that contain non-numeric prefixes
strto* and _atoi64 accept +, -, and various whitespace before numeric
characters. And permitted whitespace is different between POSIX and Windows.
Fixes bug 21507 and part of 21508; bugfix on 0.0.8pre1.
Nick Mathewson [Fri, 17 Feb 2017 22:10:47 +0000 (17:10 -0500)]
Merge branch 'maint-0.2.6' into maint-0.2.7-redux
Nick Mathewson [Fri, 17 Feb 2017 16:47:49 +0000 (11:47 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Fri, 17 Feb 2017 16:46:38 +0000 (11:46 -0500)]
Remove a redundant check in ..transition_affects_guards()
scan-build found that we we checking UseEntryGuards twice.
Fixes bug 21492.
Nick Mathewson [Fri, 17 Feb 2017 16:33:04 +0000 (11:33 -0500)]
Merge branch 'maint-0.3.0'
Nick Mathewson [Fri, 17 Feb 2017 16:32:45 +0000 (11:32 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Fri, 17 Feb 2017 16:31:39 +0000 (11:31 -0500)]
Check for micro < 0, rather than checking "minor" twice.
Bug found with clang scan-build. Fixes bug on
f63e06d3dc6757d .
Bug not present in any released Tor.
Nick Mathewson [Fri, 17 Feb 2017 15:07:52 +0000 (10:07 -0500)]
Fix memleak in test_getinfo_helper_onion.
Fix on
fc58c37e334fec71a20 . Not in any released tor
Nick Mathewson [Thu, 16 Feb 2017 20:30:26 +0000 (15:30 -0500)]
The UseCreateFast consensus parameter now defaults to 0.
You can still override it with FastFirstHopPK. But that's
deprecated.
Closes ticket 21407.
Alexander Færøy [Mon, 13 Feb 2017 16:57:21 +0000 (16:57 +0000)]
Save number of sent/received RELAY_DATA cells for directory connections.
This patch makes us store the number of sent and received RELAY_DATA
cells used for directory connections. We log the numbers after we have
received an EOF in connection_dir_client_reached_eof() from the
directory server.
Nick Mathewson [Thu, 16 Feb 2017 14:40:56 +0000 (09:40 -0500)]
Merge remote-tracking branch 'meejah/ticket-21329-onions-current'
Nick Mathewson [Wed, 15 Feb 2017 19:36:56 +0000 (14:36 -0500)]
Bump master to 0.3.1.0-alpha-dev
David Goulet [Wed, 15 Feb 2017 15:27:32 +0000 (10:27 -0500)]
hs: Avoid a strlen(NULL) if descriptor is not found in cache
Instead of returning 404 error code, this led to a NULL pointer being used and
thus a crash of tor.
Fixes #21471
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 15 Feb 2017 13:19:51 +0000 (08:19 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Wed, 15 Feb 2017 13:19:37 +0000 (08:19 -0500)]
whoops; make 21450 compile
Nick Mathewson [Wed, 15 Feb 2017 13:08:25 +0000 (08:08 -0500)]
Merge branch 'bug21447'
Nick Mathewson [Wed, 15 Feb 2017 12:58:15 +0000 (07:58 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Wed, 15 Feb 2017 12:57:34 +0000 (07:57 -0500)]
Limit version numbers to 0...INT32_MAX.
Closes 21450; patch from teor.
Nick Mathewson [Wed, 15 Feb 2017 12:53:01 +0000 (07:53 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Wed, 15 Feb 2017 12:52:54 +0000 (07:52 -0500)]
Merge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Wed, 15 Feb 2017 12:52:47 +0000 (07:52 -0500)]
Merge branch 'maint-0.2.7' into maint-0.2.8
Nick Mathewson [Wed, 15 Feb 2017 12:52:41 +0000 (07:52 -0500)]
Merge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Wed, 15 Feb 2017 12:52:33 +0000 (07:52 -0500)]
Merge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Wed, 15 Feb 2017 12:51:57 +0000 (07:51 -0500)]
Merge branch 'maint-0.2.8' of git-rw.torproject.org:/tor into maint-0.2.8
Nick Mathewson [Wed, 15 Feb 2017 12:51:48 +0000 (07:51 -0500)]
Merge branch 'maint-0.2.7' of git-rw.torproject.org:/tor into maint-0.2.7
Nick Mathewson [Wed, 15 Feb 2017 12:51:41 +0000 (07:51 -0500)]
Merge branch 'maint-0.2.6' of git-rw.torproject.org:/tor into maint-0.2.6
Nick Mathewson [Wed, 15 Feb 2017 12:51:33 +0000 (07:51 -0500)]
Merge branch 'maint-0.2.5' of git-rw.torproject.org:/tor into maint-0.2.5
Nick Mathewson [Wed, 15 Feb 2017 12:48:42 +0000 (07:48 -0500)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Wed, 15 Feb 2017 12:48:30 +0000 (07:48 -0500)]
Merge branch 'bug21278_extra_029' into maint-0.2.9