]>
git.ipfire.org Git - thirdparty/tor.git/log
teor [Fri, 25 Oct 2019 06:46:54 +0000 (16:46 +1000)]
scripts/maint: Stop assuming that python3 is in /usr/bin
Obviously correct fix to rename_c_identifier.py.
Bugfix on 32237; not in any released version of tor.
teor [Fri, 25 Oct 2019 06:14:37 +0000 (16:14 +1000)]
Merge remote-tracking branch 'tor-github/pr/1462'
teor [Fri, 25 Oct 2019 06:13:16 +0000 (16:13 +1000)]
Makefile: Stop using trailing spaces in an EXTRA_DIST clause
Based on 8-space tabs, the git/less default.
Cleanup after 31919.
teor [Wed, 23 Oct 2019 23:48:37 +0000 (09:48 +1000)]
changes: file for 31919
teor [Wed, 23 Oct 2019 03:49:50 +0000 (13:49 +1000)]
Travis: Install coccinelle on macOS and Linux
And print the spatch version and build details
Part of 31919.
teor [Wed, 23 Oct 2019 05:44:17 +0000 (15:44 +1000)]
Makefile: Add check_cocci_parse.sh as check-cocci
And add it to check-local.
Part of 31919.
teor [Fri, 25 Oct 2019 00:56:21 +0000 (10:56 +1000)]
Merge branch 'maint-0.4.2'
teor [Fri, 25 Oct 2019 00:56:13 +0000 (10:56 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Fri, 25 Oct 2019 00:56:06 +0000 (10:56 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Fri, 25 Oct 2019 00:55:58 +0000 (10:55 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Fri, 25 Oct 2019 00:55:51 +0000 (10:55 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.5
teor [Fri, 25 Oct 2019 00:38:22 +0000 (10:38 +1000)]
Merge branch 'maint-0.4.2'
teor [Fri, 25 Oct 2019 00:38:01 +0000 (10:38 +1000)]
Merge remote-tracking branch 'tor-github/pr/1466' into maint-0.4.2
teor [Fri, 25 Oct 2019 00:27:41 +0000 (10:27 +1000)]
Merge remote-tracking branch 'tor-github/pr/1463'
teor [Thu, 24 Oct 2019 23:53:11 +0000 (09:53 +1000)]
changes: file for 31919's bionic Travis image change
teor [Thu, 24 Oct 2019 23:48:14 +0000 (09:48 +1000)]
Merge branch 'ticket31919_bionic_029' into ticket31919_bionic_035
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.
teor [Thu, 24 Oct 2019 23:42:14 +0000 (09:42 +1000)]
Merge branch 'maint-0.4.2'
teor [Thu, 24 Oct 2019 23:41:48 +0000 (09:41 +1000)]
Merge remote-tracking branch 'tor-github/pr/1464' into maint-0.4.2
Nick Mathewson [Thu, 24 Oct 2019 19:55:38 +0000 (15:55 -0400)]
Merge branch 'maint-0.4.2'
"ours" to avoid version bump.
Nick Mathewson [Thu, 24 Oct 2019 19:55:22 +0000 (15:55 -0400)]
bump to 0.4.2.3-alpha-dev
Nick Mathewson [Thu, 24 Oct 2019 19:52:55 +0000 (15:52 -0400)]
Forward-port the changelog for 0.4.2.3-alpha
Nick Mathewson [Thu, 24 Oct 2019 15:45:07 +0000 (11:45 -0400)]
A little more text in the SEE ALSO section.
Nick Mathewson [Thu, 24 Oct 2019 15:44:19 +0000 (11:44 -0400)]
Merge remote-tracking branch 'tor-github/pr/1437'
David Goulet [Thu, 24 Oct 2019 15:25:05 +0000 (11:25 -0400)]
dir: Return 503 code when rejecting single hop request
Single hop rejection (POST and GET) for HS v3 descriptor now return a 503 code
which is more accurate code from dir-spec.txt and from other rejection case in
the code.
For instance if you are not a relay and you get a POST request, a 503 code is
sent back with a rejection message.
Part of #31958
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 24 Oct 2019 15:23:31 +0000 (11:23 -0400)]
dir: Remove connection_dir_is_anonymous() logging
First, remove the HSDir mention which should not be in that generic function.
Second, move them to debug() level since they are possible error case.
Part of #31958
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 24 Oct 2019 15:08:25 +0000 (11:08 -0400)]
dir: Look if circuit is closed in connection_dir_is_anonymous()
Before inspecting the p_chan, we must check if the circuit is marked for close
because if it is the case, the channels are nullified from the circuit.
Several valid cases can mark the circuit for close of the directory
connection.
Fixes #31958
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 24 Oct 2019 13:08:36 +0000 (09:08 -0400)]
configure: Add --disable-module-relay to summary
Closes #32266
Signed-off-by: David Goulet <dgoulet@torproject.org>
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>
Nick Mathewson [Wed, 23 Oct 2019 17:26:08 +0000 (13:26 -0400)]
Add a script to rename C identifiers, and optionally add a commit message
This script should "pay for itself" if it prevents one bug caused by
careless search-replace-commit loops.
teor [Thu, 24 Oct 2019 04:03:48 +0000 (14:03 +1000)]
scripts/git: Make spaces consistent in pre-push.git-hook
Part of 31919.
teor [Thu, 24 Oct 2019 03:59:02 +0000 (13:59 +1000)]
scripts/git: Only check modified files in existing git hook checks
Part of 31919.
teor [Wed, 23 Oct 2019 05:43:27 +0000 (15:43 +1000)]
scripts/git: Add check_cocci_parse.sh to the pre-commit hook
But only check modified files, which dramatically speeds up
check_cocci_parse.sh.
Part of 31919.
teor [Wed, 23 Oct 2019 12:17:37 +0000 (22:17 +1000)]
scripts/cocci: Check owned src in check_cocci_parse.sh by default
Check the tor-owned sources in an 0.3.5 directory layout, if no
files are provided on the command line.
Part of 31919.
teor [Wed, 23 Oct 2019 05:40:09 +0000 (15:40 +1000)]
scripts/cocci: Add check_cocci_parse.sh and default exceptions
Add check_cocci_parse.sh, which is a thin wrapper around
try_parse.sh. Add a default exceptions file, and use it in
check_cocci_parse.sh.
Part of 31919.
teor [Thu, 24 Oct 2019 01:34:28 +0000 (11:34 +1000)]
scripts/cocci: Remove unused arguments from try_parse.sh spatch
Part of 31919.
teor [Wed, 23 Oct 2019 05:37:20 +0000 (15:37 +1000)]
scripts/cocci: Add an exceptions file to try_parse.sh
Set $TOR_COCCI_EXCEPTIONS_FILE to the name of an exceptions file,
containing a list of filename patterns matched by 'grep -f'.
Part of 31919.
Nick Mathewson [Thu, 24 Oct 2019 00:26:15 +0000 (20:26 -0400)]
Merge branch 'maint-0.4.2'
"ours" to avoid version bump.
Nick Mathewson [Thu, 24 Oct 2019 00:25:34 +0000 (20:25 -0400)]
Bump to 0.4.2.3-alpha
teor [Thu, 24 Oct 2019 00:00:47 +0000 (10:00 +1000)]
Merge remote-tracking branch 'tor-github/pr/1447'
David Goulet [Wed, 23 Oct 2019 13:11:43 +0000 (09:11 -0400)]
Merge branch 'tor-github/pr/1451'
teor [Wed, 23 Oct 2019 12:59:16 +0000 (22:59 +1000)]
Merge remote-tracking branch 'tor-github/pr/1449'
teor [Wed, 23 Oct 2019 03:36:39 +0000 (13:36 +1000)]
changes: file for 32216
teor [Wed, 23 Oct 2019 03:28:37 +0000 (13:28 +1000)]
scripts/git: Avoid sleeping before the last push in git-push-all.sh
Change the loop order, so that we only sleep between pushes,
and avoid sleeping after all the pushes are done.
(In rare cases, there may still be an extra sleep.)
Part of 32216.
teor [Wed, 23 Oct 2019 03:26:07 +0000 (13:26 +1000)]
scripts/git: Make git-push-all.sh skip more branches that match upstream
The script now skips master, maint-* and release-* branches that match
upstream, not just test branches.
And fix "no branches" bugs that this change makes happen more often.
Part of 32216.
teor [Wed, 23 Oct 2019 02:58:15 +0000 (12:58 +1000)]
scripts/git: Pass all unrecognised arguments to git-push-all.sh
This makes the behaviour of git-push-all.sh -n identical to the other
git scripts.
Part of 32216.
teor [Wed, 23 Oct 2019 03:00:35 +0000 (13:00 +1000)]
scripts/git: Fix a variable name typo in git-push-all.sh
Obviously correct changes to already reviewed code.
teor [Wed, 23 Oct 2019 02:26:32 +0000 (12:26 +1000)]
changes: file for 29603
We merged this change without a changes file.
teor [Wed, 23 Oct 2019 00:00:49 +0000 (10:00 +1000)]
Merge branch 'maint-0.4.2'
teor [Tue, 22 Oct 2019 23:59:07 +0000 (09:59 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
`git merge --strategy ours` to use STATIC for unit tests in
maint-0.4.2.
teor [Tue, 22 Oct 2019 23:58:22 +0000 (09:58 +1000)]
Merge branch 'pr1450_squashed' into maint-0.4.1
Nick Mathewson [Thu, 29 Aug 2019 15:43:43 +0000 (11:43 -0400)]
Authorities reject relays running unsupported Tor release series.
Our minimum version is now 0.2.9.5-alpha. Series 0.3.0, 0.3.1,
0.3.2, 0.3.3, and 0.3.4 are now rejected.
Also, extract this version-checking code into a new function, so we
can test it.
Closes ticket 31549.
Also reject 0.3.5.0 through 0.3.5.6-rc as unstable.
teor [Tue, 22 Oct 2019 22:47:30 +0000 (08:47 +1000)]
Merge branch 'maint-0.4.2'
teor [Tue, 22 Oct 2019 22:47:23 +0000 (08:47 +1000)]
Merge branch 'maint-0.4.1' into maint-0.4.2
teor [Tue, 22 Oct 2019 22:47:15 +0000 (08:47 +1000)]
Merge branch 'maint-0.4.0' into maint-0.4.1
teor [Tue, 22 Oct 2019 22:47:08 +0000 (08:47 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 22 Oct 2019 22:47:01 +0000 (08:47 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.5
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
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
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
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
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
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.
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
Philipp Winter [Thu, 19 Sep 2019 19:42:44 +0000 (12:42 -0700)]
Remove outdated note.
BridgeDB supports bridge-distribution lines since version 0.5.0:
<https://bugs.torproject.org/23957>
Roger Dingledine [Wed, 16 Oct 2019 10:13:14 +0000 (06:13 -0400)]
clarify in man page: we count by powers of two
Make clear in the man page, in both the bandwidth section and the
accountingmax section, that Tor counts in powers of two, not
powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
bytes.
Resolves ticket 32106.
teor [Tue, 22 Oct 2019 21:37:39 +0000 (07:37 +1000)]
Tidy whitespace around some STMT_BEGINs and STMT_ENDs
Nick Mathewson [Tue, 22 Oct 2019 18:47:28 +0000 (14:47 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 18:46:10 +0000 (14:46 -0400)]
Merge remote-tracking branch 'tor-github/pr/1441' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 18:21:17 +0000 (14:21 -0400)]
Changes file for options_validate() API changes in #32187.
Nick Mathewson [Tue, 22 Oct 2019 18:16:23 +0000 (14:16 -0400)]
config validation: make the "old_options" argument const.
We can't do this with the "options" argument yet, since several
places in the code change those right now.
Nick Mathewson [Tue, 22 Oct 2019 18:09:02 +0000 (14:09 -0400)]
test_options: remove def_opt member of test data.
Nick Mathewson [Tue, 22 Oct 2019 18:07:32 +0000 (14:07 -0400)]
test_options: remove "dflt" part of setup_options().
It is no longer used anywhere.
Nick Mathewson [Tue, 22 Oct 2019 18:06:02 +0000 (14:06 -0400)]
Remove a pair of now-unused default-options arguments.
Nick Mathewson [Tue, 22 Oct 2019 18:05:29 +0000 (14:05 -0400)]
test_options: Fix options_validate() calls in macros.
Coccinelle missed these.
Nick Mathewson [Tue, 22 Oct 2019 18:01:42 +0000 (14:01 -0400)]
Use coccinelle to fix most options_validate() call sites.
There was one that it could not find because it was in a macro definition.
I used the following semantic patch:
@@
expression e1, e2, e3, e4, e5;
@@
options_validate(e1,
e2,
- e3,
- e4,
e5)
Nick Mathewson [Tue, 22 Oct 2019 17:56:07 +0000 (13:56 -0400)]
Remove unused arguments from options_validate().
This change breaks compilation; a subsequent commit will fix it with
a coccinelle patch.
Nick Mathewson [Tue, 22 Oct 2019 17:52:40 +0000 (13:52 -0400)]
validate_fn(): remove now-unused defaults and from_setconf.
These arguments were only used by options_validate, and are now
ignored even there.
Nick Mathewson [Tue, 22 Oct 2019 17:01:25 +0000 (13:01 -0400)]
Remove changes files that are already merged in 0.4.2.
Nick Mathewson [Tue, 22 Oct 2019 16:54:44 +0000 (12:54 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:54:43 +0000 (12:54 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:54:37 +0000 (12:54 -0400)]
Merge remote-tracking branch 'tor-github/pr/1330' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:53:12 +0000 (12:53 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:53:12 +0000 (12:53 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:53:06 +0000 (12:53 -0400)]
Merge remote-tracking branch 'tor-github/pr/1341' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:52:32 +0000 (12:52 -0400)]
Merge remote-tracking branch 'tor-github/pr/1446'
Nick Mathewson [Tue, 22 Oct 2019 16:51:33 +0000 (12:51 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:51:33 +0000 (12:51 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:51:27 +0000 (12:51 -0400)]
Merge remote-tracking branch 'tor-github/pr/1343' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:15:14 +0000 (12:15 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:15:14 +0000 (12:15 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:15:06 +0000 (12:15 -0400)]
Merge remote-tracking branch 'tor-github/pr/1303' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:13:56 +0000 (12:13 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:13:55 +0000 (12:13 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:13:47 +0000 (12:13 -0400)]
Merge remote-tracking branch 'tor-github/pr/1302' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:11:59 +0000 (12:11 -0400)]
Merge branch 'maint-0.4.2'
Nick Mathewson [Tue, 22 Oct 2019 16:11:59 +0000 (12:11 -0400)]
Merge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 22 Oct 2019 16:11:50 +0000 (12:11 -0400)]
Merge remote-tracking branch 'tor-github/pr/1346' into maint-0.4.1
Nick Mathewson [Tue, 22 Oct 2019 16:10:30 +0000 (12:10 -0400)]
Merge 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.4.2'