]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0 maint-0.4.0
Nick Mathewson [Mon, 10 Feb 2020 19:17:09 +0000 (14:17 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'bug33212_035' into maint-0.3.5
Nick Mathewson [Mon, 10 Feb 2020 19:17:03 +0000 (14:17 -0500)] 
Merge branch 'bug33212_035' into maint-0.3.5

5 years agoFix a Rust compilation warning; resolve bug 33212.
Nick Mathewson [Mon, 10 Feb 2020 18:32:09 +0000 (13:32 -0500)] 
Fix a Rust compilation warning; resolve bug 33212.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Wed, 29 Jan 2020 21:54:58 +0000 (07:54 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1614' into maint-0.3.5
teor [Wed, 29 Jan 2020 21:53:53 +0000 (07:53 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1614' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 16 Jan 2020 00:00:32 +0000 (10:00 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1513' into maint-0.3.5
teor [Wed, 15 Jan 2020 23:57:27 +0000 (09:57 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1513' into maint-0.3.5

5 years agoCorrect how we use libseccomp
Peter Gerber [Mon, 10 Jun 2019 12:56:31 +0000 (14:56 +0200)] 
Correct how we use libseccomp

This fixes a startup crash with libseccomp v2.4.0 if Sandbox is
set to 1.

5 years agoMerge branch 'bug32240_32242_035' into bug32240_32242_040
teor [Sun, 15 Dec 2019 23:22:52 +0000 (09:22 +1000)] 
Merge branch 'bug32240_32242_035' into bug32240_32242_040

Merge:
* libzstd-dev from ticket32242_035
* shellcheck from maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1459' into bug32240_32242_035
teor [Sun, 15 Dec 2019 23:21:05 +0000 (09:21 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1459' into bug32240_32242_035

5 years agoMerge branch 'bug32240_035' into bug32240_040
teor [Sun, 15 Dec 2019 23:14:32 +0000 (09:14 +1000)] 
Merge branch 'bug32240_035' into bug32240_040

5 years agoMerge branch 'bug32240_029' into bug32240_035
teor [Sun, 15 Dec 2019 23:09:16 +0000 (09:09 +1000)] 
Merge branch 'bug32240_029' into bug32240_035

Merge
* Chutney Trusty deletion in bug32240_029
* NSS addition in maint-0.3.5

5 years agochanges: file for 32240 maint-0.2.9
teor [Sun, 15 Dec 2019 23:06:25 +0000 (09:06 +1000)] 
changes: file for 32240

5 years agoTravis: Run Chutney jobs in Ubuntu Bionic images
teor [Sun, 15 Dec 2019 23:03:48 +0000 (09:03 +1000)] 
Travis: Run Chutney jobs in Ubuntu Bionic images

Closes 32240.

5 years agoTravis: Turn off Tor's Sandbox in Chutney jobs
teor [Sun, 15 Dec 2019 23:01:45 +0000 (09:01 +1000)] 
Travis: Turn off Tor's Sandbox in Chutney jobs

We need to set "Sandbox 0", until we fix sandbox errors that are
triggered by Ubuntu Xenial and Bionic. See 32722.

Part of 32240.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Sun, 15 Dec 2019 22:16:04 +0000 (08:16 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Sun, 15 Dec 2019 22:15:55 +0000 (08:15 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1576' into maint-0.3.5
teor [Sun, 15 Dec 2019 22:14:04 +0000 (08:14 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1576' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1575' into maint-0.2.9
teor [Sun, 15 Dec 2019 22:13:38 +0000 (08:13 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1575' into maint-0.2.9

5 years agoBump version to 0.4.0.6-dev
Nick Mathewson [Mon, 9 Dec 2019 21:01:56 +0000 (16:01 -0500)] 
Bump version to 0.4.0.6-dev

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Mon, 9 Dec 2019 21:01:22 +0000 (16:01 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

"ours" to avoid version bump.

5 years agobump to 0.3.5.9-dev
Nick Mathewson [Mon, 9 Dec 2019 21:01:11 +0000 (16:01 -0500)] 
bump to 0.3.5.9-dev

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Fri, 6 Dec 2019 21:02:07 +0000 (16:02 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
Nick Mathewson [Fri, 6 Dec 2019 21:02:07 +0000 (16:02 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoUpdate geoip and geoip6 to the December 3 2019 database.
Karsten Loesing [Fri, 6 Dec 2019 10:50:35 +0000 (11:50 +0100)] 
Update geoip and geoip6 to the December 3 2019 database.

5 years agochanges: file for 32629
teor [Fri, 6 Dec 2019 00:51:05 +0000 (10:51 +1000)] 
changes: file for 32629

5 years agochanges: file for 32629
teor [Fri, 6 Dec 2019 00:51:05 +0000 (10:51 +1000)] 
changes: file for 32629

5 years agoBump to 0.4.0.6
Nick Mathewson [Thu, 5 Dec 2019 18:31:01 +0000 (13:31 -0500)] 
Bump to 0.4.0.6

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Thu, 5 Dec 2019 18:30:32 +0000 (13:30 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

"ours" to avoid version bump.

5 years agoBump version to 0.3.5.9
Nick Mathewson [Thu, 5 Dec 2019 18:29:49 +0000 (13:29 -0500)] 
Bump version to 0.3.5.9

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 5 Dec 2019 00:13:53 +0000 (10:13 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1424' into maint-0.4.0
teor [Thu, 5 Dec 2019 00:13:15 +0000 (10:13 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1424' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1277' into maint-0.3.5
teor [Thu, 5 Dec 2019 00:11:18 +0000 (10:11 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1277' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 3 Dec 2019 02:46:43 +0000 (12:46 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoTravis: use -std=gnu99 with NSS, and clang with Chutney
teor [Thu, 28 Nov 2019 01:38:48 +0000 (11:38 +1000)] 
Travis: use -std=gnu99 with NSS, and clang with Chutney

NSS:
* test NSS-specific code with -std=gnu99
* use a recent gcc version from the latest Ubuntu image

Chutney:
* use clang, so we keep one clang Linux job
* keep clang on a fast job, so the overall build finishes quickly

Closes ticket 32500 for 0.3.5.

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Tue, 3 Dec 2019 02:45:41 +0000 (12:45 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

Merge C_DIALECT_OPTIONS from ticket32500_029 with
other configure options from maint-0.3.5.

5 years agoTravis: use -std=gnu99 in some jobs
teor [Fri, 15 Nov 2019 00:17:32 +0000 (10:17 +1000)] 
Travis: use -std=gnu99 in some jobs

Require C99 standards-conforming code in Travis CI, but allow GNU gcc
extensions. Also activates clang's -Wtypedef-redefinition warnings.

Builds some jobs with -std=gnu99, and some jobs without.

Closes ticket 32500.

5 years agoTravis: Disable the macOS Rust job
teor [Sun, 1 Dec 2019 10:25:00 +0000 (20:25 +1000)] 
Travis: Disable the macOS Rust job

This time, we're disabling it because it's the lowest priority job.
(And also slow.)

Part of 32629.

5 years agoMerge branch 'ticket32629_029' into ticket32629_035
teor [Thu, 28 Nov 2019 02:21:08 +0000 (12:21 +1000)] 
Merge branch 'ticket32629_029' into ticket32629_035

Merge re-enable chutney from ticket32629_029 with
stem from maint-0.3.5.

5 years agoRevert "Travis: Disable the Rust macOS build"
teor [Thu, 28 Nov 2019 02:11:37 +0000 (12:11 +1000)] 
Revert "Travis: Disable the Rust macOS build"

This reverts commit 4c4a0d50ff4fd01862b78e8cbfaabfa9e4d4ae12.

5 years agoRevert "Travis: Disable all but one macOS build"
teor [Thu, 28 Nov 2019 02:10:10 +0000 (12:10 +1000)] 
Revert "Travis: Disable all but one macOS build"

This reverts commit 511aeba8eeb24a953228e00917f64703059a7673.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Mon, 25 Nov 2019 02:36:59 +0000 (12:36 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1441' into maint-0.4.0
teor [Mon, 25 Nov 2019 02:36:41 +0000 (12:36 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1441' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1396' into maint-0.4.0
teor [Mon, 25 Nov 2019 02:35:58 +0000 (12:35 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1396' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1464' into maint-0.3.5
teor [Mon, 25 Nov 2019 02:35:11 +0000 (12:35 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1464' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1422' into maint-0.3.5
teor [Mon, 25 Nov 2019 02:34:29 +0000 (12:34 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1405' into maint-0.3.5
teor [Mon, 25 Nov 2019 02:33:55 +0000 (12:33 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1405' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1395' into maint-0.3.5
teor [Mon, 25 Nov 2019 02:33:14 +0000 (12:33 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1395' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1394' into maint-0.3.5
teor [Mon, 25 Nov 2019 02:29:43 +0000 (12:29 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1394' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Mon, 11 Nov 2019 15:14:03 +0000 (10:14 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
Nick Mathewson [Mon, 11 Nov 2019 15:14:03 +0000 (10:14 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Mon, 11 Nov 2019 04:19:39 +0000 (14:19 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoAppveyor: Install OpenSSL to resolve a header/library mismatch
teor [Mon, 11 Nov 2019 02:56:08 +0000 (12:56 +1000)] 
Appveyor: Install OpenSSL to resolve a header/library mismatch

Install the mingw OpenSSL package in Appveyor. This makes sure that
the OpenSSL headers and libraries match in Tor's Appveyor builds.

(This bug was triggered by an Appveyor image update.)

Fixes bug 32449; bugfix on 0.3.5.6-rc.

5 years agoUpdate geoip and geoip6 to the November 6 2019 database.
Karsten Loesing [Sat, 9 Nov 2019 09:10:19 +0000 (10:10 +0100)] 
Update geoip and geoip6 to the November 6 2019 database.

5 years agoDo not try to shut down the event loop when it is not initialized.
Nick Mathewson [Wed, 6 Nov 2019 16:33:23 +0000 (11:33 -0500)] 
Do not try to shut down the event loop when it is not initialized.

Doing so caused us to crash in some unusual circumstances, such as
using --verify-config to verify a configuration that failed during
the options_act() stage.

Fixes bug 32407; bugfix on 0.3.3.1-alpha.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Wed, 6 Nov 2019 01:19:38 +0000 (11:19 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Wed, 6 Nov 2019 01:19:30 +0000 (11:19 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1354' into maint-0.3.5
teor [Wed, 6 Nov 2019 01:18:09 +0000 (11:18 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1354' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1348' into maint-0.3.5
teor [Wed, 6 Nov 2019 01:17:43 +0000 (11:17 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1348' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1340' into maint-0.3.5
teor [Wed, 6 Nov 2019 01:17:01 +0000 (11:17 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1340' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1343' into maint-0.3.5
teor [Wed, 6 Nov 2019 01:16:09 +0000 (11:16 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1343' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1342' into maint-0.2.9
teor [Wed, 6 Nov 2019 01:15:45 +0000 (11:15 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1342' into maint-0.2.9

5 years agoMerge remote-tracking branch 'tor-github/pr/1330' into maint-0.2.9
teor [Wed, 6 Nov 2019 01:14:53 +0000 (11:14 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1330' into maint-0.2.9

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Mon, 28 Oct 2019 22:26:40 +0000 (08:26 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Mon, 28 Oct 2019 22:26:32 +0000 (08:26 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1460' into maint-0.2.9
teor [Mon, 28 Oct 2019 22:23:35 +0000 (08:23 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1460' into maint-0.2.9

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Fri, 25 Oct 2019 00:55:58 +0000 (10:55 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Fri, 25 Oct 2019 00:55:51 +0000 (10:55 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agochanges: file for 31919's bionic Travis image change
teor [Thu, 24 Oct 2019 23:53:11 +0000 (09:53 +1000)] 
changes: file for 31919's bionic Travis image change

5 years agoMerge branch 'ticket31919_bionic_029' into ticket31919_bionic_035
teor [Thu, 24 Oct 2019 23:48:14 +0000 (09:48 +1000)] 
Merge branch 'ticket31919_bionic_029' into ticket31919_bionic_035

5 years agoTravis: Use Ubuntu Bionic, but keep Trusty for chutney
teor [Wed, 23 Oct 2019 12:31:05 +0000 (22:31 +1000)] 
Travis: Use Ubuntu Bionic, but keep Trusty for chutney

Bionic has a recent coccinelle version, which passes our CI tests.

But Bionic (and Xenial) cause permissions errors for chutney.
We'll fix those in 32240.

Part of 31919.

5 years agohs-v3: Remove a BUG() caused by an acceptable race
David Goulet [Wed, 23 Oct 2019 14:20:09 +0000 (10:20 -0400)] 
hs-v3: Remove a BUG() caused by an acceptable race

hs_client_purge_state() and hs_cache_clean_as_client() can remove a descriptor
from the client cache with a NEWNYM or simply when the descriptor expires.

Which means that for an INTRO circuit being established during that time, once
it opens, we lookup the descriptor to get the IP object but hey surprised, no
more descriptor.

The approach here is minimalist that is accept the race and close the circuit
since we can not continue. Before that, the circuit would stay opened and the
client wait the SockTimeout.

Fixers #28970.

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoTravis: Use macOS 10.14 with Xcode 11.2
teor [Wed, 23 Oct 2019 12:41:17 +0000 (22:41 +1000)] 
Travis: Use macOS 10.14 with Xcode 11.2

Closes ticket 32241.

5 years agoTravis: Use zstd in our Travis Linux builds
teor [Wed, 23 Oct 2019 12:35:24 +0000 (22:35 +1000)] 
Travis: Use zstd in our Travis Linux builds

Recent Ubuntu versions have zstd >= 1.1, which is an optional tor build
dependency.

Closes ticket 32242.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 22 Oct 2019 22:47:08 +0000 (08:47 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Tue, 22 Oct 2019 22:47:01 +0000 (08:47 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1361' into maint-0.4.0
teor [Tue, 22 Oct 2019 22:35:17 +0000 (08:35 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1361' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1360' into maint-0.3.5
teor [Tue, 22 Oct 2019 22:32:52 +0000 (08:32 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1360' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1351' into maint-0.2.9
teor [Tue, 22 Oct 2019 22:32:22 +0000 (08:32 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1351' into maint-0.2.9

5 years agoMerge remote-tracking branch 'tor-github/pr/1284' into maint-0.3.5
teor [Tue, 22 Oct 2019 22:30:48 +0000 (08:30 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1284' into maint-0.3.5

5 years agoMerge remote-tracking branch 'tor-github/pr/1256' into maint-0.3.5
teor [Tue, 22 Oct 2019 22:28:03 +0000 (08:28 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1256' into maint-0.3.5

5 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Tue, 22 Oct 2019 22:24:30 +0000 (08:24 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

`git merge --strategy ours` to take the 0.3.5 changes for 31001,
and ignore the conflicting 0.2.9 changes.

5 years agoMerge remote-tracking branch 'tor-github/pr/1178' into maint-0.2.9
teor [Tue, 22 Oct 2019 22:20:45 +0000 (08:20 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1178' into maint-0.2.9

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Tue, 22 Oct 2019 16:10:30 +0000 (12:10 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1376' into maint-0.3.5
Nick Mathewson [Tue, 22 Oct 2019 16:10:08 +0000 (12:10 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1376' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 22 Oct 2019 10:48:05 +0000 (20:48 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'origin/maint-0.3.5' into maint-0.3.5
teor [Tue, 22 Oct 2019 10:47:44 +0000 (20:47 +1000)] 
Merge remote-tracking branch 'origin/maint-0.3.5' into maint-0.3.5

5 years agoTravis: Disable the Rust macOS build
teor [Tue, 22 Oct 2019 09:38:50 +0000 (19:38 +1000)] 
Travis: Disable the Rust macOS build

This build was added in 0.3.5.

We need to mitigate slow scheduling of Travis macOS jobs.

Closes ticket 32177.

5 years agoMerge branch 'ticket32177_029' into ticket32177_035
teor [Tue, 22 Oct 2019 09:37:32 +0000 (19:37 +1000)] 
Merge branch 'ticket32177_029' into ticket32177_035

Stem from maint-0.3.5, disabled macOS chutney from ticket32177_029.

5 years agoTravis: Disable all but one macOS build
teor [Tue, 22 Oct 2019 09:34:47 +0000 (19:34 +1000)] 
Travis: Disable all but one macOS build

We need to mitigate slow scheduling of Travis macOS jobs.

Closes ticket 32177.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Mon, 21 Oct 2019 22:44:44 +0000 (18:44 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agorespect accountingmax during soft hibernation
Roger Dingledine [Mon, 21 Oct 2019 08:14:42 +0000 (04:14 -0400)] 
respect accountingmax during soft hibernation

Relays now respect their AccountingMax bandwidth again. When relays
entered "soft" hibernation (which typically starts when we've hit
90% of our AccountingMax), we had stopped checking whether we should
enter hard hibernation. Soft hibernation refuses new connections and
new circuits, but the existing circuits can continue, meaning that
relays could have exceeded their configured AccountingMax.

This commit rolls back some of the cpu-saving fixes, where we tried
to avoid calling so many of our events while we're off the network.

That's because PERIODIC_EVENT_FLAG_NEED_NET checks net_is_disabled(),
which returns true even if we're only in soft hibernation.

Fixes bug 32108; bugfix on 0.4.0.1-alpha.

5 years agoAppveyor: Use Windows Server 2019
teor [Sun, 20 Oct 2019 09:39:48 +0000 (19:39 +1000)] 
Appveyor: Use Windows Server 2019

Instead of Windows Server 2016.

Closes ticket 32086.

5 years agotest/rebind: Make control formatting and log parsing more robust
teor [Mon, 5 Aug 2019 15:33:14 +0000 (01:33 +1000)] 
test/rebind: Make control formatting and log parsing more robust

* actually sleep when tor has not logged anything
* log at debug level when waiting for tor to log something
* backslash-replace bad UTF-8 characters in logs
* format control messages as ASCII: tor does not accept UTF-8 control commands

Fixes bug 31837; bugfix on 0.3.5.1-alpha.

5 years agoRemove overly strict assertions in transports.c.
Alexander Færøy [Tue, 24 Sep 2019 14:42:00 +0000 (16:42 +0200)] 
Remove overly strict assertions in transports.c.

This patch removes an overly strict tor_assert() and an ignorable BUG()
expression. Both of these would trigger if a PT was unable to configure
itself during startup. The easy way to trigger this is to configure an
obfs4 bridge where you make the obfs4 process try to bind on a port
number under 1024.

See: https://bugs.torproject.org/31091

5 years agoAdd test to check if the exit callback is called in process_t upon process_exec(...
Alexander Færøy [Thu, 17 Oct 2019 14:56:21 +0000 (16:56 +0200)] 
Add test to check if the exit callback is called in process_t upon process_exec() failures.

This patch adds a test to check for whether the exit callback is always
called when process_exec() fails, both on Windows and Unix.

See: https://bugs.torproject.org/31810

5 years agoEnsure that the exit callback is called if CreateProcessA() fails on Windows.
Alexander Færøy [Thu, 17 Oct 2019 14:47:04 +0000 (16:47 +0200)] 
Ensure that the exit callback is called if CreateProcessA() fails on Windows.

This patch fixes an issue where the exit handler is not called for the
given process_t in case CreateProcessA() fails. This could, for example,
happen if the user tries to execute a binary that does not exist.

See: https://bugs.torproject.org/31810

5 years agoHandle errors from execve() in the Unix process backend more gracefully.
Alexander Færøy [Thu, 17 Oct 2019 14:39:05 +0000 (16:39 +0200)] 
Handle errors from execve() in the Unix process backend more gracefully.

This patch removes a call to tor_assert_unreached() after execve()
failed. This assertion leads to the child process emitting a stack trace
on its standard output, which makes the error harder for the user to
demystify, since they think it is an internal error in Tor instead of
"just" being a "no such file or directory" error.

The process will now instead output "Error from child process: X" where
X is the stringified version of the errno value.

See: https://bugs.torproject.org/31810

5 years agomainloop: Disable periodic events before a destroy
David Goulet [Tue, 15 Oct 2019 17:33:48 +0000 (13:33 -0400)] 
mainloop: Disable periodic events before a destroy

When tearing down all periodic events during shutdown, disable them first so
their enable flag is updated.

This allows the tor_api.h to relaunch tor properly after a clean shutdown.

Fixes #32058

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 17 Oct 2019 04:51:58 +0000 (14:51 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0