]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 3 Feb 2014 19:13:08 +0000 (14:13 -0500)]
tor_addr_from_sockaddr() is applicable in ipfw code, so use it.
Nick Mathewson [Mon, 3 Feb 2014 19:09:07 +0000 (14:09 -0500)]
ipfw TransPort support on FreeBSD (10267)
This isn't on by default; to get it, you need to set "TransProxyType
ipfw". (The original patch had automatic detection for whether
/dev/pf is present and openable, but that seems marginally fragile.)
Nick Mathewson [Thu, 3 Apr 2014 01:11:45 +0000 (21:11 -0400)]
Fix make_socket_reusable() on windows. Bug not in any released Tor
Nick Mathewson [Wed, 2 Apr 2014 19:45:20 +0000 (15:45 -0400)]
Merge remote-tracking branch 'public/bug10081'
Nick Mathewson [Wed, 2 Apr 2014 17:38:50 +0000 (13:38 -0400)]
Unit tests for connection_edge_process_resolved_cell
Also rename a function to be more accurate (resolve->resolved)
Nick Mathewson [Wed, 2 Apr 2014 15:49:18 +0000 (11:49 -0400)]
Tests for resolved_cell_parse
Nick Mathewson [Fri, 28 Mar 2014 02:24:48 +0000 (22:24 -0400)]
Look at all of a RESOLVED cell; not just the first answer.
Also, stop accepting the old kind of RESOLVED cells with no TTL
fields; they haven't been sent since 0.1.1.6-alpha.
This patch won't work without the fix to #10468 -- it will break
DNSPorts unless they set the proper ipv4/6 flags on entry_connection_t.
Nick Mathewson [Thu, 27 Mar 2014 23:58:06 +0000 (19:58 -0400)]
Extract code to handle RESOLVED cells
No other changes have been made; only code has been moved.
Nick Mathewson [Wed, 2 Apr 2014 01:56:49 +0000 (21:56 -0400)]
Merge remote-tracking branch 'public/bug11278'
Nick Mathewson [Wed, 2 Apr 2014 01:50:55 +0000 (21:50 -0400)]
Merge remote-tracking branch 'public/bug10468_024'
Nick Mathewson [Wed, 2 Apr 2014 01:49:01 +0000 (21:49 -0400)]
Merge remote-tracking branch 'public/bug4645'
Conflicts:
src/or/dirserv.c
Nick Mathewson [Wed, 2 Apr 2014 01:10:14 +0000 (21:10 -0400)]
Add one more missing heck on bug4645 fixes
Nick Mathewson [Wed, 2 Apr 2014 01:00:30 +0000 (21:00 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Wed, 2 Apr 2014 00:59:13 +0000 (20:59 -0400)]
Merge branch 'bug9213_doc_024' into maint-0.2.4
Nick Mathewson [Thu, 27 Mar 2014 18:58:46 +0000 (14:58 -0400)]
Fix documentation of torrc search order
We are searching @CONFDIR@ before $HOME, but the documentation
implied otherwise.
I screwed this up in
f5e86bcd6c06d43ff3af5acd8135bd8b577bc3 , when I
first documented the $HOME/.torrc possibility.
Fix for bug 9213; bugfix on 0.2.3.18-rc.
Nick Mathewson [Wed, 2 Apr 2014 00:48:15 +0000 (20:48 -0400)]
Merge remote-tracking branch 'public/bug9870'
Conflicts:
src/or/config.c
Nick Mathewson [Tue, 1 Apr 2014 13:39:48 +0000 (09:39 -0400)]
Merge remote-tracking branch 'public/bug11232'
Nick Mathewson [Mon, 31 Mar 2014 15:57:56 +0000 (11:57 -0400)]
Merge branch 'bug8787_squashed'
Nick Mathewson [Mon, 31 Mar 2014 15:57:40 +0000 (11:57 -0400)]
changes file for bug8787
Nick Mathewson [Mon, 31 Mar 2014 15:43:11 +0000 (11:43 -0400)]
Munmap the right pointers in routerlist_free()
Nick Mathewson [Mon, 31 Mar 2014 15:42:49 +0000 (11:42 -0400)]
NULL out all mappings after tor_munmap_file()
Nick Mathewson [Mon, 31 Mar 2014 15:40:00 +0000 (11:40 -0400)]
Check return values for tor_munmap_file() in unit tests
Nick Mathewson [Mon, 31 Mar 2014 15:35:39 +0000 (11:35 -0400)]
Handle tor_munmap_file(NULL) consistently
Andrea Shepard [Wed, 19 Mar 2014 18:22:11 +0000 (11:22 -0700)]
Check strftime() return in tortls.c
Andrea Shepard [Wed, 19 Mar 2014 18:17:55 +0000 (11:17 -0700)]
Eliminate lseek() with unchecked return in tor_mmap_file()
Andrea Shepard [Wed, 19 Mar 2014 00:52:31 +0000 (17:52 -0700)]
Always check returns from unlink()
Andrea Shepard [Tue, 18 Mar 2014 19:39:02 +0000 (12:39 -0700)]
Always check returns from tor_munmap_file() in microdesc.c
Andrea Shepard [Tue, 18 Mar 2014 18:04:20 +0000 (11:04 -0700)]
Always check returns from tor_munmap_file() in routerlist.c
Andrea Shepard [Tue, 18 Mar 2014 17:47:17 +0000 (10:47 -0700)]
Add return value and assert for null parameter to tor_munmap_file()
Nick Mathewson [Mon, 31 Mar 2014 14:52:09 +0000 (10:52 -0400)]
Merge remote-tracking branch 'public/build_torrify_manpage_again'
Nick Mathewson [Mon, 31 Mar 2014 14:51:09 +0000 (10:51 -0400)]
Merge remote-tracking branch 'public/bug11342'
Nick Mathewson [Mon, 31 Mar 2014 14:07:42 +0000 (10:07 -0400)]
Fix a clang compilation warning
Subtracting two time_t values was yielding something that maybe
can't be fit in an int.
Bugfix on
0389d4aa ; bug not in any released Tor.
Nick Mathewson [Fri, 28 Mar 2014 03:53:03 +0000 (23:53 -0400)]
Make dump_desc() use binary mode
Otherwise, it could mung the thing that came over the net on windows,
which would defeat the purpose of recording the unparseable thing.
Fixes bug 11342; bugfix on 0.2.2.1-alpha.
Nick Mathewson [Fri, 28 Mar 2014 03:00:28 +0000 (23:00 -0400)]
Merge branch 'bug9658_refactor'
Nick Mathewson [Fri, 28 Mar 2014 02:57:53 +0000 (22:57 -0400)]
Renamed "onionskins_completed" to "onionskins_assigned"
This improves the accuracy of the function/variable names.
Nick Mathewson [Thu, 27 Mar 2014 21:41:43 +0000 (17:41 -0400)]
Respond to AAAA requests on DNSPort with AAAA automaps
Other DNS+IPv6 problems remain, but at least this fixes the
automapping.
Fixes bug 10468; bugfix on 0.2.4.7-alpha.
Nick Mathewson [Thu, 27 Mar 2014 19:35:11 +0000 (15:35 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 27 Mar 2014 19:34:57 +0000 (15:34 -0400)]
whitespace fix
Nick Mathewson [Thu, 27 Mar 2014 18:26:21 +0000 (14:26 -0400)]
Merge branch 'bug7164_diagnose_harder_v2'
Nick Mathewson [Mon, 17 Mar 2014 18:15:12 +0000 (14:15 -0400)]
More logs to try to diagnose bug 7164
This time, check in microdesc_cache_clean() to see what could be
going wrong with an attempt to clean a microdesc that's held by a node.
Nick Mathewson [Thu, 27 Mar 2014 17:55:18 +0000 (13:55 -0400)]
Don't warn when setsockopt(SO_REUSEABLE) on accept()ed socket says EINVAL
This should fix bug10081. I believe this bug pertains to OSX
behavior, not any Tor behavior change.
Nick Mathewson [Wed, 26 Mar 2014 18:10:07 +0000 (14:10 -0400)]
Fix version number in changes/bug11296
Nick Mathewson [Wed, 26 Mar 2014 16:11:38 +0000 (12:11 -0400)]
Fix build of torify.1
The build was broken by changes in
f8c45339f72525c68 , but we didn't
notice, since that commit also made torify.1 only get built when
tor-fw-helper was turned on.
Fixes bug 11321; bugfix on Tor 0.2.5.1-alpha.
Nick Mathewson [Wed, 26 Mar 2014 15:46:51 +0000 (11:46 -0400)]
Merge remote-tracking branch 'public/bug11296'
Nick Mathewson [Wed, 26 Mar 2014 14:31:56 +0000 (10:31 -0400)]
Turn off testing code for #9683.
(This wasn't supposed to get committed turned-on.)
Nick Mathewson [Tue, 25 Mar 2014 15:55:27 +0000 (11:55 -0400)]
Demote "Invalid length on ESTABLISH_RENDEZVOUS" to protocol_warn
Fixes bug 11279
Nick Mathewson [Tue, 25 Mar 2014 15:16:18 +0000 (11:16 -0400)]
Fix warnings from doxygen
Most of these are simple. The only nontrivial part is that our
pattern for using ENUM_BF was confusing doxygen by making declarations
that didn't look like declarations.
Nick Mathewson [Tue, 25 Mar 2014 15:01:09 +0000 (11:01 -0400)]
Make the redox script sorta work again.
Nick Mathewson [Tue, 25 Mar 2014 14:21:07 +0000 (10:21 -0400)]
Add missing -Isrc/ext to tor-fw-helper/include.am
We need this now that tor-fw-helper will pull in siphash.h
Fixes bug 11296; bugfix on 0.2.5.4-alpha where siphash.h was introduced.
Nick Mathewson [Tue, 25 Mar 2014 14:14:26 +0000 (10:14 -0400)]
Free placeholder circid/chan->circuit map entries on exit
In circuitlist_free_all, we free all the circuits, removing them from
the map as we go, but we weren't actually freeing the placeholder
entries that we use to indicate pending DESTROY cells.
Fix for bug 11278; bugfix on the 7912 code that was merged in
0.2.5.1-alpha
Nick Mathewson [Tue, 25 Mar 2014 14:02:22 +0000 (10:02 -0400)]
Merge remote-tracking branch 'public/bug11061_024'
Nick Mathewson [Tue, 25 Mar 2014 13:59:19 +0000 (09:59 -0400)]
Fix SOCKSPort documentation layout
In the end this required a slightly nasty hack using a dummy anchor as
an option heading in order to make the "Other recognized __flags__"
line indent properly.
Fixes bug 11061; Bugfix on
61d740ed .
Roger Dingledine [Mon, 24 Mar 2014 06:31:13 +0000 (02:31 -0400)]
quiet the debug message in circuit_build_times_disabled()
something recently made it get called once per second, which will clutter
up your debug log file.
Nick Mathewson [Sun, 23 Mar 2014 19:59:51 +0000 (15:59 -0400)]
Changes file for bug 11276.
The crypto_early_init() function could only be called at most twice,
and both of those were during startup. AFAICT leaking the first set
of locks was the only non-idempotent thing.
Nick Mathewson [Sun, 23 Mar 2014 19:57:56 +0000 (15:57 -0400)]
Merge remote-tracking branch 'arma/bug11276'
Nick Mathewson [Sun, 23 Mar 2014 19:56:23 +0000 (15:56 -0400)]
Merge remote-tracking branch 'public/bug11275_024'
Nick Mathewson [Sun, 23 Mar 2014 19:55:13 +0000 (15:55 -0400)]
changes file for bug 11275
Roger Dingledine [Sun, 23 Mar 2014 04:42:18 +0000 (00:42 -0400)]
Stop leaking 'sig' at each call of router_append_dirobj_signature()
The refactoring in commit
cb75519b (tor 0.2.4.13-alpha) introduced
this leak.
Roger Dingledine [Sun, 23 Mar 2014 06:53:08 +0000 (02:53 -0400)]
Be more lenient in our fix for bug 11149
There are still quite a few 0.2.3.2x relays running for x<5, and while I
agree they should upgrade, I don't think cutting them out of the network
is a net win on either side.
Roger Dingledine [Sun, 23 Mar 2014 04:38:17 +0000 (00:38 -0400)]
Never run crypto_early_init() more than once
Previously we had set up all the infrastructure to avoid calling it
after the first time, but didn't actually use it.
Nick Mathewson [Sun, 23 Mar 2014 04:28:39 +0000 (00:28 -0400)]
Remove the unused circuit_dump_by_chan().
Also remove its helper function.
Nick Mathewson [Sun, 23 Mar 2014 04:20:05 +0000 (00:20 -0400)]
Merge remote-tracking branch 'public/bug9683_rebased'
Nick Mathewson [Sun, 23 Mar 2014 04:18:48 +0000 (00:18 -0400)]
Merge remote-tracking branch 'karsten/task-11070'
Nick Mathewson [Sun, 23 Mar 2014 04:18:11 +0000 (00:18 -0400)]
Merge branch 'ticket11149'
Nick Mathewson [Sun, 23 Mar 2014 04:15:25 +0000 (00:15 -0400)]
bump to 0.2.5.3-alpha-dev
Roger Dingledine [Sun, 23 Mar 2014 04:12:40 +0000 (00:12 -0400)]
whitespace fix
Roger Dingledine [Sun, 23 Mar 2014 03:36:10 +0000 (23:36 -0400)]
bring hacking more up to date
Nick Mathewson [Sun, 23 Mar 2014 02:37:08 +0000 (22:37 -0400)]
Actually I am releasing tonight
Nick Mathewson [Sun, 23 Mar 2014 02:01:42 +0000 (22:01 -0400)]
Set a date in the changelog
Nick Mathewson [Sun, 23 Mar 2014 01:07:50 +0000 (21:07 -0400)]
Increment version to 0.2.5.3-alpha
Nick Mathewson [Thu, 20 Mar 2014 17:55:55 +0000 (13:55 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
This is an "ours" merge, taking nothing, since we already had the
changes that were in
a83abcf5ee5cb8fe245bc97e0
Nick Mathewson [Thu, 20 Mar 2014 17:52:50 +0000 (13:52 -0400)]
Fix unittest compilation with --disable-curve25519
This is a fix for 9700, which we already fixed in 0.2.5.x, but which
got left in 0.2.4.x.
This is a partial backport of
a0a855d586d99540277014ccd3
Nick Mathewson [Thu, 20 Mar 2014 00:28:10 +0000 (20:28 -0400)]
Merge remaining changes/* items into ChangeLog
(Not taking bug11235 since it's a whitespace fix)
Nick Mathewson [Thu, 20 Mar 2014 00:24:15 +0000 (20:24 -0400)]
extract some changelog principles into doc/HACKING
Roger Dingledine [Wed, 19 Mar 2014 23:11:25 +0000 (19:11 -0400)]
sort stanzas by interest, and sort by version within stanzas
(users want to know about client fixes before they want to know about
unit test fixes.)
Roger Dingledine [Wed, 19 Mar 2014 23:05:42 +0000 (19:05 -0400)]
missing colon
Roger Dingledine [Wed, 19 Mar 2014 23:04:35 +0000 (19:04 -0400)]
use the formatting from 0.2.4.21 for the 0.2.4.21 changelog stanza
Roger Dingledine [Wed, 19 Mar 2014 23:03:21 +0000 (19:03 -0400)]
fix a few grammar things, and deprecate 'servers' and 'nodes'
also clarify a few explanations. so far so good!
Nick Mathewson [Wed, 19 Mar 2014 02:52:09 +0000 (22:52 -0400)]
copy-edit the 0.2.5.3-alpha changelog even more
Nick Mathewson [Wed, 19 Mar 2014 02:29:56 +0000 (22:29 -0400)]
Work on the changelog for 0.2.5.3-alpha some more
Andrea Shepard [Tue, 18 Mar 2014 17:28:25 +0000 (10:28 -0700)]
Add changes file for bug #11235
Andrea Shepard [Tue, 18 Mar 2014 17:26:44 +0000 (10:26 -0700)]
Appease make check-spaces
Nick Mathewson [Tue, 18 Mar 2014 14:59:51 +0000 (10:59 -0400)]
changes file for bug11232
Nick Mathewson [Tue, 18 Mar 2014 14:49:39 +0000 (10:49 -0400)]
Fix a ubsan warning in addr_mask_get_bits
ubsan doesn't like us to do (1u<<32) when 32 is wider than
unsigned. Fortunately, we already special-case
addr_mask_get_bits(0), so we can just change the loop bounds.
Nick Mathewson [Tue, 18 Mar 2014 14:47:26 +0000 (10:47 -0400)]
Fix a ubsan warning in our ctypes replacements
ubsan doesn't like 1<<31, since that's an undefined integer
overflow. Instead, we should do 1u<<31.
Nick Mathewson [Tue, 18 Mar 2014 14:43:46 +0000 (10:43 -0400)]
csiphash: don't attempt unaligned access
In digestmap_set/get benchmarks, doing unaligned access on x86
doesn't save more than a percent or so in the fast case. In the
slow case (where we cross a cache line), it could be pretty
expensive. It also makes ubsan unhappy.
Nick Mathewson [Tue, 18 Mar 2014 14:02:27 +0000 (10:02 -0400)]
memarea.c: use flexible array member for mem
This make clang's memory sanitizer happier that we aren't reading
off the end of a char[1]. We hadn't replaced the char[1] with a
char[FLEXIBLE_ARRAY_MEMBER] before because we were doing a union
trick to force alignment. Now we use __attribute__(aligned) where
available, and we do the union trick elsewhere.
Most of this patch is just replacing accesses to (x)->u.mem with
(x)->U_MEM, where U_MEM is defined as "u.mem" or "mem" depending on
our implementation.
Nick Mathewson [Tue, 18 Mar 2014 13:46:39 +0000 (09:46 -0400)]
Fix a use-after-free in test_circuitlist.c
Found by clang-3.4 analyzers.
Karsten Loesing [Mon, 17 Mar 2014 16:38:22 +0000 (17:38 +0100)]
Take out remaining V1 directory code.
Nick Mathewson [Wed, 12 Mar 2014 14:57:08 +0000 (10:57 -0400)]
Defensive programming: null [pn]_chan,circ_id in circuit_mark_for_close_
Doing this as part of the patch for #9683 to prevent possible bugs
down the line
Nick Mathewson [Mon, 9 Sep 2013 17:48:44 +0000 (13:48 -0400)]
Test code for implementation of faster circuit_unlink_all_from_channel
This contains the obvious implementation using the circuitmux data
structure. It also runs the old (slow) algorithm and compares
the results of the two to make sure that they're the same.
Needs review and testing.
Nick Mathewson [Fri, 14 Mar 2014 14:09:04 +0000 (10:09 -0400)]
Update to latest tinytest
(This pulls in some fixes to tinytest_demo.c, which Tor doesn't build.)
Nick Mathewson [Thu, 13 Mar 2014 15:34:51 +0000 (11:34 -0400)]
Sort the 0.2.5.3-alpha changelog entries a little better.
Still haven't edited any.
Also, remove all the changes/* entries that got merged back in
6b5ef3889d83c715973d .
Nick Mathewson [Thu, 13 Mar 2014 14:35:52 +0000 (10:35 -0400)]
Clarify ClientOnly documentation
The option is unneeded, not meaningless, so explain what it does.
Patch from Matt Pagan; fixes 9059.
Nick Mathewson [Thu, 13 Mar 2014 14:07:10 +0000 (10:07 -0400)]
Fix some leaks/missed checks in the unit tests
Coverity spotted these.
Nick Mathewson [Wed, 12 Mar 2014 19:58:18 +0000 (15:58 -0400)]
Sort the 0.2.5.3-alpha changelog a little
Nick Mathewson [Wed, 12 Mar 2014 19:53:58 +0000 (15:53 -0400)]
Start work on an 0.2.5.3-alpha changelog.
This collects all the changes file, and find the stuff that also
appeared new in 0.2.4.21.
Nick Mathewson [Wed, 12 Mar 2014 15:11:26 +0000 (11:11 -0400)]
bugfix-on for 5018_notice
Nick Mathewson [Wed, 12 Mar 2014 15:10:51 +0000 (11:10 -0400)]
Merge remote-tracking branch 'asn/bug5018_notice'
Nick Mathewson [Tue, 11 Mar 2014 15:23:46 +0000 (11:23 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'