]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
6 years agoMerge branch 'maint-0.4.1'
George Kadianakis [Tue, 11 Jun 2019 10:48:16 +0000 (13:48 +0300)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'tor-github/pr/1065' into maint-0.4.1
George Kadianakis [Tue, 11 Jun 2019 10:48:10 +0000 (13:48 +0300)] 
Merge branch 'tor-github/pr/1065' into maint-0.4.1

6 years agoMerge branch 'tor-github/pr/1098'
George Kadianakis [Tue, 11 Jun 2019 10:19:43 +0000 (13:19 +0300)] 
Merge branch 'tor-github/pr/1098'

6 years agoMerge branch 'maint-0.4.1'
teor [Tue, 11 Jun 2019 04:52:40 +0000 (14:52 +1000)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Tue, 11 Jun 2019 04:52:36 +0000 (14:52 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 11 Jun 2019 04:52:27 +0000 (14:52 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1094' into maint-0.3.5
teor [Tue, 11 Jun 2019 04:51:46 +0000 (14:51 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1094' into maint-0.3.5

6 years agoMerge remote-tracking branch 'tor-github/pr/1091' into maint-0.3.5
teor [Tue, 11 Jun 2019 04:51:37 +0000 (14:51 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1091' into maint-0.3.5

6 years agoMerge remote-tracking branch 'tor-github/pr/990' into maint-0.3.5
teor [Tue, 11 Jun 2019 04:48:52 +0000 (14:48 +1000)] 
Merge remote-tracking branch 'tor-github/pr/990' into maint-0.3.5

6 years agoMerge remote-tracking branch 'tor-github/pr/971' into maint-0.3.5
teor [Tue, 11 Jun 2019 04:47:40 +0000 (14:47 +1000)] 
Merge remote-tracking branch 'tor-github/pr/971' into maint-0.3.5

6 years agoMerge remote-tracking branch 'tor-github/pr/924' into maint-0.3.5
teor [Tue, 11 Jun 2019 04:46:24 +0000 (14:46 +1000)] 
Merge remote-tracking branch 'tor-github/pr/924' into maint-0.3.5

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Mon, 10 Jun 2019 22:44:31 +0000 (18:44 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
Nick Mathewson [Mon, 10 Jun 2019 22:44:31 +0000 (18:44 -0400)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge remote-tracking branch 'tor-github/pr/1094' into maint-0.4.0
Nick Mathewson [Mon, 10 Jun 2019 22:44:20 +0000 (18:44 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1094' into maint-0.4.0

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Mon, 10 Jun 2019 22:33:26 +0000 (18:33 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
Nick Mathewson [Mon, 10 Jun 2019 22:33:26 +0000 (18:33 -0400)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Mon, 10 Jun 2019 22:31:36 +0000 (18:31 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge remote-tracking branch 'tor-github/pr/1097' into maint-0.4.1
Nick Mathewson [Mon, 10 Jun 2019 22:31:23 +0000 (18:31 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1097' into maint-0.4.1

6 years agoMerge remote-tracking branch 'tor-github/pr/1038'
Nick Mathewson [Mon, 10 Jun 2019 13:38:40 +0000 (09:38 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1038'

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Mon, 10 Jun 2019 13:37:28 +0000 (09:37 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge remote-tracking branch 'tor-github/pr/1064' into maint-0.4.1
Nick Mathewson [Mon, 10 Jun 2019 13:37:17 +0000 (09:37 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1064' into maint-0.4.1

6 years agoAdd an environment variable to set GIT_PATH in git scripts
Nick Mathewson [Mon, 10 Jun 2019 13:05:26 +0000 (09:05 -0400)] 
Add an environment variable to set GIT_PATH in git scripts

6 years agopush-all: Use TOR_UPSTREAM_REMOTE_NAME to override UPSTREAM_BRANCH
Nick Mathewson [Mon, 10 Jun 2019 12:56:26 +0000 (08:56 -0400)] 
push-all: Use TOR_UPSTREAM_REMOTE_NAME to override UPSTREAM_BRANCH

We already allow this override in our pre-push hook, so let's allow
it here too.

(I call my upstream branches "origin")

6 years agoUpdate git scripts for new versions
Nick Mathewson [Mon, 10 Jun 2019 12:54:22 +0000 (08:54 -0400)] 
Update git scripts for new versions

{maint,release}-0.4.1 are now real

{maint,release}-0.3.4 are now EOL

Closes ticket 30822

6 years agoBump master to 0.4.2.0-alpha-dev
Nick Mathewson [Mon, 10 Jun 2019 12:47:33 +0000 (08:47 -0400)] 
Bump master to 0.4.2.0-alpha-dev

6 years agotest: fix a typo in test_rebind.sh
teor [Mon, 10 Jun 2019 10:56:40 +0000 (20:56 +1000)] 
test: fix a typo in test_rebind.sh

Closes 30821.

6 years agoMerge branch 'bug30713_035' into bug30713_040
teor [Mon, 10 Jun 2019 10:50:53 +0000 (20:50 +1000)] 
Merge branch 'bug30713_035' into bug30713_040

6 years agoTravis: Skip test_rebind on macOS builds
teor [Mon, 10 Jun 2019 08:59:02 +0000 (18:59 +1000)] 
Travis: Skip test_rebind on macOS builds

Skip test_rebind when the TOR_SKIP_TEST_REBIND environmental variable
is set.

Skip test_rebind on macOS in Travis builds, because it is unreliable
on macOS on Travis.

Fixes bug 30713; bugfix on 0.3.5.1-alpha.

6 years agoTravis: allow the test-stem job to fail
teor [Mon, 10 Jun 2019 09:18:35 +0000 (19:18 +1000)] 
Travis: allow the test-stem job to fail

Allow the test-stem job to fail in Travis, because it sometimes hangs.

Fixes bug 30744; bugfix on 0.3.5.4-alpha.

6 years agobump to 0.4.1.2-alpha-dev
Nick Mathewson [Thu, 6 Jun 2019 12:28:34 +0000 (08:28 -0400)] 
bump to 0.4.1.2-alpha-dev

6 years agoMerge branch 'maint-0.4.0' tor-0.4.1.2-alpha
Nick Mathewson [Wed, 5 Jun 2019 20:24:10 +0000 (16:24 -0400)] 
Merge branch 'maint-0.4.0'

6 years agoMerge remote-tracking branch 'tor-github/pr/988' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:22:52 +0000 (16:22 -0400)] 
Merge remote-tracking branch 'tor-github/pr/988' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/989' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:22:29 +0000 (16:22 -0400)] 
Merge remote-tracking branch 'tor-github/pr/989' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/952' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:16:34 +0000 (16:16 -0400)] 
Merge remote-tracking branch 'tor-github/pr/952' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/741' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:14:51 +0000 (16:14 -0400)] 
Merge remote-tracking branch 'tor-github/pr/741' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1039' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:13:53 +0000 (16:13 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1039' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/971' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:12:07 +0000 (16:12 -0400)] 
Merge remote-tracking branch 'tor-github/pr/971' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1020' into maint-0.4.0
Nick Mathewson [Wed, 5 Jun 2019 20:10:51 +0000 (16:10 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1020' into maint-0.4.0

6 years agopush release date to tomorrow: too many last minute surprises
Nick Mathewson [Wed, 5 Jun 2019 19:53:52 +0000 (15:53 -0400)] 
push release date to tomorrow: too many last minute surprises

6 years agochange some CI-substitute logic
Nick Mathewson [Wed, 5 Jun 2019 19:38:25 +0000 (15:38 -0400)] 
change some CI-substitute logic

6 years agoMerge remote-tracking branch 'tor-github/pr/1076'
Nick Mathewson [Wed, 5 Jun 2019 19:35:43 +0000 (15:35 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1076'

6 years agoBug 29034: Cleanup hs circuitmap when purpose changes.
Mike Perry [Wed, 5 Jun 2019 18:50:44 +0000 (11:50 -0700)] 
Bug 29034: Cleanup hs circuitmap when purpose changes.

Leave the other rend and hs_ident data around until circuit free, since code
may still try to inspect it after marking the circuit for close. The
circuitmap is the important thing to clean up, since repurposed
intropoints must be removed from this map to ensure validity.

6 years agoRevert "hs: Implement a helper to repurpose a circuit"
Mike Perry [Wed, 5 Jun 2019 18:38:01 +0000 (11:38 -0700)] 
Revert "hs: Implement a helper to repurpose a circuit"

This reverts commit 3789f22bcbfbc6de415a838e4c4bfb2555c7d6c3.

6 years agoRevert "test: Add test_hs_circ.c for HS circuit testing"
Mike Perry [Wed, 5 Jun 2019 18:37:32 +0000 (11:37 -0700)] 
Revert "test: Add test_hs_circ.c for HS circuit testing"

This reverts commit 41b94722e5c93ec06911f9c63296a65ce295c1ea.

6 years agoAdd missing newline after decode_intro_points() closing bracket
Neel Chauhan [Wed, 5 Jun 2019 16:50:01 +0000 (12:50 -0400)] 
Add missing newline after decode_intro_points() closing bracket

6 years agoDon't access rend data after a circuit has been marked for close.
George Kadianakis [Wed, 5 Jun 2019 15:19:23 +0000 (18:19 +0300)] 
Don't access rend data after a circuit has been marked for close.

This can cause issues if the circuit was repurposed into a padding circuit
instead of closing, since in that case we will wipe off the rend_data.

6 years agominor changelog edits
Nick Mathewson [Wed, 5 Jun 2019 13:43:43 +0000 (09:43 -0400)] 
minor changelog edits

6 years agoReplace a missing end-of-comment string
Nick Mathewson [Wed, 5 Jun 2019 13:35:45 +0000 (09:35 -0400)] 
Replace a missing end-of-comment string

This happened when I went to fix long lines after running "make
autostyle".

6 years agoRegenerate practracker excpetions file
Nick Mathewson [Wed, 5 Jun 2019 13:34:14 +0000 (09:34 -0400)] 
Regenerate practracker excpetions file

6 years agoRun "make autostyle."
Nick Mathewson [Wed, 5 Jun 2019 13:33:35 +0000 (09:33 -0400)] 
Run "make autostyle."

6 years agoBump to 0.4.1.2-alpha
Nick Mathewson [Wed, 5 Jun 2019 13:25:21 +0000 (09:25 -0400)] 
Bump to 0.4.1.2-alpha

6 years agoRewrap the changelog
Nick Mathewson [Wed, 5 Jun 2019 13:24:42 +0000 (09:24 -0400)] 
Rewrap the changelog

6 years agoStart a changelog for 0.4.1.2-alpha
Nick Mathewson [Wed, 5 Jun 2019 13:24:18 +0000 (09:24 -0400)] 
Start a changelog for 0.4.1.2-alpha

6 years agopractracker update
Nick Mathewson [Wed, 5 Jun 2019 13:06:43 +0000 (09:06 -0400)] 
practracker update

6 years agoMerge remote-tracking branch 'tor-github/pr/1053'
Nick Mathewson [Wed, 5 Jun 2019 13:04:09 +0000 (09:04 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1053'

6 years agoMerge branch 'bug30286_2_squashed'
Nick Mathewson [Wed, 5 Jun 2019 12:32:39 +0000 (08:32 -0400)] 
Merge branch 'bug30286_2_squashed'

6 years agoDocument TOR_UPSTREAM_REMOTE_NAME env variable
rl1987 [Fri, 17 May 2019 16:24:26 +0000 (19:24 +0300)] 
Document TOR_UPSTREAM_REMOTE_NAME env variable

6 years agoFix typo in #29670 changes file.
George Kadianakis [Wed, 5 Jun 2019 11:56:28 +0000 (14:56 +0300)] 
Fix typo in #29670 changes file.

6 years agoMerge branch 'tor-github/pr/1072'
George Kadianakis [Wed, 5 Jun 2019 11:40:38 +0000 (14:40 +0300)] 
Merge branch 'tor-github/pr/1072'

6 years agoMerge branch 'tor-github/pr/1067'
David Goulet [Tue, 4 Jun 2019 13:57:03 +0000 (09:57 -0400)] 
Merge branch 'tor-github/pr/1067'

6 years agoupdate practracker
Nick Mathewson [Tue, 4 Jun 2019 12:29:43 +0000 (08:29 -0400)] 
update practracker

6 years agoMerge branch 'bug29670_035' into bug29670_041
Nick Mathewson [Tue, 4 Jun 2019 12:29:05 +0000 (08:29 -0400)] 
Merge branch 'bug29670_035' into bug29670_041

6 years agosendme: Do not decrement window in a log_debug()
David Goulet [Mon, 3 Jun 2019 18:31:51 +0000 (14:31 -0400)] 
sendme: Do not decrement window in a log_debug()

If "Log debug ..." is not set, the decrement never happens. This lead to the
package/deliver window to be out of sync at the stream level and thus breaking
the connection after 50+ cells.

Fixes #30628

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agofix some simple typos
Roger Dingledine [Sat, 1 Jun 2019 19:37:51 +0000 (15:37 -0400)] 
fix some simple typos

6 years agoPractracker excpetions.
Nick Mathewson [Fri, 31 May 2019 16:41:44 +0000 (12:41 -0400)] 
Practracker excpetions.

6 years agoMerge branch 'bug29875_035' into bug29875_master
Nick Mathewson [Fri, 31 May 2019 16:40:43 +0000 (12:40 -0400)] 
Merge branch 'bug29875_035' into bug29875_master

6 years agochanges file for bug 29875.
Nick Mathewson [Fri, 31 May 2019 16:39:52 +0000 (12:39 -0400)] 
changes file for bug 29875.

6 years agonum_bridges_usable(): only count configured bridges.
Nick Mathewson [Fri, 31 May 2019 16:19:29 +0000 (12:19 -0400)] 
num_bridges_usable(): only count configured bridges.

When this function was implemented, it counted all the entry guards
in the bridge set.  But this included previously configured bridges,
as well as currently configured ones!  Instead, only count the
_filtered_ bridges (ones that are configured and possibly reachable)
as maybe usable.

Fixes bug 29875; bugfix on 0.3.0.1-alpha.

6 years agoConsider dir info to have changed when the bridges change
Nick Mathewson [Fri, 31 May 2019 15:46:58 +0000 (11:46 -0400)] 
Consider dir info to have changed when the bridges change

Otherwise, we won't realize that we haven't got enough bridge
information to build circuits.  Part of a fix for ticket 29875.

6 years agotest: Add test_hs_circ.c for HS circuit testing
David Goulet [Fri, 31 May 2019 14:43:01 +0000 (10:43 -0400)] 
test: Add test_hs_circ.c for HS circuit testing

For now, only tests HS circuit repurpose function.

Part of #29034

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agoFix some tests for CL_PORT_NO_STREAM_OPTIONS
Nick Mathewson [Fri, 31 May 2019 13:03:16 +0000 (09:03 -0400)] 
Fix some tests for CL_PORT_NO_STREAM_OPTIONS

The comment in the tests was correct: this option _was_ inverted wrt
SessionGroup=.

6 years agoFix a logic error in deciding whether to accept SessionGroup=
Nick Mathewson [Fri, 31 May 2019 12:26:10 +0000 (08:26 -0400)] 
Fix a logic error in deciding whether to accept SessionGroup=

Fixes bug 22619; bugfix on 0.2.7.2-alpha

6 years agoMention Travis/Appveyor/Jenkins URLs in ReleasingTor.md
rl1987 [Fri, 31 May 2019 06:35:19 +0000 (09:35 +0300)] 
Mention Travis/Appveyor/Jenkins URLs in ReleasingTor.md

6 years agoMerge branch 'tor-github/pr/1059'
George Kadianakis [Thu, 30 May 2019 18:01:59 +0000 (21:01 +0300)] 
Merge branch 'tor-github/pr/1059'

6 years agoMerge branch 'tor-github/pr/1057'
David Goulet [Thu, 30 May 2019 16:58:35 +0000 (12:58 -0400)] 
Merge branch 'tor-github/pr/1057'

6 years agochanges file for 30629
Nick Mathewson [Thu, 30 May 2019 16:58:12 +0000 (12:58 -0400)] 
changes file for 30629

6 years agoMerge branch 'tor-github/pr/1055'
David Goulet [Thu, 30 May 2019 16:53:52 +0000 (12:53 -0400)] 
Merge branch 'tor-github/pr/1055'

6 years agoMerge branch 'tor-github/pr/1054'
David Goulet [Thu, 30 May 2019 13:59:21 +0000 (09:59 -0400)] 
Merge branch 'tor-github/pr/1054'

6 years agoMerge branch 'tor-github/pr/1049'
David Goulet [Thu, 30 May 2019 13:56:18 +0000 (09:56 -0400)] 
Merge branch 'tor-github/pr/1049'

6 years agoMerge branch 'tor-github/pr/1032'
George Kadianakis [Wed, 29 May 2019 18:28:04 +0000 (21:28 +0300)] 
Merge branch 'tor-github/pr/1032'

6 years agoMerge branch 'tor-github/pr/1037'
George Kadianakis [Wed, 29 May 2019 18:25:32 +0000 (21:25 +0300)] 
Merge branch 'tor-github/pr/1037'

6 years agoMerge branch 'maint-0.4.0'
George Kadianakis [Wed, 29 May 2019 18:20:02 +0000 (21:20 +0300)] 
Merge branch 'maint-0.4.0'

6 years agoMerge branch 'tor-github/pr/924' into maint-0.4.0
George Kadianakis [Wed, 29 May 2019 18:19:56 +0000 (21:19 +0300)] 
Merge branch 'tor-github/pr/924' into maint-0.4.0

6 years agoShutdown libevent _after_ the subsystems.
Nick Mathewson [Wed, 29 May 2019 15:25:47 +0000 (11:25 -0400)] 
Shutdown libevent _after_ the subsystems.

This is necessary since shutting down libevent frees some pointer
that the subsystems want to free themselves. A longer term solution
will be to turn the evloop module into a subsystem itself, but for
now it is best to do the minimal fix.

Fixes bug 30629; bugfix on 0.4.1.1-alpha.

6 years agoMake get_proxy_type() connection-specific
Nick Mathewson [Wed, 29 May 2019 15:00:09 +0000 (11:00 -0400)] 
Make get_proxy_type() connection-specific

Previously, we were looking at our global settings to see what kind
of proxy we had.  But doing this would sometimes give us the wrong
results when we had ClientTransportPlugin configured but we weren't
using it for a particular connection.  In several places in the
code, we had added checks to see if we were _really_ using a PT or
whether we were using a socks proxy, but we had forgotten to do so
in at least once case.  Instead, since every time we call this
function we are asking about a single connection, it is probably
best just to make this function connection-specific.

Fixes bug 29670; bugfix on 0.2.6.2-alpha.

6 years agoRemove want_cmddata from HSFETCH, which does not in fact want data
Nick Mathewson [Wed, 29 May 2019 14:10:57 +0000 (10:10 -0400)] 
Remove want_cmddata from HSFETCH, which does not in fact want data

This looks a copy-and-paste error to me.  Fixes bug 30646; bugfix on
0.4.1.1-alpha.

6 years agoMerge branch 'ticket30561_029' into ticket30561_035
Nick Mathewson [Wed, 29 May 2019 13:43:20 +0000 (09:43 -0400)] 
Merge branch 'ticket30561_029' into ticket30561_035

6 years agohs: Implement a helper to repurpose a circuit
David Goulet [Tue, 28 May 2019 13:44:06 +0000 (09:44 -0400)] 
hs: Implement a helper to repurpose a circuit

When we repurpose a hidden service circuit, we need to clean up from the HS
circuit map and any HS related data structured contained in the circuit.

This commit adds an helper function that does it when repurposing a hidden
service circuit.

Fixes #29034

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agoTweak comments in tor_vasprintf(), and add a changes file for 30651
Nick Mathewson [Wed, 29 May 2019 13:38:32 +0000 (09:38 -0400)] 
Tweak comments in tor_vasprintf(), and add a changes file for 30651

6 years agoFixed tor_vasprintf on systems without vasprintf.
Tobias Stoeckmann [Wed, 29 May 2019 13:33:24 +0000 (09:33 -0400)] 
Fixed tor_vasprintf on systems without vasprintf.

If tor is compiled on a system with neither vasprintf nor _vscprintf,
the fallback implementation exposes a logic flaw which prevents
proper usage of strings longer than 127 characters:

* tor_vsnprintf returns -1 if supplied buffer is not large enough,
  but tor_vasprintf uses this function to retrieve required length
* the result of tor_vsnprintf is not properly checked for negative
  return values

Both aspects together could in theory lead to exposure of uninitialized
stack memory in the resulting string. This requires an invalid format
string or data that exceeds integer limitations.

Fortunately tor is not even able to run with this implementation because
it runs into asserts early on during startup. Also the unit tests fail
during a "make check" run.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
  [backported to 0.2.9 by nickm]

6 years agoChanges file for bug 30614
Nick Mathewson [Wed, 29 May 2019 13:05:26 +0000 (09:05 -0400)] 
Changes file for bug 30614

6 years agoUse MAP_INHERIT_ZERO or MAP_INHERIT_NONE if available.
Taylor R Campbell [Sat, 25 May 2019 03:55:24 +0000 (03:55 +0000)] 
Use MAP_INHERIT_ZERO or MAP_INHERIT_NONE if available.

Fixes assertion failure in tests on NetBSD:

slow/prob_distr/stochastic_log_logistic: [forking] May 25 03:56:58.091 [err] tor_assertion_failed_(): Bug: src/lib/crypt_ops/crypto_rand_fast.c:184: crypto_fast_rng_new_from_seed: Assertion inherit != INHERIT_RES_KEEP failed; aborting. (on Tor 0.4.1.1-alpha-dev 29955f13e5bc8e61)
May 25 03:56:58.091 [err] Bug: Assertion inherit != INHERIT_RES_KEEP failed in crypto_fast_rng_new_from_seed at src/lib/crypt_ops/crypto_rand_fast.c:184: . (Stack trace not available) (on Tor 0.4.1.1-alpha-dev 29955f13e5bc8e61)
[Lost connection!]

6 years agoTrivial fix for a trivial warning with gcc 9.1.1
Nick Mathewson [Tue, 28 May 2019 23:45:50 +0000 (19:45 -0400)] 
Trivial fix for a trivial warning with gcc 9.1.1

Fix on 4e3d144fb0940d8ee5a89427d471ea3656e8e122; bug not in any
released Tor.

6 years agoMerge branch 'tor-github/pr/1047'
David Goulet [Tue, 28 May 2019 18:59:07 +0000 (14:59 -0400)] 
Merge branch 'tor-github/pr/1047'

6 years agoMerge branch 'tor-github/pr/1042'
George Kadianakis [Mon, 27 May 2019 11:22:01 +0000 (14:22 +0300)] 
Merge branch 'tor-github/pr/1042'

6 years agoMerge branch 'tor-github/pr/1043'
George Kadianakis [Mon, 27 May 2019 11:20:51 +0000 (14:20 +0300)] 
Merge branch 'tor-github/pr/1043'

6 years agoTests for deciding how full our relay cells should be
Nick Mathewson [Thu, 23 May 2019 13:29:24 +0000 (09:29 -0400)] 
Tests for deciding how full our relay cells should be

6 years agoMake sure that we send at least some random data in RELAY_DATA cells
Nick Mathewson [Fri, 17 May 2019 15:03:16 +0000 (11:03 -0400)] 
Make sure that we send at least some random data in RELAY_DATA cells

Proposal 289 prevents SENDME-flooding by requiring the other side to
authenticate the data it has received.  But this data won't actually
be random if they are downloading a known resource.  "No problem",
we said, "let's fell the empty parts of our cells with some
randomness!" and we did that in #26871.

Unfortunately, if the relay data payloads are all completely full,
there won't be any empty parts for us to randomize.

Therefore, we now pick random "randomness windows" between
CIRCWINDOW_INCREMENT/2 and CIRCWINDOW_INCREMENT. We remember whether we have
sent a cell containing at least 16 bytes of randomness in that window.  If we
haven't, then when the window is exhausted, we send one.  (This window approach
is designed to lower the number of rng checks we have to do.  The number 16 is
pulled out of a hat to change the attacker's guessing difficulty to
"impossible".)

Implements 28646.

6 years agotrivial whitespace fixes
Roger Dingledine [Sun, 26 May 2019 21:32:42 +0000 (17:32 -0400)] 
trivial whitespace fixes

6 years agochanges file for test coverage
Nick Mathewson [Fri, 24 May 2019 11:42:59 +0000 (07:42 -0400)] 
changes file for test coverage