]>
git.ipfire.org Git - thirdparty/tor.git/log
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 01:46:58 +0000 (11:46 +1000)]
ExitPolicy accept6/reject6 produces IPv6 wildcard addresses only
In previous versions of Tor, ExitPolicy accept6/reject6 * produced
policy entries for IPv4 and IPv6 wildcard addresses.
To reduce operator confusion, change accept6/reject6 * to only produce
an IPv6 wildcard address.
Resolves bug #16069.
Patch on
2eb7eafc9d78 and
a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 11:56:14 +0000 (21:56 +1000)]
Warn about redundant torrc ExitPolicy lines due to accept/reject *:*
Tor now warns when ExitPolicy lines occur after accept/reject *:*
or variants. These lines are redundant, and were always ignored.
Partial fix for ticket 16069. Patch by "teor".
Patch on
2eb7eafc9d78 and
a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.
teor (Tim Wilson-Brown) [Fri, 11 Sep 2015 05:10:54 +0000 (15:10 +1000)]
Ignore accept6/reject6 IPv4, warn about unexpected rule outcomes
When parsing torrc ExitPolicies, we now warn if:
* an IPv4 address is used on an accept6 or reject6 line. The line is
ignored, but the rest of the policy items in the list are used.
(accept/reject continue to allow both IPv4 and IPv6 addresses in torrcs.)
* a "private" address alias is used on an accept6 or reject6 line.
The line filters both IPv4 and IPv6 private addresses, disregarding
the 6 in accept6/reject6.
When parsing torrc ExitPolicies, we now issue an info-level message:
* when expanding an accept/reject * line to include both IPv4 and IPv6
wildcard addresses.
In each instance, usage advice is provided to avoid the message.
Partial fix for ticket 16069. Patch by "teor".
Patch on
2eb7eafc9d78 and
a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.
teor (Tim Wilson-Brown) [Wed, 9 Sep 2015 13:48:33 +0000 (23:48 +1000)]
Update comments about ExitPolicy parsing
Fix incomplete and incorrect comments.
Comment changes only.
Nick Mathewson [Sun, 13 Sep 2015 18:44:46 +0000 (14:44 -0400)]
Convince coverity that we do not have a particular memory leak
David Goulet [Fri, 11 Sep 2015 13:09:07 +0000 (15:09 +0200)]
Add a rend cache failure info dup function
When validating a new descriptor against our rend cache failure, we were
added the failure entry to the new cache entry without duplicating. It was
then freed just after the validation ending up in a very bad memory state
that was making tor abort(). To fix this, a dup function has been added and
used just before adding the failure entry.
Fixes #17041
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Thu, 10 Sep 2015 14:37:13 +0000 (10:37 -0400)]
Merge remote-tracking branch 'public/ed25519_hup_v2'
Nick Mathewson [Thu, 10 Sep 2015 14:35:06 +0000 (10:35 -0400)]
Merge remote-tracking branch 'teor/make-test-network-all'
Nick Mathewson [Thu, 10 Sep 2015 14:03:44 +0000 (10:03 -0400)]
Merge remote-tracking branch 'teor/configure-use-colon'
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:40:47 +0000 (17:40 +1000)]
fixup Some slower configurations need 35 seconds to bootstrap
Some slower configurations, like OS X i386, need 35 seconds to reliably
bootstrap larger chutney networks. Increase default bootstrap time in
src/test/test-network.h to 35 seconds.
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:33:59 +0000 (17:33 +1000)]
Use : rather than /bin/true in configure.ac
Some platforms have true at different locations, like /usr/bin/true.
Nick Mathewson [Wed, 9 Sep 2015 17:23:32 +0000 (13:23 -0400)]
Bump default test-network bootstrap time to 35 sec (see 16953)
Nick Mathewson [Wed, 9 Sep 2015 13:56:59 +0000 (09:56 -0400)]
Merge remote-tracking branch 'yawning/feature15482_fixup'
Yawning Angel [Wed, 9 Sep 2015 13:52:30 +0000 (13:52 +0000)]
Check NoKeepAliveIsolateSOCKSAuth in a better place.
No functional changes, but since NoKeepAliveIsolateSOCKSAuth isn't
part of isoflag, it should be checked where all other similar options
are, and bypass the (no-op) masking at the end.
Nick Mathewson [Wed, 9 Sep 2015 13:44:02 +0000 (09:44 -0400)]
Fold changes files into changelog
Nick Mathewson [Wed, 9 Sep 2015 13:35:05 +0000 (09:35 -0400)]
Fix warnings from lintChanges
Nick Mathewson [Tue, 8 Sep 2015 18:44:34 +0000 (14:44 -0400)]
changes file for 16953
Nick Mathewson [Tue, 8 Sep 2015 18:43:34 +0000 (14:43 -0400)]
Merge remote-tracking branch 'teor/make-test-network-all'
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 18:21:07 +0000 (04:21 +1000)]
Increase default boostrap time in test-network.sh
Increase default boostrap time in test-network.sh to 30 seconds,
for larger networks like bridges+ipv6+hs.
This avoids the failure-hiding issues inherent in the retry approach
in #16952.
Nick Mathewson [Tue, 8 Sep 2015 18:03:54 +0000 (14:03 -0400)]
Make NoKeepAliveIsolateSOCKSAuth work as expected
Nick Mathewson [Tue, 8 Sep 2015 18:03:04 +0000 (14:03 -0400)]
Merge branch 'feature15482_squashed'
Yawning Angel [Tue, 1 Sep 2015 16:30:48 +0000 (16:30 +0000)]
Add `KeepAliveIsolateSOCKSAuth` as a SOCKSPort option.
This controls the circuit dirtyness reset behavior added for Tor
Browser's user experience fix (#15482). Unlike previous iterations
of this patch, the tunable actually works, and is documented.
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 17:06:01 +0000 (03:06 +1000)]
make test-network-all exit 1 if any test network fails
Nick Mathewson [Tue, 8 Sep 2015 14:41:51 +0000 (10:41 -0400)]
Merge branch 'bug16980'
Nick Mathewson [Tue, 8 Sep 2015 14:22:01 +0000 (10:22 -0400)]
Handle negative inputs to crypto_random_time_range().
(These inputs are possible when Shadow starts the world at time_t 0,
and breaks our assumption that Tor didn't exist in the 1970s.)
Fixes regression introduced in
241e6b09 . Fixes #16980.
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 12:27:59 +0000 (22:27 +1000)]
Add "make test-network-all" to verify multiple test networks
make test-network-all is Makefile target which verifies a series
of test networks generated using test-network.sh and chutney.
It runs IPv6 and mixed version test networks if the prerequisites are
available.
Each test network reports PASS, FAIL, or SKIP.
Closes ticket 16953. Patch by "teor".
Also adds "--hs-multi-client 1" option to TEST_NETWORK_FLAGS.
This resolves #17012.
Larger networks, such as bridges+hs, may fail until #16952 is merged.
teor (Tim Wilson-Brown) [Tue, 8 Sep 2015 12:27:12 +0000 (22:27 +1000)]
Make test-network.sh more robust against arguments containing spaces
Nick Mathewson [Fri, 4 Sep 2015 13:30:59 +0000 (09:30 -0400)]
Fix an alignment issue in our extensions to ed25519_donna
Apparently this only happens with clang (or with some particular
clang versions), and only on i386.
Fixes 16970; bug not in any released Tor.
Found by Teor; fix from Yawning.
Nick Mathewson [Thu, 3 Sep 2015 19:23:10 +0000 (15:23 -0400)]
Fix windows test_keygen.sh. This time I think I have it!
Nick Mathewson [Thu, 3 Sep 2015 19:10:57 +0000 (15:10 -0400)]
Now normalize_exit has a bug number.
Nick Mathewson [Thu, 3 Sep 2015 18:53:50 +0000 (14:53 -0400)]
Use absolute path for datadir in test_keygen.sh
Nick Mathewson [Thu, 3 Sep 2015 18:42:50 +0000 (14:42 -0400)]
Try to fix #16974; bug not in any released version
Nick Mathewson [Thu, 3 Sep 2015 16:51:58 +0000 (12:51 -0400)]
Make test_keygen.sh dump what the problem is on cmp failure
Nick Mathewson [Thu, 3 Sep 2015 15:38:00 +0000 (11:38 -0400)]
Only return 0..255 from main().
I think this may fix some bugs with windows exit codes being screwy.
Nick Mathewson [Thu, 3 Sep 2015 14:53:04 +0000 (10:53 -0400)]
Add a little more output to test_keygen.sh: try to debug windows
Nick Mathewson [Thu, 3 Sep 2015 14:30:54 +0000 (10:30 -0400)]
Add doc/WritingTests.txt to distribution
Nick Mathewson [Wed, 2 Sep 2015 20:00:07 +0000 (16:00 -0400)]
Merge remote-tracking branch 'dgoulet/bug15963_026_01'
David Goulet [Wed, 2 Sep 2015 14:52:55 +0000 (16:52 +0200)]
Don't vote HSDir if we aren't voting Fast
Fixes #15963
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Wed, 2 Sep 2015 15:02:00 +0000 (11:02 -0400)]
Fix crashes in tests
David Goulet [Wed, 2 Sep 2015 12:53:39 +0000 (14:53 +0200)]
Prohibit the use of one entry node with an HS
In a nutshell, since a circuit can not exit at its entry point, it's very
easy for an attacker to find the hidden service guard if only one EntryNodes
is specified since for that guard, the HS will refuse to build a rendezvous
circuit to it.
For now, the best solution is to stop tor to allow a single EntryNodes for
an hidden service.
Fixes #14917
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Wed, 2 Sep 2015 13:59:50 +0000 (09:59 -0400)]
Let recent relays run with the chutney sandbox.
Fixes 16965
Nick Mathewson [Wed, 2 Sep 2015 13:59:22 +0000 (09:59 -0400)]
Let bridge authorities run under the sandbox
(found thanks to teor's chutney haxx)
Nick Mathewson [Wed, 2 Sep 2015 13:17:43 +0000 (09:17 -0400)]
Add test_keygen.sh to dist
Nick Mathewson [Wed, 2 Sep 2015 13:17:24 +0000 (09:17 -0400)]
Merge remote-tracking branch 'teor/autodetect-chutney-path'
Nick Mathewson [Wed, 2 Sep 2015 13:15:16 +0000 (09:15 -0400)]
Merge remote-tracking branch 'teor/master'
Nick Mathewson [Wed, 2 Sep 2015 13:05:55 +0000 (09:05 -0400)]
Merge remote-tracking branch 'dgoulet/bug15254_027_01'
Nick Mathewson [Wed, 2 Sep 2015 12:51:24 +0000 (08:51 -0400)]
correct the doc for find_rp_for_intro.
Thanks to Roger for spotting this!
Nick Mathewson [Wed, 2 Sep 2015 12:50:26 +0000 (08:50 -0400)]
Remove remaining references to "nulterminate" in comments
Thanks to Roger for spotting this!
Nick Mathewson [Wed, 2 Sep 2015 12:45:12 +0000 (08:45 -0400)]
Include dns_structs.h in tarball
David Goulet [Wed, 2 Sep 2015 11:52:56 +0000 (13:52 +0200)]
Enable hidden service statistics by default
HiddenServiceStatistics option is now set to "1" by default.
Fixes #15254
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Tue, 1 Sep 2015 18:36:25 +0000 (14:36 -0400)]
Remove the unused "nulterminate" option to buf_pullup()
I was going to add a test for this, but I realized that it had no
users. So, removed.
Mike Perry [Fri, 27 Mar 2015 19:57:37 +0000 (12:57 -0700)]
Bug 15482: Don't abandon circuits that are still in use for browsing.
Only applies to connections with SOCKS auth set, so that non-web Tor
activity is not affected.
Simpler version of Nick's patch because the randomness worried me, and I'm not
otherwise sure why we want a max here.
teor (Tim Wilson-Brown) [Tue, 1 Sep 2015 14:52:30 +0000 (00:52 +1000)]
Test bridges and hidden services in make test-network
Make "bridges+hs" the default test network. This tests almost all
tor functionality during make test-network, while allowing tests
to succeed on non-IPv6 systems.
Requires chutney commit
396da92 in test-network-bridges-hs.
Closes tickets 16945 (tor), 16946 (chutney) . Patches by "teor".
Nick Mathewson [Tue, 1 Sep 2015 14:42:47 +0000 (10:42 -0400)]
Merge branch 'ticket16901'
Nick Mathewson [Tue, 1 Sep 2015 13:55:20 +0000 (09:55 -0400)]
missing semicolon
Nick Mathewson [Tue, 1 Sep 2015 13:52:46 +0000 (09:52 -0400)]
Fix an always-false check with an assertion
In validate_recommended_package_line, at this point in the function,
n_entries is always >= 1. Coverity doesn't like us checking it for
0.
CID
1268063 .
Nick Mathewson [Tue, 1 Sep 2015 13:50:33 +0000 (09:50 -0400)]
Fix a false-positive in coverity scan with an assertion
CID
1301373
Nick Mathewson [Tue, 1 Sep 2015 13:47:51 +0000 (09:47 -0400)]
Fix code for checking expired certificates on load
Fixes CID
1306915 , which noticed that the check was dead.
Nick Mathewson [Tue, 1 Sep 2015 13:43:37 +0000 (09:43 -0400)]
Add a comment about CID
1311630 and why we won't worry about it.
Nick Mathewson [Tue, 1 Sep 2015 13:30:48 +0000 (09:30 -0400)]
Simplify API for find_rp_for_intro()
The function now unconditionally allocates a new extend_info_t.
This should convince coverity that we're not leaking memory.
(CID
1311875 )
Nick Mathewson [Tue, 1 Sep 2015 13:19:00 +0000 (09:19 -0400)]
Merge remote-tracking branch 'sebastian/channel_free_list'
Sebastian Hahn [Sun, 30 Aug 2015 14:32:51 +0000 (16:32 +0200)]
Include doc/TUNING in our release tarballs
Sebastian Hahn [Sat, 29 Aug 2015 15:00:51 +0000 (17:00 +0200)]
properly delete current channel in channel_free_list
channel_unregister() removes channels from the current smartlist while
we're in a SMORTLIST_FOREACH loop. This only works by accident.
Nick Mathewson [Tue, 1 Sep 2015 13:02:12 +0000 (09:02 -0400)]
Fail in configure when openssl is too old. #16901.
rl1987 [Sun, 30 Aug 2015 18:57:24 +0000 (21:57 +0300)]
Remove -F from tor-resolve(1) usage message.
teor (Tim Wilson-Brown) [Thu, 27 Aug 2015 00:31:35 +0000 (10:31 +1000)]
Autodetect CHUTNEY_PATH if chutney is next to tor
If the chutney and tor sources are side-by-side in the same
parent directory, autodetect the chutney path.
Closes ticket 16903. Patch by "teor".
Nick Mathewson [Wed, 26 Aug 2015 15:41:25 +0000 (11:41 -0400)]
Fix some memory issues in test_dns.c
Nick Mathewson [Wed, 26 Aug 2015 15:38:44 +0000 (11:38 -0400)]
Resolve check-spaces in test_dns.c
Nick Mathewson [Wed, 26 Aug 2015 15:38:04 +0000 (11:38 -0400)]
fix compilation warnings in test_dns.c
Nick Mathewson [Wed, 26 Aug 2015 15:32:40 +0000 (11:32 -0400)]
Merge remote-tracking branch 'rl1987/test_dns_resolve_rebased'
Nick Mathewson [Tue, 25 Aug 2015 15:53:20 +0000 (11:53 -0400)]
Document callgraph analysis code
Nick Mathewson [Tue, 25 Aug 2015 15:46:29 +0000 (11:46 -0400)]
Make test_checkdir.c dirent include consistent with other files
Nick Mathewson [Tue, 25 Aug 2015 13:37:52 +0000 (09:37 -0400)]
Expand changes file
Andreas Stieger [Sun, 23 Aug 2015 23:04:44 +0000 (01:04 +0200)]
Log malformed hostnames in socks5 request respecting SafeLogging
rl1987 [Sun, 23 Aug 2015 13:06:41 +0000 (16:06 +0300)]
Adding changes file.
rl1987 [Wed, 22 Jul 2015 13:46:44 +0000 (16:46 +0300)]
Unit test dns_resolve(), dns_clip_ttl(), dns_get_expiry_ttl().
Nick Mathewson [Fri, 21 Aug 2015 16:03:05 +0000 (12:03 -0400)]
Is this the syntax that will make freebsd make happy?
Nick Mathewson [Fri, 21 Aug 2015 15:10:49 +0000 (11:10 -0400)]
Do not try to chmod test_keygen.sh: It is not generated by configure.
Nick Mathewson [Fri, 21 Aug 2015 14:37:01 +0000 (10:37 -0400)]
Merge branch 'workqueue_squashed'
Sebastian Hahn [Thu, 20 Aug 2015 18:33:38 +0000 (20:33 +0200)]
Remove tor-fw-helper more thoroughly
Sebastian Hahn [Thu, 20 Aug 2015 18:28:47 +0000 (20:28 +0200)]
Fix a bunch of check-spaces complaints
Sebastian Hahn [Thu, 20 Aug 2015 18:42:19 +0000 (20:42 +0200)]
Observe workqueue_reply_t in check-spaces
Sebastian Hahn [Thu, 20 Aug 2015 14:48:13 +0000 (16:48 +0200)]
Ensure worker threads actually exit when it is time
This includes a small refactoring to use a new enum (workqueue_reply_t)
for the return values instead of just ints.
Nick Mathewson [Thu, 20 Aug 2015 22:42:20 +0000 (18:42 -0400)]
Rename EVENT_SIGNAL -> EVENT_GOT_SIGNAL
This avoids a conflict with a macro decl from libevent 1.x.
Fixes bug 16867; bug not in any released Tor.
Sebastian Hahn [Thu, 20 Aug 2015 17:57:08 +0000 (19:57 +0200)]
New testcase exposing bug during threadpool shutdown
We don't want to accept any work after one of our worker functions has
returned WQ_RPL_SHUTDOWN. This testcase currently fails, because we do
not actually stop any of the worker threads.
Nick Mathewson [Tue, 18 Aug 2015 15:36:19 +0000 (11:36 -0400)]
Reload
Ed25519 keys on sighup.
Closes ticket 16790.
Nick Mathewson [Wed, 19 Aug 2015 17:36:59 +0000 (13:36 -0400)]
Merge branch 'ed25519_keygen_squashed'
Nick Mathewson [Tue, 11 Aug 2015 15:21:03 +0000 (11:21 -0400)]
changes file for ed25519_keygen branch
Nick Mathewson [Mon, 10 Aug 2015 15:04:53 +0000 (11:04 -0400)]
More log messages for keygen problems
Nick Mathewson [Mon, 10 Aug 2015 14:35:47 +0000 (10:35 -0400)]
Explain better why we are about to load the master key.
Nick Mathewson [Mon, 10 Aug 2015 14:02:33 +0000 (10:02 -0400)]
Don' call failure to get keys a bug; it's possible now.
Nick Mathewson [Fri, 7 Aug 2015 19:22:23 +0000 (15:22 -0400)]
When we infer the master key from the certificate, save it to disk.
Nick Mathewson [Thu, 6 Aug 2015 15:58:50 +0000 (11:58 -0400)]
Document test_keygen.sh a little more
Nick Mathewson [Thu, 6 Aug 2015 15:57:00 +0000 (11:57 -0400)]
Add test_keygen tests for all log outputs; improve keygen outputs.
Nick Mathewson [Thu, 6 Aug 2015 15:30:04 +0000 (11:30 -0400)]
Suppress fingerprint display in test_keygen.sh
Nick Mathewson [Thu, 6 Aug 2015 15:27:25 +0000 (11:27 -0400)]
Integreate test_keygen.sh into 'make check'.
Nick Mathewson [Thu, 6 Aug 2015 15:12:44 +0000 (11:12 -0400)]
Resolve failing test_keygen tests.
Nick Mathewson [Thu, 6 Aug 2015 01:09:21 +0000 (21:09 -0400)]
Checkpoint work on
ed25519 keygen improvements.
Needs changes file, documentation, test integration, more tests.
Nick Mathewson [Tue, 18 Aug 2015 13:53:50 +0000 (09:53 -0400)]
Merge remote-tracking branch 'teor/feature14882-TestingDirAuthVoteIsStrict-v3'
Nick Mathewson [Tue, 18 Aug 2015 13:47:36 +0000 (09:47 -0400)]
Update to latest trunnel