]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 4 May 2016 19:23:38 +0000 (15:23 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Wed, 4 May 2016 19:23:26 +0000 (15:23 -0400)]
Merge branch 'bug18921_squashed' into maint-0.2.8
teor (Tim Wilson-Brown) [Thu, 28 Apr 2016 06:03:23 +0000 (16:03 +1000)]
Choose the correct address for one-hop connections
After #17840 in 0.2.8.1-alpha, we incorrectly chose an IPv4
address for all DIRIND_ONEHOP directory connections,
even if the routerstatus didn't have an IPv4 address.
This likely affected bridge clients with IPv6 bridges.
Resolves #18921.
Nick Mathewson [Wed, 4 May 2016 19:13:15 +0000 (15:13 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Wed, 4 May 2016 19:13:07 +0000 (15:13 -0400)]
Merge branch 'doc18312' into maint-0.2.8
Nick Mathewson [Wed, 4 May 2016 19:12:20 +0000 (15:12 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Wed, 4 May 2016 19:12:11 +0000 (15:12 -0400)]
Merge branch 'bug18686_025' into maint-0.2.8
Nick Mathewson [Wed, 4 May 2016 19:10:36 +0000 (15:10 -0400)]
Report success when not terminating an already terminated process.
Also, document the actual behavior and return values of
tor_terminate_process.
Fixes bug18686; bugfix on 0.2.3.9-alpha.
Nick Mathewson [Wed, 4 May 2016 18:47:13 +0000 (14:47 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Wed, 4 May 2016 18:47:04 +0000 (14:47 -0400)]
Merge branch 'bug18710_025' into maint-0.2.8
Scott Dial [Wed, 4 May 2016 18:45:09 +0000 (14:45 -0400)]
Fix dnsserv.c assertion when no supported questions are requested.
The problem is that "q" is always set on the first iteration even
if the question is not a supported question. This set of "q" is
not necessary, and will be handled after exiting the loop if there
if a supported q->type was found.
[Changes file by nickm]
lease enter the commit message for your changes. Lines starting
Nick Mathewson [Tue, 3 May 2016 20:12:29 +0000 (16:12 -0400)]
Merge branch 'maint-0.2.8'
Yawning Angel [Mon, 2 May 2016 10:24:35 +0000 (10:24 +0000)]
Fix keccak-tiny portability on `exotic` platforms.
* SHA-3/SHAKE use little endian for certain things, so byteswap as
needed.
* The code was written under the assumption that unaligned access to
quadwords is allowed, which isn't true particularly on non-Intel.
Nick Mathewson [Mon, 2 May 2016 18:02:15 +0000 (14:02 -0400)]
Merge branch 'maint-0.2.8'
s0rlxmh0 [Mon, 2 May 2016 18:01:36 +0000 (14:01 -0400)]
(cherry-picked by nickm, with changes file from isis.)
Nick Mathewson [Mon, 2 May 2016 17:55:00 +0000 (13:55 -0400)]
Merge remote-tracking branch 'dgoulet/bug13239_029_01'
Nick Mathewson [Mon, 2 May 2016 17:53:37 +0000 (13:53 -0400)]
Merge branch 'bug18240_squashed'
Nick Mathewson [Tue, 5 Apr 2016 15:47:37 +0000 (11:47 -0400)]
Clean up TEST_TOR_BINARY so test-stem can have better dependencies
Fix #18240. This version of the bug first appeared in
0.2.8.2-alpha. 0.2.8.1-alpha and earlier had a different bug.
Based on a patch from cypherpunks.
Nick Mathewson [Mon, 2 May 2016 16:58:58 +0000 (12:58 -0400)]
test_bt.sh: Check stderr for backtrace as well as stdout.
addresssanitizer likes to put backtraces on stderr.
Nick Mathewson [Wed, 27 Apr 2016 00:30:59 +0000 (20:30 -0400)]
Do not recommend use of nicknames in MapAddress manpage
Nick Mathewson [Tue, 26 Apr 2016 23:27:39 +0000 (19:27 -0400)]
Merge branch 'maint-0.2.8'
teor (Tim Wilson-Brown) [Mon, 18 Apr 2016 12:20:06 +0000 (22:20 +1000)]
Whitelist additional fallbacks after creating April 2016 list
teor (Tim Wilson-Brown) [Fri, 15 Apr 2016 15:43:11 +0000 (01:43 +1000)]
Report fallback directory detail changes when rebuilding list
As well as the existing reports of IPv6 address additions or removals,
the script now warns when keys change but IPv4:ORPort or
IPv6:IPv6ORPort remain the same.
Existing checks for other whitelist detail changes have also
been re-worded and upgraded to warnings.
This makes it easier for changes to be identified so operators can
be contacted to confirm whether the change is stable.
teor (Tim Wilson-Brown) [Wed, 30 Mar 2016 01:45:22 +0000 (12:45 +1100)]
Changes for #17158, #17905, #18689, #18749 & April 2016 fallbacks
teor (Tim Wilson-Brown) [Thu, 14 Apr 2016 16:33:41 +0000 (02:33 +1000)]
April 2016 fallbacks for 0.2.8-rc
teor (Tim Wilson-Brown) [Wed, 30 Mar 2016 22:19:50 +0000 (09:19 +1100)]
Add fallbacks to white/blacklist from operator responses
Also add misbehaving relays to updateFallbackDirs.py blacklist,
but leave them commented out in case it's a transient issue,
or it's been resolved by the download check fixes. (These
relays hang stem's downloader. It's unlikely they'll ever help
clients.)
Nick Mathewson [Tue, 26 Apr 2016 17:40:21 +0000 (13:40 -0400)]
mention 18685 in changes file
Nick Mathewson [Tue, 26 Apr 2016 17:39:50 +0000 (13:39 -0400)]
Merge remote-tracking branch 'yawning-schwanenleid/feature18685'
Nick Mathewson [Mon, 25 Apr 2016 19:28:58 +0000 (15:28 -0400)]
Remove redundant declarations of MIN
Apparently somewhere along the line we decided that MIN might be
missing.
But we already defined it (if it was missing) in compat.h, which
everybody includes.
Closes ticket 18889.
Nick Mathewson [Wed, 20 Apr 2016 17:39:07 +0000 (13:39 -0400)]
Remove trunnel files from libor/libcrypto, since they are in libtrunnel. Found with modularity tool.
David Goulet [Tue, 19 Apr 2016 18:23:12 +0000 (14:23 -0400)]
Increase number of preemptive internal circuits
When we connect to a hidden service as a client we may need three internal
circuits, one for the descriptor retrieval, introduction, and rendezvous.
Let's try to make sure we have them. Closes #13239.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Tue, 19 Apr 2016 18:08:05 +0000 (14:08 -0400)]
Merge branch 'handles_squashed'
Nick Mathewson [Thu, 11 Feb 2016 23:34:29 +0000 (18:34 -0500)]
Basic 'handle' implementation and tests.
This abstraction covers the case where one part of the program needs
to refer to another object that is allowed to disappear.
Nick Mathewson [Tue, 19 Apr 2016 18:05:51 +0000 (14:05 -0400)]
Merge remote-tracking branch 'public/lcov_excl'
Nick Mathewson [Fri, 15 Apr 2016 16:20:14 +0000 (12:20 -0400)]
Disambiguate: Avoid defining two static functions called chunk_free_unchecked
Nick Mathewson [Fri, 15 Apr 2016 16:19:51 +0000 (12:19 -0400)]
Disambiguate: Avoid defining two static functions both called gettweak()
Nick Mathewson [Fri, 15 Apr 2016 13:12:03 +0000 (09:12 -0400)]
Add branch prediction to util_bug.h, and fix a bug.
teor (Tim Wilson-Brown) [Thu, 14 Apr 2016 08:40:06 +0000 (18:40 +1000)]
Limit fallbacks from the same operator
Use IP address, effective family, and contact info to
discover and limit fallbacks to one per operator.
Also analyse netblock, ports, IP version, and Exit flag,
and print the results. Don't exclude any fallbacks from
the list because of netblocks, ports, IP version, or
Exit flag.
teor (Tim Wilson-Brown) [Mon, 11 Apr 2016 04:32:57 +0000 (14:32 +1000)]
Simplify fallback list output
When creating the list of fallbacks for a release:
* don't output fallback name and contact
* sort fallbacks by fingerprint
teor (Tim Wilson-Brown) [Fri, 8 Apr 2016 13:53:24 +0000 (23:53 +1000)]
Select fallbacks by bandwidth rather than consensus weight
But as advertised bandwidth is controlled by relays,
use consensus weight and median weight to bandwidth ratio
to approximate measured bandwidth.
Includes minor comment changes and parameter reordering.
teor (Tim Wilson-Brown) [Thu, 7 Apr 2016 02:55:39 +0000 (12:55 +1000)]
Only count active fallbacks in updateFallbackDirs.py
Previously, we would cut the list down to 100 fallbacks,
then check if they could serve a consensus, and comment
them out if they couldn't.
This would leave us with fewer than 100 active fallbacks.
Now, we stop when there are 100 active fallbacks.
Also count fallbacks with identical contact info.
Also fix minor logging issues.
teor (Tim Wilson-Brown) [Thu, 31 Mar 2016 01:47:42 +0000 (12:47 +1100)]
Remove fallback directory weights
Give each fallback a set weight of 10.0 for client selection.
Fallbacks must have at least 3000 consensus weight.
This is (nominally) 100 times the expected extra load of
20 kilobytes per second (50 GB per month).
Fixes issue #17905.
teor (Tim Wilson-Brown) [Wed, 30 Mar 2016 01:41:57 +0000 (12:41 +1100)]
Improve fallback selection and output
Improve the download test:
* Allow IPv4 DirPort checks to be turned off.
* Add a timeout to stem's consensus download.
* Actually check for download errors, rather than ignoring them.
* Simplify the timeout and download error checking logic.
Tweak whitelist/blacklist checks to be more robust.
Improve logging, make it warn by default.
Cleanse fallback comments more thoroughly:
* non-printables (yes, ContactInfo can have these)
* // comments (don't rely on newlines to prevent // */ escapes)
Nick Mathewson [Thu, 14 Apr 2016 20:25:21 +0000 (16:25 -0400)]
Merge branch 'assert_nonfatal_squashed'
Nick Mathewson [Tue, 12 Apr 2016 14:35:16 +0000 (10:35 -0400)]
Add an IF_BUG_ONCE macro, since that's a pretty common pattern too.
Nick Mathewson [Tue, 12 Apr 2016 14:10:44 +0000 (10:10 -0400)]
Add a BUG macro for usage in if checks.
Nick Mathewson [Tue, 5 Apr 2016 13:40:51 +0000 (09:40 -0400)]
Add new tor_assert_nonfatal*() macros.
Unlike tor_assert(), these macros don't abort the process. They're
good for checking conditions we want to warn about, but which don't
warrant a full crash.
This commit also changes the default implementation for
tor_fragile_assert() to tor_assert_nonfatal_unreached_once().
Closes ticket 18613.
Roger Dingledine [Wed, 13 Apr 2016 04:06:30 +0000 (00:06 -0400)]
fix typos/etc before i go nuts on #18809
Nick Mathewson [Wed, 13 Apr 2016 01:13:33 +0000 (21:13 -0400)]
Add LCOV_EXCL* markers to crypto.c and crypto_s2k.c
This marks some lines as unreachable by the unit tests, and as
therefore excluded from test coverage.
(Note: This convention is only for lines that are absolutely
unreachable. Don't use it anywhere you wouldn't add a
tor_fragile_assert().)
Nick Mathewson [Wed, 13 Apr 2016 01:12:10 +0000 (21:12 -0400)]
Adopt the LCOV convention for marking lines as unreachable by tests.
Document this convention.
Add a script to post-process .gcov files in order to stop nagging us
about excluded lines.
Teach cov-diff to handle these post-processed files.
Closes ticket 16792
Nick Mathewson [Tue, 12 Apr 2016 17:13:15 +0000 (13:13 -0400)]
Merge remote-tracking branch 'sebastian/stemtest'
Nick Mathewson [Tue, 12 Apr 2016 17:02:37 +0000 (13:02 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Tue, 12 Apr 2016 17:02:02 +0000 (13:02 -0400)]
Merge remote-tracking branch 'public/bug18716_027' into maint-0.2.8
Nick Mathewson [Thu, 7 Apr 2016 15:10:14 +0000 (11:10 -0400)]
memarea: Don't assume that sizeof(ulong) >= sizeof(void*).
Fixes bug 18716; bugfix on 0.2.1.1-alpha where memarea.c was
introduced. Found by wbenny.
Nick Mathewson [Thu, 7 Apr 2016 14:59:55 +0000 (10:59 -0400)]
Merge branch 'bug14334_squashed'
George Kadianakis [Wed, 23 Mar 2016 11:35:37 +0000 (13:35 +0200)]
Don't mark guards as unreachable if connection_connect() fails.
David Goulet [Tue, 5 Apr 2016 18:43:20 +0000 (14:43 -0400)]
Turn TestingClientBootstrap* into non-testing options
This changes simply renames them by removing "Testing" in front of them and
they do not require TestingTorNetwork to be enabled anymore.
Fixes #18481
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Thu, 7 Apr 2016 14:54:53 +0000 (10:54 -0400)]
When we get a bad nickname, explain what a good one is.
Closes #18300; patch from "icanhasaccount".
Nick Mathewson [Thu, 7 Apr 2016 14:46:15 +0000 (10:46 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Thu, 7 Apr 2016 14:46:07 +0000 (10:46 -0400)]
Merge branch 'maint-0.2.7' into maint-0.2.8
Nick Mathewson [Thu, 7 Apr 2016 14:45:46 +0000 (10:45 -0400)]
Merge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Apr 2016 14:45:38 +0000 (10:45 -0400)]
Merge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 7 Apr 2016 14:45:32 +0000 (10:45 -0400)]
Merge branch 'maint-0.2.4' into maint-0.2.5
Karsten Loesing [Thu, 7 Apr 2016 09:10:09 +0000 (11:10 +0200)]
Update geoip and geoip6 to the April 5 2016 database.
Nick Mathewson [Wed, 6 Apr 2016 03:56:21 +0000 (23:56 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Wed, 6 Apr 2016 03:56:05 +0000 (23:56 -0400)]
Merge branch 'bug18728_028' into maint-0.2.8
Nick Mathewson [Wed, 6 Apr 2016 03:22:28 +0000 (23:22 -0400)]
Don't call the system toupper or tolower.
Yes, we could cast to unsigned char first, but it's probably safest
to just use our own (in test_util), or remove bad-idea features that
we don't use (in readpassphrase.c).
Fixes 18728.
Nick Mathewson [Wed, 6 Apr 2016 03:18:48 +0000 (23:18 -0400)]
Merge branch 'maint-0.2.8'
Roger Dingledine [Tue, 5 Apr 2016 23:38:28 +0000 (19:38 -0400)]
quiet debug logs from periodic_event_dispatch()
Stop blasting twelve lines per second from periodic_event_dispatch()
at loglevel debug.
Resolves ticket 18729; fix on 0.2.8.1-alpha.
Nick Mathewson [Tue, 5 Apr 2016 14:38:53 +0000 (10:38 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Tue, 5 Apr 2016 14:38:15 +0000 (10:38 -0400)]
Only define NEW_THREAD_API when not building with LibreSSL.
Nick Mathewson [Tue, 5 Apr 2016 14:08:11 +0000 (10:08 -0400)]
Merge remote-tracking branch 'teor/bug18720'
Nick Mathewson [Tue, 5 Apr 2016 14:06:18 +0000 (10:06 -0400)]
Merge branch 'maint-0.2.8'
Yawning Angel [Mon, 4 Apr 2016 04:21:06 +0000 (04:21 +0000)]
Add a changes file for the OpenSSL 1.1.0 compilation fixes.
Yawning Angel [Mon, 4 Apr 2016 04:08:54 +0000 (04:08 +0000)]
OpenSSL 1.1.0-pre5-dev and later made BIO opaque.
Detect newer versions and fix our TLS code to use the new API.
Yawning Angel [Mon, 4 Apr 2016 03:51:47 +0000 (03:51 +0000)]
OpenSSL 1.1.0-pre4 and later(?) have a new "thread API".
It appears that setting the various callbacks is no longer required, so
don't.
teor (Tim Wilson-Brown) [Tue, 5 Apr 2016 03:45:37 +0000 (13:45 +1000)]
Fix a comment typo in compat.h
teor (Tim Wilson-Brown) [Tue, 5 Apr 2016 03:45:09 +0000 (13:45 +1000)]
Clarify comments on connection_t's address fields
Nick Mathewson [Sun, 3 Apr 2016 20:48:44 +0000 (16:48 -0400)]
Move tor_assert implementation into its own header/module.
Nick Mathewson [Fri, 1 Apr 2016 18:16:49 +0000 (14:16 -0400)]
Merge branch 'incoming_queue_symbol_fix'
Nick Mathewson [Fri, 1 Apr 2016 12:18:03 +0000 (08:18 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Fri, 1 Apr 2016 12:17:56 +0000 (08:17 -0400)]
Merge branch 'bug18133_027' into maint-0.2.8
Nick Mathewson [Fri, 1 Apr 2016 12:16:21 +0000 (08:16 -0400)]
fix indentation
Nick Mathewson [Fri, 1 Apr 2016 12:15:05 +0000 (08:15 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Fri, 1 Apr 2016 12:10:58 +0000 (08:10 -0400)]
Merge remote-tracking branch 'karsten/task-18460-2' into maint-0.2.8
Yawning Angel [Wed, 30 Mar 2016 20:19:11 +0000 (20:19 +0000)]
Issue a `STATUS_SERVER` event on meaningful hibernation state changes.
Implements feature #18685.
Andrea Shepard [Wed, 30 Mar 2016 12:23:42 +0000 (12:23 +0000)]
Merge branch 'bug15221_027' into maint-0.2.7
Nick Mathewson [Tue, 29 Mar 2016 17:55:14 +0000 (13:55 -0400)]
Don't declare "incoming_queue" in every file including channel.h
Found with my wacky symbol-usage-enforcer.
Andrea Shepard [Tue, 29 Mar 2016 15:01:36 +0000 (15:01 +0000)]
Merge branch 'bug18570_027' into maint-0.2.7
Roger Dingledine [Tue, 29 Mar 2016 14:57:01 +0000 (10:57 -0400)]
majority of four is, alas, three
Roger Dingledine [Tue, 29 Mar 2016 14:56:26 +0000 (10:56 -0400)]
fix typo in comment
Andrea Shepard [Tue, 29 Mar 2016 14:33:45 +0000 (14:33 +0000)]
Merge branch 'bug16248_027' into maint-0.2.7
Nick Mathewson [Tue, 29 Mar 2016 12:06:21 +0000 (08:06 -0400)]
Merge remote-tracking branch 'arma/feature18624'
Nick Mathewson [Tue, 29 Mar 2016 11:55:02 +0000 (07:55 -0400)]
Faravahar also versions.
Nick Mathewson [Tue, 29 Mar 2016 00:09:22 +0000 (20:09 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Tue, 29 Mar 2016 00:09:09 +0000 (20:09 -0400)]
Fix my dumb unreleased bug in 18673
Nick Mathewson [Mon, 28 Mar 2016 20:36:51 +0000 (16:36 -0400)]
Rename tor_dup_addr to tor_addr_to_str_dup.
Patch from icanhasaccount; closes 18462.
Nick Mathewson [Mon, 28 Mar 2016 20:14:21 +0000 (16:14 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Mon, 28 Mar 2016 20:13:39 +0000 (16:13 -0400)]
Merge branch 'bug18673_028_v2' into maint-0.2.8
Nick Mathewson [Mon, 28 Mar 2016 20:13:02 +0000 (16:13 -0400)]
Merge remote-tracking branch 'sebastian/onlyonly' into maint-0.2.8