]>
git.ipfire.org Git - thirdparty/tor.git/log
David Goulet [Tue, 18 Jun 2019 17:32:45 +0000 (13:32 -0400)]
guard: Ignore marked for close circuit when changing state to open
When we consider all circuits in "waiting for guard" state to be promoted to
an "open" state, we were considering all circuits, even the one marked for
close.
This ultiamtely triggers a "circuit_has_opened()" called on the circuit that
is marked for close which then leads to possible undesirable behaviors within
a subsystem.
For instance, the HS subsystem would be unable to find the authentication key
of the introduction point circuit leading to a BUG() warning and a duplicate
mark for close on the circuit.
This commit also adds a unit test to make sure we never select marked for
close circuits when upgrading its guard state from waiting for guard to open.
Fixes #30871
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 18 Jun 2019 13:10:34 +0000 (09:10 -0400)]
Merge remote-tracking branch 'tor-github/pr/1115'
Nick Mathewson [Mon, 17 Jun 2019 12:56:13 +0000 (08:56 -0400)]
Merge branch 'ticket29533_squashed'
rl1987 [Sun, 9 Jun 2019 15:23:05 +0000 (18:23 +0300)]
Add changes file
rl1987 [Sun, 9 Jun 2019 15:21:14 +0000 (18:21 +0300)]
Fix SC2034 in pre-push.git-hook
rl1987 [Sun, 9 Jun 2019 15:20:36 +0000 (18:20 +0300)]
Shellcheck all the scripts
Nick Mathewson [Mon, 17 Jun 2019 12:54:12 +0000 (08:54 -0400)]
Merge remote-tracking branch 'tor-github/pr/1100'
rl1987 [Sun, 16 Jun 2019 17:18:30 +0000 (20:18 +0300)]
Allow excluding documentation from the build
George Kadianakis [Fri, 14 Jun 2019 10:28:32 +0000 (13:28 +0300)]
Merge branch 'bug30806'
Nick Mathewson [Sat, 8 Jun 2019 00:03:26 +0000 (20:03 -0400)]
Make evloop into a subsystem.
Note that the event base object is _not_ created from the initialize
function, since it is configuration-dependent. This will wait until
configuration is integrated into subsystems.
Closes ticket 30806.
teor [Thu, 13 Jun 2019 08:23:50 +0000 (18:23 +1000)]
practracker: accept an extra line in nt_service_install()
Part of 30799.
George Kadianakis [Wed, 12 Jun 2019 10:02:49 +0000 (13:02 +0300)]
Merge branch 'tor-github/pr/1099'
George Kadianakis [Wed, 12 Jun 2019 10:01:53 +0000 (13:01 +0300)]
Merge branch 'tor-github/pr/1088'
George Kadianakis [Wed, 12 Jun 2019 10:00:20 +0000 (13:00 +0300)]
Merge branch 'tor-github/pr/1102'
David Goulet [Tue, 11 Jun 2019 15:59:39 +0000 (11:59 -0400)]
Merge branch 'tor-github/pr/1040'
Taylor Yu [Wed, 22 May 2019 21:33:04 +0000 (16:33 -0500)]
Add changes file for 29976
Taylor Yu [Thu, 28 Mar 2019 22:45:49 +0000 (17:45 -0500)]
Rework origin circuit tracking to use pubsub
Part of ticket 29976.
Taylor Yu [Fri, 8 Mar 2019 15:41:43 +0000 (09:41 -0600)]
Rework orconn tracking to use pubsub
Part of ticket 29976.
David Goulet [Tue, 11 Jun 2019 15:46:38 +0000 (11:46 -0400)]
Merge branch 'tor-github/pr/1031'
David Goulet [Tue, 11 Jun 2019 15:43:15 +0000 (11:43 -0400)]
Merge branch 'tor-github/pr/1083'
David Goulet [Tue, 11 Jun 2019 15:30:05 +0000 (11:30 -0400)]
Merge branch 'maint-0.4.1'
David Goulet [Tue, 11 Jun 2019 15:29:46 +0000 (11:29 -0400)]
Merge branch 'tor-github/pr/1050' into maint-0.4.1
Nick Mathewson [Wed, 29 May 2019 13:23:13 +0000 (09:23 -0400)]
Add a changes file for ticket 30686.
Nick Mathewson [Wed, 29 May 2019 13:22:18 +0000 (09:22 -0400)]
Give a compile warning when we don't have any flags for minherit().
Part of ticket 30686.
Nick Mathewson [Wed, 29 May 2019 13:21:45 +0000 (09:21 -0400)]
Give a more useful failure messgae when we fail to minherit().
Part of ticket 30686.
Nick Mathewson [Tue, 11 Jun 2019 14:22:37 +0000 (10:22 -0400)]
Merge branch 'ticket28453_v2' into ticket28453_v2_merged
Nick Mathewson [Tue, 11 Jun 2019 14:17:18 +0000 (10:17 -0400)]
Merge branch 'maint-0.4.1'
Nick Mathewson [Tue, 11 Jun 2019 14:17:18 +0000 (10:17 -0400)]
Merge branch 'maint-0.4.0' into maint-0.4.1
Nick Mathewson [Tue, 11 Jun 2019 14:17:18 +0000 (10:17 -0400)]
Merge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Tue, 11 Jun 2019 14:17:17 +0000 (10:17 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.5
Karsten Loesing [Tue, 11 Jun 2019 14:12:50 +0000 (16:12 +0200)]
Update geoip and geoip6 to the June 10 2019 database.
Nick Mathewson [Tue, 11 Jun 2019 12:41:55 +0000 (08:41 -0400)]
Merge branch 'maint-0.4.1'
Nick Mathewson [Tue, 11 Jun 2019 12:41:48 +0000 (08:41 -0400)]
Merge remote-tracking branch 'tor-github/pr/1082' into maint-0.4.1
George Kadianakis [Tue, 11 Jun 2019 11:12:22 +0000 (14:12 +0300)]
Merge branch 'tor-github/pr/1060'
George Kadianakis [Tue, 11 Jun 2019 11:11:24 +0000 (14:11 +0300)]
Merge branch 'ticket30769_041_01'
David Goulet [Wed, 5 Jun 2019 13:57:52 +0000 (09:57 -0400)]
trunnel: Rename sendme.trunnel to sendme_cell.trunnel
This is to avoid having two sendme.{c|h} in the repository since the subsystem
is implemented in src/core/or/sendme.{c|h}.
Fixes #30769
Signed-off-by: David Goulet <dgoulet@torproject.org>
George Kadianakis [Tue, 11 Jun 2019 11:02:33 +0000 (14:02 +0300)]
Merge branch 'ticket30687_042_01'
David Goulet [Wed, 29 May 2019 15:34:07 +0000 (11:34 -0400)]
token-bucket: Implement a single counter object
Closes #30687.
Signed-off-by: David Goulet <dgoulet@torproject.org>
George Kadianakis [Tue, 11 Jun 2019 10:48:16 +0000 (13:48 +0300)]
Merge branch '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
George Kadianakis [Tue, 11 Jun 2019 10:19:43 +0000 (13:19 +0300)]
Merge branch 'tor-github/pr/1098'
teor [Tue, 11 Jun 2019 05:15:19 +0000 (15:15 +1000)]
changes: file for 30799
Note that this memory leak is in unreachable code.
Xiaoyin Liu [Fri, 7 Jun 2019 09:13:49 +0000 (17:13 +0800)]
Free a string buffer in nt_service_install()
The string buffer "command" is not freed if the specified account
name doesn't exist. This patch fixes this bug.
teor [Tue, 11 Jun 2019 04:52:40 +0000 (14:52 +1000)]
Merge branch '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
teor [Tue, 11 Jun 2019 04:52:27 +0000 (14:52 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
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
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
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
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
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
teor [Tue, 11 Jun 2019 04:34:44 +0000 (14:34 +1000)]
Stop hard-coding env vars in the git scripts
Set the env vars:
* TOR_MASTER_NAME to override the tor master branch name, and
* TOR_WKT_NAME to override the worktree path
Fixes bug 30841; bugfix on 0.4.0.1-alpha.
teor [Tue, 11 Jun 2019 04:29:10 +0000 (14:29 +1000)]
scripts/git: Stop hard-coding the bash path in the git scripts
Some OSes don't have bash in /usr/bin, others have an ancient bash at
this path.
Fixes bug 30840; bugfix on 0.4.0.1-alpha.
Nick Mathewson [Mon, 10 Jun 2019 22:44:31 +0000 (18:44 -0400)]
Merge branch '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
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
Nick Mathewson [Mon, 10 Jun 2019 22:33:26 +0000 (18:33 -0400)]
Merge branch '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
Nick Mathewson [Mon, 10 Jun 2019 22:31:36 +0000 (18:31 -0400)]
Merge branch '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
Nick Mathewson [Mon, 10 Jun 2019 13:38:40 +0000 (09:38 -0400)]
Merge remote-tracking branch 'tor-github/pr/1038'
Nick Mathewson [Mon, 10 Jun 2019 13:37:28 +0000 (09:37 -0400)]
Merge branch '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
Nick Mathewson [Mon, 10 Jun 2019 13:05:26 +0000 (09:05 -0400)]
Add an environment variable to set GIT_PATH in git scripts
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")
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
Nick Mathewson [Mon, 10 Jun 2019 12:47:33 +0000 (08:47 -0400)]
Bump master to 0.4.2.0-alpha-dev
teor [Mon, 10 Jun 2019 10:56:40 +0000 (20:56 +1000)]
test: fix a typo in test_rebind.sh
Closes 30821.
teor [Mon, 10 Jun 2019 10:50:53 +0000 (20:50 +1000)]
Merge branch 'bug30713_035' into bug30713_040
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.
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.
Nick Mathewson [Fri, 7 Jun 2019 17:52:03 +0000 (13:52 -0400)]
Tolerate net-unreachable failures in util/socketpair_ersatz
This can happen when we have no network stack configured. Fixes bug
30804; bugfix on 0.2.5.1-alpha.
Nick Mathewson [Thu, 6 Jun 2019 12:28:34 +0000 (08:28 -0400)]
bump to 0.4.1.2-alpha-dev
teor [Thu, 6 Jun 2019 08:24:17 +0000 (18:24 +1000)]
practracker: accept one extra line in routerlist.c
practracker exception for 30780.
teor [Wed, 5 Jun 2019 22:52:13 +0000 (08:52 +1000)]
dirauth: Return a distinct status when formatting annotations fails
Adds ROUTER_AUTHDIR_BUG_ANNOTATIONS to was_router_added_t.
The out-of-order numbering is deliberate: it will be fixed by later commits
for 16564.
Fixes bug 30780; bugfix on 0.2.0.8-alpha.
teor [Wed, 5 Jun 2019 22:45:57 +0000 (08:45 +1000)]
dirauth: Fix some comments in the router status processing code.
Fixes comments in dirserv_router_get_status() and was_router_added_t.
Preparation for 30780 and 16564.
teor [Thu, 6 Jun 2019 03:42:30 +0000 (13:42 +1000)]
practracker: accept 3 extra lines in router_parse_entry_from_string()
practracker exception for bug 30781.
teor [Wed, 5 Jun 2019 23:57:31 +0000 (09:57 +1000)]
Merge branch 'bug30781_040' into bug30781_master
teor [Wed, 5 Jun 2019 23:56:50 +0000 (09:56 +1000)]
Merge branch 'bug30781_035' into bug30781_040
teor [Wed, 5 Jun 2019 23:55:44 +0000 (09:55 +1000)]
Merge branch 'bug30781_034' into bug30781_035
Moved fix from src/or/routerparse.c to src/feature/dirparse/routerparse.c.
teor [Wed, 5 Jun 2019 23:53:02 +0000 (09:53 +1000)]
Merge branch 'bug30781_029' into bug30781_034
teor [Wed, 5 Jun 2019 23:12:14 +0000 (09:12 +1000)]
dirparse: Stop crashing when parsing unknown descriptor purpose annotations
We think this bug can only be triggered by modifying a local file.
Fixes bug 30781; bugfix on 0.2.0.8-alpha.
Nick Mathewson [Wed, 5 Jun 2019 20:24:10 +0000 (16:24 -0400)]
Merge branch '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
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
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
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
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
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
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
Nick Mathewson [Wed, 5 Jun 2019 19:53:52 +0000 (15:53 -0400)]
push release date to tomorrow: too many last minute surprises
Nick Mathewson [Wed, 5 Jun 2019 19:38:25 +0000 (15:38 -0400)]
change some CI-substitute logic
Nick Mathewson [Wed, 5 Jun 2019 19:35:43 +0000 (15:35 -0400)]
Merge remote-tracking branch 'tor-github/pr/1076'
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.
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 .
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 .
Neel Chauhan [Wed, 5 Jun 2019 16:50:01 +0000 (12:50 -0400)]
Add missing newline after decode_intro_points() closing bracket
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.
Nick Mathewson [Wed, 5 Jun 2019 13:43:43 +0000 (09:43 -0400)]
minor changelog edits
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".