]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 30 Jul 2018 12:17:25 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Mon, 30 Jul 2018 12:17:25 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 30 Jul 2018 12:17:24 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
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.
Nick Mathewson [Fri, 20 Jul 2018 15:02:05 +0000 (11:02 -0400)]
Tweak assertion in get_time_period_length() for coverity
This is another attempt to fix
1437668 . The assertion here should
be safe, since the rules of networkstatus_get_param() keep the value
it returns in range.
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 20 Jul 2018 14:42:29 +0000 (10:42 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Fri, 20 Jul 2018 14:42:23 +0000 (10:42 -0400)]
Merge branch 'ticket26647_032' into maint-0.3.2
Nick Mathewson [Thu, 19 Jul 2018 18:34:26 +0000 (14:34 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 19 Jul 2018 18:33:18 +0000 (14:33 -0400)]
Fix linking when dirauth module is disabled.
Bugfix on
dcee4d4c9cc7d98e5ae8e913c73a3afc41753c64 , bug not in any
released Tor.
Nick Mathewson [Thu, 19 Jul 2018 16:22:39 +0000 (12:22 -0400)]
Merge remote-tracking branch 'ahf-github/bugs/26780'
Nick Mathewson [Thu, 19 Jul 2018 16:20:13 +0000 (12:20 -0400)]
Merge branch 'bug26712'
Nick Mathewson [Thu, 19 Jul 2018 12:32:00 +0000 (08:32 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 19 Jul 2018 12:31:07 +0000 (08:31 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 19 Jul 2018 12:31:07 +0000 (08:31 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 19 Jul 2018 12:30:59 +0000 (08:30 -0400)]
Merge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2
Roger Dingledine [Thu, 19 Jul 2018 01:23:35 +0000 (21:23 -0400)]
wrap a multi-line if body in { } before somebody gets hurt
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 20:39:22 +0000 (16:39 -0400)]
Changes file for bug 26787
Nick Mathewson [Wed, 18 Jul 2018 20:39:11 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Mon, 16 Jul 2018 11:53:43 +0000 (07:53 -0400)]
Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787
Nick Mathewson [Wed, 18 Jul 2018 20:30:11 +0000 (16:30 -0400)]
Merge remote-tracking branch 'teor/ticket26702-atomically'
Nick Mathewson [Wed, 18 Jul 2018 20:20:31 +0000 (16:20 -0400)]
Add two more dependencies in build.rs
Nick Mathewson [Wed, 18 Jul 2018 20:18:25 +0000 (16:18 -0400)]
Use the "testing" variant of several C libraries in build.rs
Nick Mathewson [Wed, 18 Jul 2018 20:12:29 +0000 (16:12 -0400)]
Merge remote-tracking branch 'isis/bug26398'
Nick Mathewson [Wed, 18 Jul 2018 19:12:18 +0000 (15:12 -0400)]
Add some missing includes and struct declarations.
Nick Mathewson [Wed, 18 Jul 2018 19:09:28 +0000 (15:09 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 18 Jul 2018 19:08:57 +0000 (15:08 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 18 Jul 2018 19:04:14 +0000 (15:04 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 18 Jul 2018 19:03:27 +0000 (15:03 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 19:01:03 +0000 (15:01 -0400)]
Merge branch 'bug26485_029_squashed' into maint-0.2.9
Nick Mathewson [Tue, 17 Jul 2018 19:39:31 +0000 (15:39 -0400)]
Add a test for format_recommended_version_list.
Nick Mathewson [Wed, 11 Jul 2018 15:24:55 +0000 (11:24 -0400)]
Warn when an authority has voted for a version with a space in it.
Another way to try to prevent a recurrence of 26485.
Nick Mathewson [Wed, 11 Jul 2018 15:14:48 +0000 (11:14 -0400)]
Warn the directory authority operator if their versions list is bogus
Prevents bug 26485; bugfix on 0.1.1.6-alpha.
Nick Mathewson [Wed, 18 Jul 2018 17:20:23 +0000 (13:20 -0400)]
Merge remote-tracking branch 'teor/ticket26852'
Nick Mathewson [Wed, 18 Jul 2018 13:38:04 +0000 (09:38 -0400)]
Merge branch 'ulimit_when_crashing'
teor [Wed, 18 Jul 2018 02:37:12 +0000 (12:37 +1000)]
SKIP test_key_expiration.sh on Windows until the underlying issue is resolved
Skip an unreliable key expiration test on Windows, until the underlying
issue in bug 26076 is resolved.
Fixes bug 26853; bugfix on 0.3.2.1-alpha.
teor [Wed, 18 Jul 2018 02:06:48 +0000 (12:06 +1000)]
doc: Document Appveyor and Jenkins in doc/HACKING/HelpfulTools.md
Closes 26852.
teor [Wed, 18 Jul 2018 01:14:18 +0000 (11:14 +1000)]
doc: Explain how to avoid inconsistent reads on V3BandwidthsFile
Closes 26702.
Nick Mathewson [Tue, 17 Jul 2018 20:19:32 +0000 (16:19 -0400)]
Merge branch 'bug25552_ope_squashed'
George Kadianakis [Mon, 16 Jul 2018 12:28:11 +0000 (15:28 +0300)]
Improve a log message.
George Kadianakis [Tue, 17 Jul 2018 15:00:18 +0000 (11:00 -0400)]
Fix time source bug in sr_state_get_start_time_of_current_protocol_run().
The following bug was causing many issues for this branch in chutney:
In sr_state_get_start_time_of_current_protocol_run() we were using the
consensus valid-after to calculate beginning_of_current_round, but we were
using time(NULL) to calculate the current_round slot. This was causing time
sync issues when the consensus valid-after and time(NULL) were disagreeing on
what the current round is. Our fix is to use the consensus valid-after in both
places.
This also means that we are not using 'now' (aka time(NULL)) anymore in that
function, and hence we can remove that argument from the function (and its
callers). I'll do this in the next commit so that we keep things separated.
Furthermore, we fix a unittest that broke.
George Kadianakis [Thu, 12 Jul 2018 13:51:31 +0000 (16:51 +0300)]
Set revision counter before uploading, not during building.
We only build a descriptor once, and we just re-encode it (and change its intro
points if needed) before uploading.
Hence we should set the revision counter before uploading, not during building.
George Kadianakis [Tue, 10 Jul 2018 17:10:22 +0000 (20:10 +0300)]
Make the OPE scheme return CRYPTO_OPE_ERROR on error.
Instead of UINT64_MAX.
George Kadianakis [Tue, 17 Jul 2018 16:03:18 +0000 (12:03 -0400)]
Compute OPE cipher structure only when needed.
The OPE cipher is tied to the current blinded key which is tied to the current
time period. Hence create the OPE cipher structure when we create a new
descriptor (and build its blinded key).
George Kadianakis [Thu, 14 Jun 2018 12:53:31 +0000 (15:53 +0300)]
Add changes file.
George Kadianakis [Thu, 14 Jun 2018 12:51:00 +0000 (15:51 +0300)]
Remove now useless rev counter state file code.
We are not using the state file for rev counters anymore, we just generate them
on the fly!
George Kadianakis [Thu, 14 Jun 2018 12:38:46 +0000 (15:38 +0300)]
Fix up some unittests by being more careful with the local time.
Now that the rev counter depends on the local time, we need to be more careful
in the unittests. Some unittests were breaking because they were using
consensus values from 1985, but they were not updating the local time
appropriately. That was causing the OPE module to complain that it was trying
to encrypt insanely large values.
George Kadianakis [Thu, 14 Jun 2018 12:38:14 +0000 (15:38 +0300)]
Use approx_time() instead of time(NULL) in some HS functions.
These were breaking our unittests.
George Kadianakis [Thu, 14 Jun 2018 12:35:59 +0000 (15:35 +0300)]
Compute the description revision counter using the OPE scheme.
To do so for a given descriptor, we use the "seconds since the SR protocol run"
started, for the SRV that is relevant to this descriptor. This is guaranteed to
be a positive value (since we need an SRV to be able to build a descriptor),
and it's also guaranteed to be a small value (since SRVs stop being listed on a
consensus after 48 hours).
We cannot use the "seconds since the time period started", because for the next
descriptor we use the next time period, so the timestamp would end up negative.
See [SERVICEUPLOAD] from rend-spec-v3.txt for more details.
To do so, we have to introduce a new `is_current` argument to a bunch of
functions, because to use "seconds since the SR protocol run" we need to know
if we are building the current or the next descriptor, since we use a different
SRV for each descriptor.
George Kadianakis [Thu, 14 Jun 2018 12:25:43 +0000 (15:25 +0300)]
Introduce useful SRV funcs (start time of prev protocol run)
George Kadianakis [Thu, 14 Jun 2018 12:23:09 +0000 (15:23 +0300)]
Increase OPE_INPUT_MAX.
Nick Mathewson [Thu, 10 May 2018 12:46:36 +0000 (08:46 -0400)]
Implementation for a simple order-preserving encryption scheme.
This is meant for use when encrypting the current time within the
period in order to get a monotonically increasing revision counter
without actually revealing our view of the time.
This scheme is far from the most state-of-the-art: don't use it for
anything else without careful analysis by somebody much smarter than
I am.
See ticket #25552 for some rationale for this logic.
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.4'
teor [Tue, 17 Jul 2018 01:24:02 +0000 (11:24 +1000)]
SKIP test_keygen.sh on Windows until the underlying issue is resolved
Skip an unreliable key generation test on Windows, until the underlying
issue in bug 26076 is resolved.
Fixes bug 26830; bugfix on 0.2.7.3-rc.
Nick Mathewson [Tue, 17 Jul 2018 18:47:56 +0000 (14:47 -0400)]
Merge remote-tracking branch 'rl1987/bug26789'
Nick Mathewson [Tue, 17 Jul 2018 18:46:16 +0000 (14:46 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Tue, 17 Jul 2018 18:33:31 +0000 (14:33 -0400)]
Merge remote-tracking branch 'ahf-github/bugs/26437'
rl1987 [Mon, 16 Jul 2018 10:49:40 +0000 (10:49 +0000)]
Fix build to work with --disable-unittests again
David Goulet [Mon, 16 Jul 2018 18:44:45 +0000 (14:44 -0400)]
Merge remote-tracking branch 'pastly/issue26703'
Nick Mathewson [Mon, 16 Jul 2018 11:53:43 +0000 (07:53 -0400)]
Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787
Nick Mathewson [Mon, 16 Jul 2018 11:51:11 +0000 (07:51 -0400)]
Avoid a use-after-null-check in proto_socks.c
Coverity rightly complains that early in the function we're checking
whether username is NULL, and later we're passing it unconditionally
to strlen().
Fixes CID
1437967 . Bug not in any released Tor.
rl1987 [Mon, 16 Jul 2018 10:49:40 +0000 (10:49 +0000)]
Fix build to work with --disable-unittests again
Nick Mathewson [Sun, 15 Jul 2018 21:07:20 +0000 (17:07 -0400)]
Merge branch 'socks_trunnel4_squashed_merged'
Nick Mathewson [Fri, 13 Jul 2018 22:30:17 +0000 (18:30 -0400)]
Merge remote-tracking branch 'tor-github/pr/179'
Roger Dingledine [Fri, 13 Jul 2018 20:58:46 +0000 (16:58 -0400)]
Faravahar hasn't been voting on versions for a while now
Taylor Yu [Fri, 13 Jul 2018 17:34:23 +0000 (12:34 -0500)]
Add changes file for ticket 26492
Alexander Færøy [Thu, 21 Jun 2018 02:32:42 +0000 (04:32 +0200)]
Fix forking tests on Windows when there is a space in the path.
See: https://bugs.torproject.org/26437
Alexander Færøy [Wed, 11 Jul 2018 14:19:56 +0000 (16:19 +0200)]
Add checks in get_net_param_from_list() for valid output domain.
This patch adds two assertions in get_net_param_from_list() to ensure
that the `res` value is correctly within the range of the output domain.
Hopefully fixes Coverity CID #
1415721 , #
1415722 , and #
1415723 .
See: https://bugs.torproject.org/26780
Roger Dingledine [Fri, 13 Jul 2018 01:52:54 +0000 (21:52 -0400)]
forward-port the changelog stanzas to 0.3.5 too
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 12 Jul 2018 18:20:56 +0000 (14:20 -0400)]
SOCKS: Always free username/password before setting them.
This fixes a memory leak found by fuzzing.
Nick Mathewson [Thu, 12 Jul 2018 18:20:46 +0000 (14:20 -0400)]
Add fuzzing wrapper for fetch_from_buf_socks()
Roger Dingledine [Thu, 12 Jul 2018 18:12:13 +0000 (14:12 -0400)]
put new bridge auth Serge into place
The "Bifroest" bridge authority has been retired; the new bridge authority
is "Serge", and it is operated by George from the TorBSD project.
Closes ticket 26771.
Nick Mathewson [Thu, 12 Jul 2018 15:47:25 +0000 (11:47 -0400)]
Merge branch 'socks_trunnel4_squashed' into socks_trunnel4_squashed_merged
rl1987 [Tue, 26 Jun 2018 17:48:35 +0000 (20:48 +0300)]
Use constants for possible values of first octet
rl1987 [Tue, 26 Jun 2018 16:31:26 +0000 (19:31 +0300)]
Remove prop229 stuff from socks5.trunnel
rl1987 [Wed, 23 May 2018 12:53:07 +0000 (14:53 +0200)]
Add changes file
rl1987 [Wed, 23 May 2018 12:38:13 +0000 (14:38 +0200)]
Rework socks_request_set_socks5_error() with trunnel
rl1987 [Wed, 23 May 2018 11:08:47 +0000 (13:08 +0200)]
Document new code
rl1987 [Wed, 23 May 2018 09:44:43 +0000 (11:44 +0200)]
Fix buf_t advancement in fetch_buf_from_socks
We pullup 512 bytes of input to make sure that at least one SOCKS
message ends up in head of linked list
rl1987 [Tue, 22 May 2018 14:28:15 +0000 (16:28 +0200)]
Make a distinction between truncated message and expecting more messages
rl1987 [Tue, 22 May 2018 11:59:07 +0000 (13:59 +0200)]
Fix whitespace/formatting
rl1987 [Tue, 22 May 2018 11:53:34 +0000 (13:53 +0200)]
Remove legacy SOCKS5 phase 2 code
rl1987 [Tue, 22 May 2018 10:23:32 +0000 (12:23 +0200)]
Add CMD_RESOLVE to socks5_client_request
rl1987 [Mon, 21 May 2018 15:33:28 +0000 (17:33 +0200)]
Second phase of SOCKS5
rl1987 [Mon, 21 May 2018 10:55:20 +0000 (12:55 +0200)]
Remove legacy RFC1929 code