]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Fri, 21 Sep 2018 13:35:23 +0000 (09:35 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
David Goulet [Fri, 14 Sep 2018 14:56:34 +0000 (10:56 -0400)]
hs-v3: Don't BUG() on directory permission check failure
In hs_config.c, we do validate the permission of the hidden service directory
but we do not try to create it. So, in the event that the directory doesn't
exists, we end up in the loading key code path which checks for the
permission and possibly creates the directory. On failure, don't BUG() since
there is a perfectly valid use case for that function to fail.
Fixes #27335
Signed-off-by: David Goulet <dgoulet@torproject.org>
cypherpunks [Sun, 26 Aug 2018 01:20:44 +0000 (01:20 +0000)]
protover: reject invalid protocol names
The spec only allows the characters [A-Za-z0-9-].
Fix on
b2b2e1c7f24d9b65059e3d089768d6c49ba4f58f .
Fixes #27316; bugfix on 0.2.9.4-alpha.
Nick Mathewson [Thu, 13 Sep 2018 15:46:04 +0000 (11:46 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Thu, 13 Sep 2018 15:45:58 +0000 (11:45 -0400)]
Merge branch 'bug27658_029' into maint-0.2.9
Nick Mathewson [Wed, 12 Sep 2018 12:57:18 +0000 (08:57 -0400)]
Check waitpid return value and exit status in tinytest.c
It's possible for a unit test to report success via its pipe, but to
fail as it tries to clean up and exit. Notably, this happens on a
leak sanitizer failure.
Fixes bug 27658; bugfix on 0.2.2.4-alpha when tinytest was
introduced.
Nick Mathewson [Tue, 11 Sep 2018 17:09:21 +0000 (13:09 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 11 Sep 2018 17:09:04 +0000 (13:09 -0400)]
Merge remote-tracking branch 'teor/ticket27252-032' into maint-0.3.2
Nick Mathewson [Tue, 11 Sep 2018 17:08:57 +0000 (13:08 -0400)]
Merge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9
Nick Mathewson [Tue, 11 Sep 2018 16:04:55 +0000 (12:04 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Karsten Loesing [Tue, 11 Sep 2018 07:26:59 +0000 (09:26 +0200)]
Update geoip and geoip6 to the September 6 2018 database.
Nick Mathewson [Mon, 10 Sep 2018 13:41:39 +0000 (09:41 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
"ours" to avoid version bump.
Nick Mathewson [Mon, 10 Sep 2018 13:41:34 +0000 (09:41 -0400)]
Bump to 0.3.2.12-dev
Nick Mathewson [Mon, 10 Sep 2018 13:41:22 +0000 (09:41 -0400)]
Bump to 0.2.9.17-dev
Nick Mathewson [Fri, 7 Sep 2018 19:11:49 +0000 (15:11 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
"ours" to avoid bump
Nick Mathewson [Fri, 7 Sep 2018 19:11:07 +0000 (15:11 -0400)]
Bump to 0.3.2.12
Nick Mathewson [Fri, 7 Sep 2018 19:10:49 +0000 (15:10 -0400)]
Bump to 0.2.9.17
Nick Mathewson [Fri, 7 Sep 2018 13:15:52 +0000 (09:15 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 7 Sep 2018 13:15:15 +0000 (09:15 -0400)]
Merge branch 'ticket27344_029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:57:14 +0000 (08:57 -0400)]
Tell openssl to build its TLS contexts with security level 1
Fixes bug 27344, where we'd break compatibility with old tors by
rejecting RSA1024 and DH1024.
Nick Mathewson [Fri, 7 Sep 2018 12:46:45 +0000 (08:46 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 7 Sep 2018 12:46:41 +0000 (08:46 -0400)]
Merge remote-tracking branch 'teor/bug27461-032' into maint-0.3.2
Nick Mathewson [Fri, 7 Sep 2018 12:46:35 +0000 (08:46 -0400)]
Merge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:44:39 +0000 (08:44 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 7 Sep 2018 12:44:36 +0000 (08:44 -0400)]
Merge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:42:19 +0000 (08:42 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Fri, 7 Sep 2018 03:00:34 +0000 (13:00 +1000)]
Merge branch 'bug27461-029' into bug27461-032
Fix a minor merge conflict due to an #endif comment.
teor [Fri, 7 Sep 2018 02:58:11 +0000 (12:58 +1000)]
Windows: Stop calling SetProcessDEPPolicy() on 64-bit Windows
It is not supported, and always fails. Some compilers warn about the
function pointer cast on 64-bit Windows.
Fixes bug 27461; bugfix on 0.2.2.23-alpha.
teor [Wed, 5 Sep 2018 11:07:58 +0000 (21:07 +1000)]
hs: Silence a spurious warning in rend_client_send_introduction()
gcc 8 warns that extend_info_t.nickname might be truncated by strncpy().
But it doesn't know that nickname can either contain a hex id, or a
nicknames. hex ids are only used for general and HSDir circuits.
Fixes bug 27463; bugfix on 0.1.1.2-alpha.
teor [Thu, 6 Sep 2018 03:11:23 +0000 (13:11 +1000)]
Windows: Silence a spurious warning in the GetAdaptersAddresses cast
GetProcAddress() returns FARPROC, which is (long long int(*)()) on
64-bit Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx
But GetAdaptersAddresses() is (long unsigned int(*)()), on both 32-bit
and 64-bit Windows:
https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-getadaptersaddresses
So gcc 8 issues a spurious "incompatible function pointer" warning
about the cast to GetAdaptersAddresses_fn_t.
Silence this warning by casting to a void function pointer, before
the cast to GetAdaptersAddresses_fn_t.
This issue is already fixed by 26481 in 0.3.5 and later, by removing
the lookup and cast.
Fixes bug 27465; bugfix on 0.2.3.11-alpha.
Nick Mathewson [Wed, 5 Sep 2018 14:15:42 +0000 (10:15 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 5 Sep 2018 14:14:56 +0000 (10:14 -0400)]
Merge remote-tracking branch 'teor/bug27418-029' into maint-0.2.9
Nick Mathewson [Wed, 5 Sep 2018 13:56:19 +0000 (09:56 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Wed, 5 Sep 2018 03:30:17 +0000 (13:30 +1000)]
Travis: don't call echo with a --flag as the first argument
When we use echo in Travis, don't pass a --flag as the first argument.
Fixes bug 27418; bugfix on 0.3.4.7-rc.
teor [Wed, 5 Sep 2018 03:12:54 +0000 (13:12 +1000)]
Travis: when showing a log fails, keep trying to show other logs
When a Travis build fails, and showing a log fails, keep trying to
show the other logs.
Fixes bug 27453; bugfix on 0.3.4.7-rc.
Nick Mathewson [Wed, 29 Aug 2018 15:17:31 +0000 (11:17 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Fri, 24 Aug 2018 00:25:25 +0000 (10:25 +1000)]
Test: avoid spurious failures in make test-network-all
Before running make test-network-all, delete old logs and test result
files, to avoid spurious failures.
Fixes bug 27295; bugfix on 0.2.7.3-rc.
teor [Fri, 24 Aug 2018 00:20:30 +0000 (10:20 +1000)]
Test: consistently use $(TEST_NETWORK_ALL_LOG_DIR) in Makefile.am
Part of 27295.
teor [Mon, 27 Aug 2018 13:06:04 +0000 (23:06 +1000)]
When running make test-network-all, use the mixed+hs-v2 network
No behaviour change.
A previous fix to chutney removed v3 onion services from the
mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
confusing.
Fixes bug 27345; bugfix on 0.3.2.1-alpha.
Nick Mathewson [Fri, 24 Aug 2018 16:32:06 +0000 (12:32 -0400)]
Merge branch 'ticket27286_032_v2' into maint-0.3.2
Nick Mathewson [Thu, 23 Aug 2018 15:24:39 +0000 (11:24 -0400)]
Update the protocol versions recommendations to remove LinkAuth=1
LinkAuth method 1 is the one where we pull the TLS master secrets
out of the OpenSSL data structures and authenticate them with
RSA. Right now we list method 1 as required for clients and relays.
That's a problem, since we can't reasonably support it with NSS. So
let's remove it as a requirement and a recommendation.
As for method 3: I'd like to recommend it it, but that would make
0.2.9 start warning. Let's not do that till at least some time
after 0.3.5 (the next LTS) is stable.
Closes ticket 27286
Nick Mathewson [Thu, 23 Aug 2018 23:36:45 +0000 (19:36 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Thu, 23 Aug 2018 08:55:39 +0000 (18:55 +1000)]
Silence a compilation warning on MSVC 2017 and clang-cl
test.c no longer uses lround(), so we don't need to declare it,
and we can use math.h for fabs().
Fixes bug 27185; bugfix on 0.2.2.2-alpha.
teor [Thu, 23 Aug 2018 07:24:38 +0000 (17:24 +1000)]
Travis: Skip offline rust builds for Linux gcc
We already do an online rust build for Linux gcc.
Part of 27252.
teor [Thu, 23 Aug 2018 07:23:38 +0000 (17:23 +1000)]
Travis: Only run one online rust build, to reduce network errors
Part of 27252.
teor [Thu, 23 Aug 2018 08:15:55 +0000 (18:15 +1000)]
Merge branch 'ticket27252-029' into ticket27252-032
This commit is already implemented in 0.3.2 and later:
- Travis: Skip a duplicate hardening-off build in Tor 0.2.9
teor [Thu, 23 Aug 2018 08:13:53 +0000 (18:13 +1000)]
Travis: Skip gcc on Linux with default settings
It's redundant, because all the non-default builds use gcc on Linux.
Part of 27252.
teor [Thu, 23 Aug 2018 08:12:36 +0000 (18:12 +1000)]
Travis: make the exclude descriptions shorter
Part of 27252.
teor [Thu, 23 Aug 2018 07:06:53 +0000 (17:06 +1000)]
Travis: Skip a duplicate hardening-off build in Tor 0.2.9
Part of 27252.
teor [Thu, 23 Aug 2018 07:00:42 +0000 (17:00 +1000)]
Travis: skip gcc on OSX, because the default compiler is clang
Part of #27252.
Nick Mathewson [Wed, 22 Aug 2018 13:37:31 +0000 (09:37 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 22 Aug 2018 13:37:26 +0000 (09:37 -0400)]
Mark cert_matches_key as not-intrusive; fix stretch compilation.
Nick Mathewson [Wed, 22 Aug 2018 00:03:46 +0000 (20:03 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 22 Aug 2018 00:03:41 +0000 (20:03 -0400)]
Merge remote-tracking branch 'teor/travis-osx-032' into maint-0.3.2
Nick Mathewson [Wed, 22 Aug 2018 00:03:19 +0000 (20:03 -0400)]
Merge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9
Nick Mathewson [Tue, 21 Aug 2018 23:16:40 +0000 (19:16 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Mon, 20 Aug 2018 21:43:41 +0000 (17:43 -0400)]
Rewrite test_tortls_cert_matches_key()
Unlike the old test, this test no will no longer mess around with
the forbidden internals of any openssl data structures.
Additionally, it verifies several other behaviors of
tor_tls_cert_matches_key() that we had wanted to verify, such as
the possibility of the certificate's key not matching.
Fixes bug 27226; bugfix on 0.2.5.1-alpha.
Nick Mathewson [Mon, 20 Aug 2018 21:42:38 +0000 (17:42 -0400)]
Use our x509 wrapper code in tor_tls_cert_matches_key()
This allows us to mock our own tor_tls_get_peer_certificate()
function in order to test ..cert_matches_key(), which will in turn
allow us to simplify test_tortls_cert_matches_key() considerably.
Prep work for the fix for 27226.
George Kadianakis [Sat, 28 Jul 2018 15:31:46 +0000 (17:31 +0200)]
Keep descriptor rotation time after HUP occurs.
teor [Thu, 16 Aug 2018 08:58:47 +0000 (18:58 +1000)]
Rust: Say that we support rust stable in GettingStartedRust.md
In 24765, we said that we supported rust stable in CodingStandardsRust.md.
But we left GettingStartedRust.md saying that we support rust nightly.
Closes 27160.
Nick Mathewson [Wed, 15 Aug 2018 16:20:57 +0000 (12:20 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 15 Aug 2018 16:20:53 +0000 (12:20 -0400)]
Merge remote-tracking branch 'github/bug27081_029' into maint-0.2.9
teor [Fri, 10 Aug 2018 09:05:49 +0000 (19:05 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Merge asciidoc from 029 with rust from 032.
teor [Fri, 10 Aug 2018 08:26:33 +0000 (18:26 +1000)]
Travis: add a missing macOS asciidoc env var
teor [Fri, 10 Aug 2018 06:31:35 +0000 (16:31 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Simple merge to resolve order conflicts.
teor [Fri, 10 Aug 2018 06:30:21 +0000 (16:30 +1000)]
Travis: Improve Rust comments
teor [Fri, 10 Aug 2018 06:24:31 +0000 (16:24 +1000)]
Travis: add a missing macOS asciidoc dependency
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)]
Travis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)]
Changes file for Travis: enable macOS builds
teor [Fri, 10 Aug 2018 01:26:53 +0000 (11:26 +1000)]
Changes file for Rust: backport src/test/test_rust.sh from master
teor [Thu, 9 Aug 2018 05:41:57 +0000 (15:41 +1000)]
Travis: Use cargo cache
Closes ticket 26952.
teor [Fri, 10 Aug 2018 01:22:36 +0000 (11:22 +1000)]
Fix $abs_top_srcdir in test_rust.sh
Consistently use ../../.. as a fallback for $abs_top_srcdir in
test_rust.sh.
Fixes bug 27093; bugfix on 0.3.4.3-alpha.
teor [Fri, 10 Aug 2018 01:00:46 +0000 (11:00 +1000)]
Stop setting $CARGO_HOME
cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default.
Fixes bug 26497; bugfix on 0.3.1.5-alpha.
teor [Fri, 10 Aug 2018 01:09:18 +0000 (11:09 +1000)]
Rust: backport src/test/test_rust.sh from master
Preparation for 26497.
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)]
Travis: fix a typo
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)]
Travis: fix a typo
teor [Thu, 9 Aug 2018 12:52:51 +0000 (22:52 +1000)]
Travis: add rust cargo offline mode
Backports parts of the 0.3.3 travis config.
Part of 24629.
teor [Thu, 9 Aug 2018 12:32:20 +0000 (22:32 +1000)]
Travis: add rust cargo online mode
Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.
Also:
* build rust on clang and gcc, Linux and macOS
* build combinations of non-default options on gcc Linux
* exclude broken builds
* log the rustup version
Part of 24629.
Nick Mathewson [Thu, 9 Aug 2018 12:47:24 +0000 (08:47 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Thu, 9 Aug 2018 09:33:28 +0000 (19:33 +1000)]
Travis: add lzma and zstd, where available
Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.
Part of 24629, also fixes 27090.
teor [Thu, 9 Aug 2018 12:20:29 +0000 (22:20 +1000)]
Merge branch 'travis-osx-029' into travis-osx-032
Replace 032 .travis.yml with 029 .travis.yml.
Subsequent commits will restore 032 functionality.
teor [Thu, 9 Aug 2018 12:16:28 +0000 (22:16 +1000)]
Travis: list installed package versions before building
Part of 24629.
teor [Thu, 9 Aug 2018 08:29:29 +0000 (18:29 +1000)]
Travis: run an asciidoc build
Implements 27087.
teor [Thu, 9 Aug 2018 05:40:27 +0000 (15:40 +1000)]
Travis: Use ccache
Part of ticket 26952.
teor [Thu, 9 Aug 2018 07:44:11 +0000 (17:44 +1000)]
Travis: make macOS builds work for Tor 0.2.9
Tor 0.2.9 needs extra help to find OpenSSL on macOS.
Part of 24629.
teor [Thu, 9 Aug 2018 07:06:13 +0000 (17:06 +1000)]
Travis: create configure flags once, then echo the flags
Creating the configure flags once avoids inconsistent flags
between configure and distcheck configure.
Echoing the flags helps developers work out what configure is
doing.
(Backported to 0.2.9 and later as a precaution.)
Fixes 27088 on 0.3.4.1-alpha, adds logging in previous releases.
teor [Thu, 9 Aug 2018 08:03:18 +0000 (18:03 +1000)]
Travis: enable macOS builds
Also:
* explain why we don't install zlib
Part of 24629.
teor [Thu, 9 Aug 2018 06:42:05 +0000 (16:42 +1000)]
Travis: Rewrite .travis.yml
Build on all compilers:
* default options + hardening
Build on gcc:
* coverage (+ no hardening)
* distcheck
* no hardening
Add some extra logging:
* tail config.log on failure
(config.log is too long for travis to render)
Put the config in a more logical order
* Sort config items in chronological order
* Put related items together
Part of 24629.
Karsten Loesing [Thu, 9 Aug 2018 07:44:38 +0000 (09:44 +0200)]
Update geoip and geoip6 to the August 7 2018 database.
Taylor Yu [Thu, 28 Jun 2018 19:43:31 +0000 (14:43 -0500)]
Add more optional packages to Travis
Apparently we weren't building with either libcap or libseccomp on
Travis. Install libcap-dev and libseccomp-dev in .travis.yml. Closes
ticket 26560.
Nick Mathewson [Wed, 8 Aug 2018 13:56:51 +0000 (09:56 -0400)]
Don't search for -lpthread on Windows
If we're building for Windows, we want to use windows threads no
matter what, and we don't want to link a pthread library even if it
is present. Fixes bug 27081; bugfix on
1790dc67607799a in 0.1.0.1-rc.
Nick Mathewson [Wed, 8 Aug 2018 13:26:22 +0000 (09:26 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 8 Aug 2018 13:26:21 +0000 (09:26 -0400)]
Changes file for 25440
Daniel Pinto [Tue, 17 Apr 2018 00:31:49 +0000 (01:31 +0100)]
Fix crash when calling openat with sandbox enabled #25440
The seccomp rule for the openat syscall checks for the AT_FDCWD
constant. Because this constant is usually a negative value, a
cast to unsigned int is necessary to make sure it does not get
converted to uint64_t used by seccomp.
More info on:
https://github.com/seccomp/libseccomp/issues/69#issuecomment-
273805980
Nick Mathewson [Fri, 3 Aug 2018 11:33:45 +0000 (07:33 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 3 Aug 2018 11:33:39 +0000 (07:33 -0400)]
Merge branch 'fix_nonstandard_malloc_029' into maint-0.2.9
Nick Mathewson [Mon, 30 Jul 2018 12:44:40 +0000 (08:44 -0400)]
Merge remote-tracking branch 'teor/bug26924_032' into maint-0.3.2
Taylor Yu [Thu, 26 Jul 2018 17:32:34 +0000 (12:32 -0500)]
Don't disable an unsupported compiler warning
Conditionalize the pragma that temporarily disables
-Wunused-const-variable. Some versions of gcc don't support it. We
need to do this because of an apparent bug in some libzstd headers.
Fixes bug 26785; bugfix on 0.3.2.11.
teor [Wed, 25 Jul 2018 04:39:31 +0000 (14:39 +1000)]
Improve connection auth logging
Improve the log message when connection initiators fail to authenticate
direct connections to relays.
Fixes bug 26927; bugfix on 0.3.0.1-alpha.
teor [Wed, 25 Jul 2018 04:33:10 +0000 (14:33 +1000)]
Merge branch 'bug26924_029' into bug26924_032