]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
12 years agoMerge remote-tracking branch 'public/bug8377' into maint-0.2.3
Nick Mathewson [Mon, 18 Mar 2013 19:27:50 +0000 (15:27 -0400)] 
Merge remote-tracking branch 'public/bug8377' into maint-0.2.3

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 11 Mar 2013 17:32:01 +0000 (13:32 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the March 2013 GeoIP database.
Karsten Loesing [Thu, 7 Mar 2013 19:58:31 +0000 (20:58 +0100)] 
Update to the March 2013 GeoIP database.

12 years agoAdd unit test for tor_addr_is_loopback
Nick Mathewson [Fri, 1 Mar 2013 17:40:41 +0000 (12:40 -0500)] 
Add unit test for tor_addr_is_loopback

12 years agoMake sure that [::1] is recognized as a private address
Nick Mathewson [Fri, 1 Mar 2013 17:22:57 +0000 (12:22 -0500)] 
Make sure that [::1] is recognized as a private address

Fixes bug 8377; bugfix on 0.2.1.3-alpha.

12 years agooops; add a missing semicolon
Nick Mathewson [Mon, 11 Feb 2013 21:17:33 +0000 (16:17 -0500)] 
oops; add a missing semicolon

(Cherry-picked from fc35ee4910326dc1ae718482b30e57666a71df85)

12 years agoCheck whether ei is non-NULL before altering it.
Nick Mathewson [Mon, 11 Feb 2013 21:05:03 +0000 (16:05 -0500)] 
Check whether ei is non-NULL before altering it.

This fixes a crash bug if we fail to generate an extrainfo
descriptor.

Fixes bug 8208; bugfix on 0.2.3.16-alpha.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 8 Feb 2013 15:36:34 +0000 (10:36 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the February 2013 GeoIP database.
Karsten Loesing [Fri, 8 Feb 2013 13:37:58 +0000 (14:37 +0100)] 
Update to the February 2013 GeoIP database.

12 years agoMerge branch 'bug7889_023' into maint-0.2.3
Nick Mathewson [Tue, 15 Jan 2013 21:30:07 +0000 (16:30 -0500)] 
Merge branch 'bug7889_023' into maint-0.2.3

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 14 Jan 2013 19:24:19 +0000 (14:24 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoReject create/begin/etc cells with {circ,stream}ID 0.
Nick Mathewson [Mon, 14 Jan 2013 19:02:13 +0000 (14:02 -0500)] 
Reject create/begin/etc cells with {circ,stream}ID 0.

Otherwise, it's possible to create streams or circuits with these
bogus IDs, leading to orphaned circuits or streams, or to ones that
can cause bandwidth DOS problems.

Fixes bug 7889; bugfix on all released Tors.

12 years agoUpdate to the January 2013 GeoIP database.
Karsten Loesing [Sat, 5 Jan 2013 07:18:26 +0000 (08:18 +0100)] 
Update to the January 2013 GeoIP database.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Thu, 13 Dec 2012 17:51:28 +0000 (12:51 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoAdd link explaining how the geoip file was created.
Karsten Loesing [Thu, 13 Dec 2012 07:45:25 +0000 (08:45 +0100)] 
Add link explaining how the geoip file was created.

12 years agoUpdate to the December 2012 GeoIP database.
Karsten Loesing [Thu, 6 Dec 2012 10:29:47 +0000 (11:29 +0100)] 
Update to the December 2012 GeoIP database.

12 years agoUpdate to the November 2012 GeoIP database.
Karsten Loesing [Wed, 28 Nov 2012 02:26:52 +0000 (21:26 -0500)] 
Update to the November 2012 GeoIP database.

12 years agouse a more logical operator
Roger Dingledine [Tue, 13 Nov 2012 04:47:21 +0000 (23:47 -0500)] 
use a more logical operator

Fix a harmless bug when opting against publishing a relay descriptor
because DisableNetwork is set.

Fixes bug 7464; bugfix on 0.2.3.9-alpha.

12 years agoTurn a memwipe in tor_process_handle_destroy() back to memset
Nick Mathewson [Fri, 9 Nov 2012 00:59:54 +0000 (19:59 -0500)] 
Turn a memwipe in tor_process_handle_destroy() back to memset

It broke linking on tor-resolve.c, and it's not actually sanitizing
anything sensitive.  Fix for bug 7420; bug not on ony released Tor.

12 years agoMerge branch 'bug7352_023_rebased' into maint-0.2.3
Nick Mathewson [Thu, 8 Nov 2012 21:45:46 +0000 (16:45 -0500)] 
Merge branch 'bug7352_023_rebased' into maint-0.2.3

12 years agoAdd and use and unlikely-to-be-eliminated memwipe()
Nick Mathewson [Wed, 7 Nov 2012 21:09:58 +0000 (16:09 -0500)] 
Add and use and unlikely-to-be-eliminated memwipe()

Apparently some compilers like to eliminate memset() operations on
data that's about to go out-of-scope.  I've gone with the safest
possible replacement, which might be a bit slow.  I don't think this
is critical path in any way that will affect performance, but if it
is, we can work on that in 0.2.4.

Fixes bug 7352.

13 years agoFix a remotely triggerable assertion failure (CVE-2012-2250)
Nick Mathewson [Wed, 24 Oct 2012 02:58:38 +0000 (22:58 -0400)] 
Fix a remotely triggerable assertion failure (CVE-2012-2250)

If we completed the handshake for the v2 link protocol but wound up
negotiating the wong protocol version, we'd become so confused about
what part of the handshake we were in that we'd promptly die with an
assertion.

This is a fix for CVE-2012-2250; it's a bugfix on 0.2.3.6-alpha.
All servers running that version or later should really upgrade.

Bug and fix from "some guy from France."  I tweaked his code slightly
to make it log the IP of the offending node.

13 years agoMake unit test for bug7191 work with new smartlist_new() name
Nick Mathewson [Wed, 24 Oct 2012 01:49:46 +0000 (21:49 -0400)] 
Make unit test for bug7191 work with new smartlist_new() name

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Wed, 24 Oct 2012 01:48:50 +0000 (21:48 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

13 years agoAdd some unit tests for smartlist_bsearch_idx() on short lists
Andrea Shepard [Tue, 23 Oct 2012 21:28:19 +0000 (14:28 -0700)] 
Add some unit tests for smartlist_bsearch_idx() on short lists

Conflicts:
src/test/test_containers.c

13 years agoAdd a changes file for bug 7191.
Nick Mathewson [Wed, 24 Oct 2012 01:31:42 +0000 (21:31 -0400)] 
Add a changes file for bug 7191.

13 years agoFix binary search on lists of 0 or 1 element.
Nick Mathewson [Tue, 23 Oct 2012 21:12:37 +0000 (17:12 -0400)] 
Fix binary search on lists of 0 or 1 element.

The implementation we added has a tendency to crash with lists of 0 or
one element.  That can happen if we get a consensus vote, v2
consensus, consensus, or geoip file with 0 or 1 element.  There's a
DOS opportunity there that authorities could exploit against one
another, and which an evil v2 authority could exploit against anything
downloading v2 directory information..

This fix is minimalistic: It just adds a special-case for 0- and
1-element lists.  For 0.2.4 (the current alpha series) we'll want a
better patch.

This is bug 7191; it's a fix on 0.2.0.10-alpha.

13 years agoLet 0.2.3 clients exit to internal addresses if they want
Roger Dingledine [Mon, 22 Oct 2012 19:45:39 +0000 (15:45 -0400)] 
Let 0.2.3 clients exit to internal addresses if they want

Clients now consider the ClientRejectInternalAddresses config option
when using a microdescriptor consensus stanza to decide whether
an exit relay would allow exiting to an internal address. Fixes
bug 7190; bugfix on 0.2.3.1-alpha.

13 years agoFix parse_short_policy (bug 7192.)
Nick Mathewson [Mon, 22 Oct 2012 21:34:05 +0000 (17:34 -0400)] 
Fix parse_short_policy (bug 7192.)

Our implementation of parse_short_policy was screwed up: it would
ignore the last character of every short policy.  Obviously, that's
broken.

This patch fixes the busted behavior, and adds a bunch of unit tests
to make sure the rest of that function is okay.

Fixes bug 7192; fix on 0.2.3.1-alpha.

13 years agoadd a unit test to expose bug 7192
Roger Dingledine [Mon, 22 Oct 2012 21:09:43 +0000 (17:09 -0400)] 
add a unit test to expose bug 7192

13 years agoMerge branch 'block_renegotiate_023' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 18:30:31 +0000 (14:30 -0400)] 
Merge branch 'block_renegotiate_023' into maint-0.2.3

13 years agoMerge branch 'bug7149' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 07:02:57 +0000 (03:02 -0400)] 
Merge branch 'bug7149' into maint-0.2.3

13 years agoDon't serve or accept v2 HS descs over a DirPort
Robert Ransom [Tue, 11 Sep 2012 20:00:05 +0000 (13:00 -0700)] 
Don't serve or accept v2 HS descs over a DirPort

(changes file tweaked by nickm)

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 04:58:33 +0000 (00:58 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

13 years agoDisable TLS Session Tickets, which we were apparently getting for free
Nick Mathewson [Wed, 17 Oct 2012 23:57:27 +0000 (19:57 -0400)] 
Disable TLS Session Tickets, which we were apparently getting for free

OpenSSL 1.0.0 added an implementation of TLS session tickets, a
"feature" that let session resumption occur without server-side state
by giving clients an encrypted "ticket" that the client could present
later to get the session going again with the same keys as before.
OpenSSL was giving the keys to decrypt these tickets the lifetime of
the SSL contexts, which would have been terrible for PFS if we had
long-lived SSL contexts.  Fortunately, we don't.  Still, it's pretty
bad.  We should also drop these, since our use of the extension stands
out with our non-use of session cacheing.

Found by nextgens. Bugfix on all versions of Tor when built with
openssl 1.0.0 or later.  Fixes bug 7139.

13 years agoDiscard extraneous renegotiation attempts in the v3 link protocol
Nick Mathewson [Tue, 16 Oct 2012 16:55:50 +0000 (12:55 -0400)] 
Discard extraneous renegotiation attempts in the v3 link protocol

Failure to do so left us open to a remotely triggerable assertion
failure. Fixes CVE-2012-2249; bugfix on 0.2.3.6-alpha. Reported by
"some guy from France".

13 years agoMerge branch 'bug7014_023_squashed' into maint-0.2.3
Nick Mathewson [Wed, 10 Oct 2012 03:46:56 +0000 (23:46 -0400)] 
Merge branch 'bug7014_023_squashed' into maint-0.2.3

13 years agoDon't call fmt_addr() twice in a parameter list.
George Kadianakis [Fri, 5 Oct 2012 00:54:29 +0000 (20:54 -0400)] 
Don't call fmt_addr() twice in a parameter list.

13 years agoMerge remote-tracking branch 'arma/bug7037' into maint-0.2.3
Nick Mathewson [Thu, 4 Oct 2012 16:46:33 +0000 (12:46 -0400)] 
Merge remote-tracking branch 'arma/bug7037' into maint-0.2.3

13 years agoRefuse extra create cells with reason "resource limit"
Roger Dingledine [Thu, 4 Oct 2012 00:17:37 +0000 (20:17 -0400)] 
Refuse extra create cells with reason "resource limit"

In the past we had used reason "internal", which is more vague than
it needs to be. Resolves bug 7037.

13 years agoproperly free the return values of rate_limit_log()
Roger Dingledine [Wed, 3 Oct 2012 17:15:27 +0000 (13:15 -0400)] 
properly free the return values of rate_limit_log()

resolves bug 7022.

13 years agoadd faravahar as our ninth v3 dir auth
Roger Dingledine [Sat, 22 Sep 2012 13:10:37 +0000 (09:10 -0400)] 
add faravahar as our ninth v3 dir auth

13 years agoClarify that hidden services are TCP only
Nick Mathewson [Wed, 19 Sep 2012 12:18:19 +0000 (08:18 -0400)] 
Clarify that hidden services are TCP only

Also remove some trailing whitespace.

Patch from maker; fixes bug 6024.

13 years agoWhitespace fixes
Nick Mathewson [Tue, 18 Sep 2012 20:16:17 +0000 (16:16 -0400)] 
Whitespace fixes

13 years agoBug 6866: Convert pathbias asserts into log messages.
Mike Perry [Tue, 18 Sep 2012 01:25:28 +0000 (18:25 -0700)] 
Bug 6866: Convert pathbias asserts into log messages.

Asserts were hit by Tor2Web mode.

13 years agoUse file-size-fixup code on cygwin too.
Nick Mathewson [Fri, 14 Sep 2012 16:37:17 +0000 (12:37 -0400)] 
Use file-size-fixup code on cygwin too.

We already had code on windows to fix our file sizes when we're
reading a file in text mode and its size doesn't match the size from
fstat.  But that code was only enabled when _WIN32 was defined, and
Cygwin defines __CYGWIN__ instead.

Fixes bug 6844; bugfix on 0.1.2.7-alpha.

13 years agoFix man page typo
Robert Ransom [Fri, 14 Sep 2012 06:25:03 +0000 (23:25 -0700)] 
Fix man page typo

13 years agomention the bug number in the 6827 changes file
Nick Mathewson [Thu, 13 Sep 2012 14:07:06 +0000 (10:07 -0400)] 
mention the bug number in the 6827 changes file

13 years agoAvoid undefined behaviour when parsing HS protocol versions
Robert Ransom [Thu, 13 Sep 2012 11:39:39 +0000 (07:39 -0400)] 
Avoid undefined behaviour when parsing HS protocol versions

Fixes bug 6827; bugfix on c58675ca728f12b42f65e5b8964ae695c2e0ec2d
(when the v2 HS desc parser was implemented).

Found by asn.

13 years agoRevert "6819: typo in torrc.sample.in"
Nick Mathewson [Wed, 12 Sep 2012 19:37:47 +0000 (15:37 -0400)] 
Revert "6819: typo in torrc.sample.in"

This reverts commit 4aff97cfc7965414ad8506ce28a296da1bc4a161.

We don't actually want to be changing the torrc.sample on stable or
near-stable stuff, since doing so makes pointless busywork for debian
users.

13 years agoMerge remote-tracking branch 'public/bug6341_a_v2' into maint-0.2.3
Nick Mathewson [Wed, 12 Sep 2012 15:10:59 +0000 (11:10 -0400)] 
Merge remote-tracking branch 'public/bug6341_a_v2' into maint-0.2.3

13 years ago6819: typo in torrc.sample.in
Nick Mathewson [Wed, 12 Sep 2012 15:08:30 +0000 (11:08 -0400)] 
6819: typo in torrc.sample.in

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Tue, 11 Sep 2012 17:20:15 +0000 (13:20 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

Conflicts:
src/test/test_util.c

13 years agoMerge branch 'timegm_assert_v3_squashed' into maint-0.2.2
Nick Mathewson [Tue, 11 Sep 2012 17:14:43 +0000 (13:14 -0400)] 
Merge branch 'timegm_assert_v3_squashed' into maint-0.2.2

13 years agoFix assertion failure in tor_timegm.
Nick Mathewson [Tue, 11 Sep 2012 14:41:59 +0000 (10:41 -0400)] 
Fix assertion failure in tor_timegm.

Fixes bug 6811.

13 years agoAvoid segfault when reading state file from ancient tor
Nick Mathewson [Mon, 10 Sep 2012 14:35:18 +0000 (10:35 -0400)] 
Avoid segfault when reading state file from ancient tor

If s_values is null in rep_hist_load_bwhist_state_section, we would
call smartlist_len() on it, and die.

Fixes bug 6801.

13 years agoUpdate the minimum bandwidth for a public relay
Roger Dingledine [Wed, 5 Sep 2012 20:40:57 +0000 (16:40 -0400)] 
Update the minimum bandwidth for a public relay

The current cutoff is 30KB, but in reality a useful cutoff is probably
more like 50KB or 100KB.

13 years agoAvoid segfault if EntryGuardPathBias precedes EntryGuard
Nick Mathewson [Wed, 5 Sep 2012 17:27:54 +0000 (13:27 -0400)] 
Avoid segfault if EntryGuardPathBias precedes EntryGuard

Fix for bug 6774; bugfix on 0.2.3.17-beta.

13 years agoMerge remote-tracking branch 'arma/bug6743' into maint-0.2.3
Nick Mathewson [Tue, 4 Sep 2012 22:33:56 +0000 (18:33 -0400)] 
Merge remote-tracking branch 'arma/bug6743' into maint-0.2.3

13 years agofix whitespace and trivial typo
Roger Dingledine [Mon, 3 Sep 2012 06:09:39 +0000 (02:09 -0400)] 
fix whitespace and trivial typo

13 years agoMake begindir_cutoff the same as general_cutoff
Roger Dingledine [Sat, 1 Sep 2012 05:25:17 +0000 (01:25 -0400)] 
Make begindir_cutoff the same as general_cutoff

Allow one-hop directory fetching circuits the full "circuit build timeout"
period, rather than just half of it, before failing them and marking
the relay down. This fix should help reduce cases where clients declare
relays (or worse, bridges) unreachable because the TLS handshake takes
a few seconds to complete.

Fixes bug 6743 (one piece of bug 3443); bugfix on 0.2.2.2-alpha, where
we changed the timeout from a static 30 seconds.

13 years agoMerge branch 'bug6732' into maint-0.2.3
Nick Mathewson [Fri, 31 Aug 2012 22:39:11 +0000 (18:39 -0400)] 
Merge branch 'bug6732' into maint-0.2.3

13 years agoDocument consensus and microdesc files
Nick Mathewson [Fri, 31 Aug 2012 15:35:47 +0000 (11:35 -0400)] 
Document consensus and microdesc files

Bugfix for #6732.

13 years agoQuiet "Set buildtimeout to low val" warnings: make them info
Nick Mathewson [Mon, 27 Aug 2012 20:37:09 +0000 (16:37 -0400)] 
Quiet "Set buildtimeout to low val" warnings: make them info

Fix for #6251

13 years agoMerge branch 'disable_pathbias_warnings_v2' into maint-0.2.3
Nick Mathewson [Mon, 27 Aug 2012 20:19:52 +0000 (16:19 -0400)] 
Merge branch 'disable_pathbias_warnings_v2' into maint-0.2.3

13 years agoDowngrade path-bias warning messages to INFO for now.
Nick Mathewson [Mon, 27 Aug 2012 14:46:17 +0000 (10:46 -0400)] 
Downgrade path-bias warning messages to INFO for now.

We've had over two months to fix them, and didn't.  Now we need
0.2.3.x stable.  Yes, it would be cool to get this working in
0.2.3.x, but not at the expense of delaying every other feature that
_does_ work in 0.2.3.x.  We can do a real fix in 0.2.4.

13 years agoMerge branch 'bug6710_023' into maint-0.2.3
Nick Mathewson [Mon, 27 Aug 2012 20:15:01 +0000 (16:15 -0400)] 
Merge branch 'bug6710_023' into maint-0.2.3

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 27 Aug 2012 20:07:04 +0000 (16:07 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

Conflicts:
src/or/policies.c

13 years agoMerge branch 'bug6690_022' into maint-0.2.2
Nick Mathewson [Mon, 27 Aug 2012 20:03:48 +0000 (16:03 -0400)] 
Merge branch 'bug6690_022' into maint-0.2.2

13 years agoFix changes file for 6710: before 0.0.8pre1, you couldn't extend to
Nick Mathewson [Mon, 27 Aug 2012 16:29:04 +0000 (12:29 -0400)] 
Fix changes file for 6710: before 0.0.8pre1, you couldn't extend to
a router that another router wasn't already connected to.

13 years agoDo not assert when comparing a null address/port against a policy
Nick Mathewson [Mon, 27 Aug 2012 15:52:51 +0000 (11:52 -0400)] 
Do not assert when comparing a null address/port against a policy

This can create a remote crash opportunity for/against directory
authorities.

13 years agoDisable extending to private/internal addresses by default
Nick Mathewson [Mon, 27 Aug 2012 15:16:44 +0000 (11:16 -0400)] 
Disable extending to private/internal addresses by default

This is important, since otherwise an attacker can use timing info
to probe the internal network.

Also, add an option (ExtendAllowPrivateAddresses) so that
TestingTorNetwork won't break.

Fix for bug 6710; bugfix on all released versions of Tor.

13 years agoMerge remote-tracking branch 'public/bug6472' into maint-0.2.3
Nick Mathewson [Fri, 24 Aug 2012 16:51:02 +0000 (12:51 -0400)] 
Merge remote-tracking branch 'public/bug6472' into maint-0.2.3

13 years agoMerge remote-tracking branch 'public/bug6404' into maint-0.2.3
Nick Mathewson [Tue, 21 Aug 2012 14:35:40 +0000 (10:35 -0400)] 
Merge remote-tracking branch 'public/bug6404' into maint-0.2.3

13 years agowhitespace fix
Nick Mathewson [Fri, 17 Aug 2012 21:10:03 +0000 (17:10 -0400)] 
whitespace fix

13 years agoWhen iterating over connections pending DNS, skip marked ones
Nick Mathewson [Fri, 17 Aug 2012 20:46:11 +0000 (16:46 -0400)] 
When iterating over connections pending DNS, skip marked ones

Failure to do this would lead to double-free cases and similar,
especially when the exit's DNS was broken. See bug 6472 for full
details; this is a fix for 6472.

Anonymous patch from "cypherpunks" on trac.

13 years agoConsider IPv6 OR ports when deciding whether a routerinfo change is cosmetic.
Linus Nordberg [Thu, 19 Jul 2012 18:41:23 +0000 (20:41 +0200)] 
Consider IPv6 OR ports when deciding whether a routerinfo change is cosmetic.

Closes #6423.

13 years agoMerge branch 'bug6379' into maint-0.2.3
Nick Mathewson [Fri, 17 Aug 2012 17:57:07 +0000 (13:57 -0400)] 
Merge branch 'bug6379' into maint-0.2.3

13 years agoFix more warnings from openbsd_malloc
Nick Mathewson [Fri, 17 Aug 2012 17:49:52 +0000 (13:49 -0400)] 
Fix more warnings from openbsd_malloc

Apparently, (void)writev is not enough to suppress the "you are
ignoring the return value!" warnings on Linux.  Instead, remove the
whole warning/error logic when compiling openbsd_malloc for Tor: we
can't use it.

13 years agoMerge remote-tracking branch 'public/bug6244_part_c' into maint-0.2.3
Nick Mathewson [Fri, 17 Aug 2012 16:37:49 +0000 (12:37 -0400)] 
Merge remote-tracking branch 'public/bug6244_part_c' into maint-0.2.3

13 years agoMerge remote-tracking branch 'public/bug6507' into maint-0.2.3
Nick Mathewson [Fri, 17 Aug 2012 16:33:17 +0000 (12:33 -0400)] 
Merge remote-tracking branch 'public/bug6507' into maint-0.2.3

13 years agoWhitespace and build fixes on 6475 patch
Nick Mathewson [Fri, 17 Aug 2012 16:10:31 +0000 (12:10 -0400)] 
Whitespace and build fixes on 6475 patch

13 years agoMerge remote-tracking branch 'mikeperry/bug6475' into maint-0.2.3
Nick Mathewson [Fri, 17 Aug 2012 16:08:42 +0000 (12:08 -0400)] 
Merge remote-tracking branch 'mikeperry/bug6475' into maint-0.2.3

13 years agoMerge remote-tracking branch 'public/bug6514' into maint-0.2.3
Nick Mathewson [Fri, 17 Aug 2012 15:53:06 +0000 (11:53 -0400)] 
Merge remote-tracking branch 'public/bug6514' into maint-0.2.3

13 years agoAddress Nick's comments from code review.
Mike Perry [Thu, 16 Aug 2012 23:29:19 +0000 (16:29 -0700)] 
Address Nick's comments from code review.

Also promote log messages to notice and rate-limit them.

13 years agoBug 6475: Explicitly track our path bias state.
Mike Perry [Thu, 16 Aug 2012 02:59:55 +0000 (19:59 -0700)] 
Bug 6475: Explicitly track our path bias state.

This is done to avoid spurious warns. Additional log lines are also
added to try to track down the codepaths where we are somehow overcounting
success counts.

13 years agoFix warnings and 64-bit problems in openbsd-malloc code
Nick Mathewson [Wed, 15 Aug 2012 23:26:53 +0000 (19:26 -0400)] 
Fix warnings and 64-bit problems in openbsd-malloc code

The warning fixes are:
  - Only define issetugid if it's missing.
  - Explicitly ignore the return value of writev.
  - Explicitly cast the retval of readlink() to int.

The 64-bit problems are related to just storing a size_t in an int. Not cool!  Use a size_t instead.

Fix for bug 6379. Bugfix on 0.2.0.20-rc, which introduced openbsd-malloc.

13 years agoFix wildcarded address mappings from the control port
Nick Mathewson [Wed, 15 Aug 2012 21:59:30 +0000 (17:59 -0400)] 
Fix wildcarded address mappings from the control port

Apparently, we weren't actually detecting wildcardedness when parsing
them: whoops!

bug 6244.  Bugfix on 0.2.3.9-alpha

13 years agoRaise the part of torrc mapaddress handling that knows wildcards
Nick Mathewson [Wed, 15 Aug 2012 21:49:18 +0000 (17:49 -0400)] 
Raise the part of torrc mapaddress handling that knows wildcards

This patch extracts the inner part of config_register_addressmaps --
the part that knows about detecting wildcard addresses addresses --
and makes it into a new function.  The new function is deliberately
not moved or reindented, so that the diff is smaller.

I need this to fix bug 6244.

13 years agoUpdate description of what we did to upper limit on md size
Nick Mathewson [Tue, 14 Aug 2012 07:10:14 +0000 (03:10 -0400)] 
Update description of what we did to upper limit on md size

Spotted by asn

13 years agoFix memory leak in dirvote_create_microdescriptor
Nick Mathewson [Tue, 14 Aug 2012 07:06:47 +0000 (03:06 -0400)] 
Fix memory leak in dirvote_create_microdescriptor

Found by George, who gets a cookie.

13 years agoReject attempts to say FooPort and FooPort 0 in the same cfg domain
Nick Mathewson [Thu, 9 Aug 2012 20:13:03 +0000 (16:13 -0400)] 
Reject attempts to say FooPort and FooPort 0 in the same cfg domain

13 years agoFix spaces from last patch
Nick Mathewson [Thu, 9 Aug 2012 20:02:57 +0000 (16:02 -0400)] 
Fix spaces from last patch

13 years agoDon't infer we have a FooPort from the presence of a FooPort line
Nick Mathewson [Thu, 9 Aug 2012 19:48:43 +0000 (15:48 -0400)] 
Don't infer we have a FooPort from the presence of a FooPort line

Thanks to the changes we started making with SocksPort and friends
in 0.2.3.3-alpha, any of our code that did "if (options->Sockport)"
became wrong, since "SocksPort 0" would make that test true whereas
using the default SocksPort value would make it false.  (We didn't
actually do "if (options->SockPort)" but we did have tests for
TransPort.  When we moved DirPort, ORPort, and ControlPort over to
the same system in 0.2.3.9-alpha, the problem got worse, since our
code is littered with checks for DirPort and ORPort as booleans.

This code renames the current linelist-based FooPort options to
FooPort_lines, and adds new FooPort_set options which get set at
parse-and-validate time on the or_options_t.  FooPort_set is true
iff we will actually try to open a listener of the given type. (I
renamed the FooPort options rather than leave them alone so that
every previous user of a FooPort would need to get inspected, and so
that any new code that forgetfully uses FooPort will need fail to
compile.)

Fix for bug 6507.

13 years agoMerge remote-tracking branch 'public/bug6252_again' into maint-0.2.3
Nick Mathewson [Thu, 9 Aug 2012 14:50:11 +0000 (10:50 -0400)] 
Merge remote-tracking branch 'public/bug6252_again' into maint-0.2.3

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 3 Aug 2012 16:04:11 +0000 (12:04 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

Conflicts:
src/or/routerlist.c

13 years agoTry to clarify impact of bug 6537
Nick Mathewson [Fri, 3 Aug 2012 15:54:11 +0000 (11:54 -0400)] 
Try to clarify impact of bug 6537

I don't personally agree that this is likely to be easy to exploit,
and some initial experimention I've done suggests that cache-miss
times are just plain too fast to get useful info out of when they're
mixed up with the rest of Tor's timing noise.  Nevertheless, I'm
leaving Robert's initial changelog entry in the git history so that he
can be the voice of reason if I'm wrong. :)

13 years agoMitigate a side-channel leak of which relays Tor chooses for a circuit
Robert Ransom [Thu, 14 Jun 2012 17:15:54 +0000 (17:15 +0000)] 
Mitigate a side-channel leak of which relays Tor chooses for a circuit

Tor's and OpenSSL's current design guarantee that there are other leaks,
but this one is likely to be more easily exploitable, and is easy to fix.

13 years agoRemove bogus comment claiming that an assertion is triggerable by consensus
Robert Ransom [Thu, 14 Jun 2012 15:41:11 +0000 (15:41 +0000)] 
Remove bogus comment claiming that an assertion is triggerable by consensus

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 3 Aug 2012 15:18:40 +0000 (11:18 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3