]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 5 Mar 2020 14:09:16 +0000 (09:09 -0500)]
Merge remote-tracking branch 'tor-github/pr/1772/head'
Nick Mathewson [Thu, 5 Mar 2020 13:48:40 +0000 (08:48 -0500)]
Merge branch 'maint-0.4.3'
Nick Mathewson [Thu, 5 Mar 2020 13:23:32 +0000 (08:23 -0500)]
Merge branch 'clang_format_prep_3'
George Kadianakis [Tue, 3 Mar 2020 12:35:31 +0000 (14:35 +0200)]
Merge branch 'tor-github/pr/1763'
Nick Mathewson [Wed, 26 Feb 2020 16:33:03 +0000 (11:33 -0500)]
shared_random: Improve fallback for client no-live-consensus case.
In this case, when we're looking for the voting interval, we should
try looking at the _latest_ consensus if we have one. When we're
looking for the start of the current voting period, we can use our
existing fallback logic without complaint, since the voting interval
code will already have given us a reasonable voting interval, and we
want to have a round starting time based on the current time.
Nick Mathewson [Wed, 26 Feb 2020 13:16:30 +0000 (08:16 -0500)]
Comment updates from review.
Nick Mathewson [Mon, 24 Feb 2020 17:29:47 +0000 (12:29 -0500)]
changes file for 33436
Nick Mathewson [Mon, 24 Feb 2020 16:56:55 +0000 (11:56 -0500)]
Make voting_schedule.h work correctly when dirauth-mode is disabled.
Nick Mathewson [Mon, 24 Feb 2020 16:06:44 +0000 (11:06 -0500)]
Stop using all dirauth-only options in shared_random_client.c
This is not as clean a patch as I would like: see the comment on
ASSUME_AUTHORITY_SCHEDULING. This issue here is that the unit tests
sometimes assume that we are going to be looking at the dirauth
options and behaving like a dirauth, but without setting the options
to turn is into one.
This isn't an issue for actually running Tor, as far as I can tell
with chutney.
Neel Chauhan [Wed, 26 Feb 2020 23:48:45 +0000 (15:48 -0800)]
Correct spacing in dns_launch_correctness_checks()
Nick Mathewson [Wed, 26 Feb 2020 21:45:33 +0000 (16:45 -0500)]
Run "make autostyle"
Nick Mathewson [Wed, 26 Feb 2020 19:19:53 +0000 (14:19 -0500)]
changes file for ticket 33460.
Nick Mathewson [Wed, 26 Feb 2020 19:16:55 +0000 (14:16 -0500)]
In typed_var_kvassign, include config names in error messages.
This should improve the usability of our configuration error messages.
Nick Mathewson [Wed, 26 Feb 2020 17:40:53 +0000 (12:40 -0500)]
confmgt: when a units value is invalid, include a meaningful error.
Part of 33460.
Nick Mathewson [Wed, 26 Feb 2020 17:40:53 +0000 (12:40 -0500)]
confmgt: when an int/enum value is invalid, say which values are ok.
Part of 33460.
Nick Mathewson [Tue, 25 Feb 2020 17:58:23 +0000 (12:58 -0500)]
Merge remote-tracking branch 'tor-github/pr/1750/head'
Nick Mathewson [Mon, 24 Feb 2020 15:14:59 +0000 (10:14 -0500)]
Dirauth-specific function to get voting interval.
Nick Mathewson [Mon, 24 Feb 2020 15:12:47 +0000 (10:12 -0500)]
Extract most of dirauth_sched_get_next_valid_after_time()
Most of this function was about recreating a voting schedule on
demand if it didn't exist yet or was not up-to-date. I've made that
into its own function.
Nick Mathewson [Mon, 24 Feb 2020 15:06:55 +0000 (10:06 -0500)]
Rename voting_schedule_*() functions.
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
voting_schedule_recalculate_timing dirauth_sched_recalculate_timing \
voting_schedule_get_start_of_next_interval voting_sched_get_start_of_interval_after \
voting_schedule_get_next_valid_after_time dirauth_sched_get_next_valid_after_time
Nick Mathewson [Mon, 24 Feb 2020 15:04:01 +0000 (10:04 -0500)]
Move one voting schedule fn into networkstatus.c
The 'voting_schdule_get_start_of_next_interval' function isn't
actually dirauth-specific.
Nick Mathewson [Mon, 24 Feb 2020 13:53:54 +0000 (08:53 -0500)]
Move voting_schedule.[ch] to src/feature/dirauth/
Nick Mathewson [Mon, 24 Feb 2020 13:10:20 +0000 (08:10 -0500)]
Tweak a couple of URLs in gettingstarted.md
Nick Mathewson [Mon, 24 Feb 2020 13:06:42 +0000 (08:06 -0500)]
Merge remote-tracking branch 'tor-github/pr/1761/head'
Nick Mathewson [Mon, 24 Feb 2020 12:49:45 +0000 (07:49 -0500)]
Merge branch 'ticket33316_squashed'
Nick Mathewson [Fri, 21 Feb 2020 21:23:17 +0000 (16:23 -0500)]
extend ticket33316 changes file to include more changes
Nick Mathewson [Fri, 14 Feb 2020 18:29:15 +0000 (13:29 -0500)]
Move process subsystem after evloop.
Process uses evloop, and so should be initialized after it.
Nick Mathewson [Fri, 14 Feb 2020 14:34:51 +0000 (09:34 -0500)]
Merge ocirc and orconn events into or subsystem.
Pubsub events are not supposed to have their own subsystems; they're
supposed to be part of a parent subsystem.
Nick Mathewson [Thu, 13 Feb 2020 20:11:18 +0000 (15:11 -0500)]
Initialize all subsystems during the unit tests
Previously we had initialized only the library subsystems. This
made it hard to write some tests, and encouraged people to put their
subsystems at a level lower than they really belonged at. Instead,
it probably just makes sense to initialize everything before we
start the tests.
Without this fix, 33316 breaks our tests because of raising the
level of the ocirc/orconn events.
Nick Mathewson [Thu, 13 Feb 2020 18:37:47 +0000 (13:37 -0500)]
Changes file for ticket 33316
Nick Mathewson [Thu, 13 Feb 2020 18:14:54 +0000 (13:14 -0500)]
Move winprocess_sys into a new low-level hardening module
This code was in our process module, but it doesn't belong there:
process is for launching and monitoring subprocesses, not for
hardening the current process.
This change lets us have our subsystem init order more closely match
our dependency order.
Nick Mathewson [Mon, 24 Feb 2020 12:45:20 +0000 (07:45 -0500)]
Merge remote-tracking branch 'tor-github/pr/1685/head'
George Kadianakis [Mon, 24 Feb 2020 10:15:35 +0000 (12:15 +0200)]
Final touches to #32709 based on Nick's feedback.
- Fix a bug and add unittest.
- Add changes file.
- Add man page entry.
Nick Mathewson [Thu, 20 Feb 2020 19:38:41 +0000 (14:38 -0500)]
Use PRIu64 and TOR_PRIuSZ, to fix 32-bit build error.
Taylor Yu [Thu, 20 Feb 2020 23:13:02 +0000 (17:13 -0600)]
changes file for ticket 33369
Taylor Yu [Thu, 20 Feb 2020 22:49:08 +0000 (16:49 -0600)]
manpage: fix up toc attribute
Nick Mathewson [Thu, 20 Feb 2020 17:26:32 +0000 (12:26 -0500)]
Make direclient_dump_total_dls() respect SafeLogging and pass tests.
Don't dump totals with anonymous purposes. Additionally, don't dump
headers that have nothing underneath them.
Nick Mathewson [Thu, 20 Feb 2020 15:44:43 +0000 (10:44 -0500)]
Merge branch 'maint-0.4.3'
Nick Mathewson [Thu, 20 Feb 2020 15:44:36 +0000 (10:44 -0500)]
Merge remote-tracking branch 'tor-github/pr/1757/head' into maint-0.4.3
Nick Mathewson [Thu, 20 Feb 2020 15:41:12 +0000 (10:41 -0500)]
Merge branch 'extract_routerkeys_squashed'
Nick Mathewson [Thu, 20 Feb 2020 00:52:04 +0000 (19:52 -0500)]
Move relay_handshake.[ch] into src/feature/relay, and make it optional
Nick Mathewson [Thu, 20 Feb 2020 00:30:05 +0000 (19:30 -0500)]
Disable routerkeys.c with --disable-relay-mode.
Nick Mathewson [Thu, 20 Feb 2020 14:14:40 +0000 (09:14 -0500)]
Merge remote-tracking branch 'tor-github/pr/1745/head'
Nick Mathewson [Thu, 20 Feb 2020 13:50:18 +0000 (08:50 -0500)]
Merge branch 'maint-0.4.3'
Nick Mathewson [Thu, 20 Feb 2020 13:48:17 +0000 (08:48 -0500)]
Merge remote-tracking branch 'tor-github/pr/1719/head' into maint-0.4.3
Nick Mathewson [Thu, 20 Feb 2020 13:36:40 +0000 (08:36 -0500)]
Move router_reset_reachability() into correct header, add a stub
Without this, -O0 builds fail, which is a sign that LTO builds may
fail too.
Nick Mathewson [Thu, 20 Feb 2020 13:33:40 +0000 (08:33 -0500)]
run "make autostyle"
Nick Mathewson [Thu, 20 Feb 2020 13:17:47 +0000 (08:17 -0500)]
Merge branch 'ticket4631_squashed'
teor [Wed, 19 Feb 2020 01:15:20 +0000 (11:15 +1000)]
dirvote: Improve the posted vote log message
Cleanup after 4631.
swati [Thu, 20 Feb 2020 12:20:32 +0000 (17:50 +0530)]
#33369:Added TOC and hyperlinks for cross-refs
Nick Mathewson [Thu, 20 Feb 2020 00:11:49 +0000 (19:11 -0500)]
Extract relay-only handshake code into its own file.
This is not the only relay-only handshake code, but it is most of
such code that is in connection_or.c.
Roger Dingledine [Wed, 19 Feb 2020 19:53:36 +0000 (14:53 -0500)]
Nick Mathewson [Wed, 19 Feb 2020 18:58:53 +0000 (13:58 -0500)]
Merge branch 'extract_relay_dns'
Nick Mathewson [Wed, 19 Feb 2020 18:55:18 +0000 (13:55 -0500)]
Merge branch 'extract_ext_orport'
Nick Mathewson [Wed, 19 Feb 2020 17:30:09 +0000 (12:30 -0500)]
Make dns_cancel_pending_resolve() STATIC.
It is not called by anything outside of the tests and dns.c.
Nick Mathewson [Wed, 19 Feb 2020 17:27:49 +0000 (12:27 -0500)]
Remove assert_all_pending_dns_resolves_ok().
It hasn't been used since 2009.
Nick Mathewson [Wed, 19 Feb 2020 17:17:13 +0000 (12:17 -0500)]
dns.h: label functions that are only used inside feature/relay
Nick Mathewson [Wed, 19 Feb 2020 17:12:00 +0000 (12:12 -0500)]
Note module-local functions in ext_orport.h
Since these are only used inside the feature/relay module, they
don't need stubs.
Nick Mathewson [Wed, 19 Feb 2020 17:04:31 +0000 (12:04 -0500)]
Make connection_or_get_by_ext_or_id() testing-only
Apparently it is only used by the unit tests: tor doesn't want it at
all.
I've opened a new ticket (33383) to we if we should remove this
whole feature.
Nick Mathewson [Wed, 19 Feb 2020 16:58:17 +0000 (11:58 -0500)]
Merge branch 'extract_selftest'
Nick Mathewson [Wed, 19 Feb 2020 16:57:27 +0000 (11:57 -0500)]
Merge remote-tracking branch 'tor-github/pr/1756/head'
Nick Mathewson [Wed, 19 Feb 2020 16:39:05 +0000 (11:39 -0500)]
Merge remote-tracking branch 'tor-github/pr/1755/head'
teor [Wed, 19 Feb 2020 01:09:21 +0000 (11:09 +1000)]
dirvote: Remove an incorrect log message
Cleanup after 4631.
teor [Wed, 19 Feb 2020 00:09:29 +0000 (10:09 +1000)]
Merge remote-tracking branch 'tor-github/pr/1744'
teor [Tue, 18 Feb 2020 23:29:02 +0000 (09:29 +1000)]
Makefile: Tweak the test-network* chuttney networks
In "make test-network", add tests for single onion services v2 and v3.
In "make test-network-all", test onion services v2 and v3 in the same
network.
Part of 33334.
teor [Tue, 18 Feb 2020 22:22:01 +0000 (08:22 +1000)]
practracker: Read unicode files when using Python 2
Allow the "practracker" coding best practices checking script to read
unicode files, when using Python 2.
We made the script use unicode literals in 0.4.3.1-alpha, but didn't
change the codec for opening files.
Fixes bug 33374; bugfix on 0.4.3.1-alpha.
teor [Tue, 18 Feb 2020 22:13:02 +0000 (08:13 +1000)]
Run "practracker --regen-overbroad"
Closes ticket 33373.
Taylor Yu [Tue, 18 Feb 2020 19:34:46 +0000 (13:34 -0600)]
changes file for ticket 33275
Taylor Yu [Tue, 18 Feb 2020 19:28:57 +0000 (13:28 -0600)]
manpage: Add a missing out-of-order comment
David Goulet [Tue, 18 Feb 2020 18:57:03 +0000 (13:57 -0500)]
Merge branch 'tor-github/pr/1746'
Steven Engler [Mon, 17 Feb 2020 16:38:00 +0000 (11:38 -0500)]
Small changes to scheduler comments and state changes
Tries to make some of the comments in scheduler.c easier to follow,
and simplifies a couple of the scheduler channel state changes.
Nick Mathewson [Tue, 18 Feb 2020 18:30:20 +0000 (13:30 -0500)]
Do not build selftest.c when running relay mode is disabled.
Nick Mathewson [Tue, 18 Feb 2020 18:20:19 +0000 (13:20 -0500)]
Make ext_orport.c relay-mode-only.
Nick Mathewson [Tue, 18 Feb 2020 18:10:57 +0000 (13:10 -0500)]
Move ext_orport identifier map into ext_orport.c
There's no need to move the declarations: those were already in
ext_orport.h.
This shrinks connection_or.c a little.
Nick Mathewson [Tue, 18 Feb 2020 18:07:33 +0000 (13:07 -0500)]
Move some declarations into proto_ext_or.h
They are for functions declared in that file.
Nick Mathewson [Tue, 18 Feb 2020 17:55:57 +0000 (12:55 -0500)]
Make sure callers can handle NULL ext-or auth cookie filename
Nick Mathewson [Tue, 18 Feb 2020 17:32:00 +0000 (12:32 -0500)]
Disable dns.c when relay mode is disabled.
This saves about 1% for me on a binary compiled without relay mode.
Closes ticket 33366.
Nick Mathewson [Tue, 18 Feb 2020 17:08:29 +0000 (12:08 -0500)]
Move DNS TTL manipulation code to src/core/or
This removes a dependency from the client code on feature/relay.
Nick Mathewson [Tue, 18 Feb 2020 17:00:24 +0000 (12:00 -0500)]
Replace identifiers related to clipping DNS ttls.
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
MIN_DNS_TTL_AT_EXIT MIN_DNS_TTL \
MAX_DNS_TTL_AT_EXIT MAX_DNS_TTL \
dns_clip_ttl clip_dns_ttl
Nick Mathewson [Thu, 12 Dec 2019 17:11:09 +0000 (12:11 -0500)]
Remember dirctory bw usage, and log it in the heartbeat
Closes ticket 32720.
David Goulet [Tue, 18 Feb 2020 14:06:13 +0000 (09:06 -0500)]
Merge branch 'tor-github/pr/1743'
Nick Mathewson [Tue, 18 Feb 2020 14:01:56 +0000 (09:01 -0500)]
lintChanges: Tolerate variants that sortChanges knows how to clean up.
David Goulet [Tue, 18 Feb 2020 13:46:52 +0000 (08:46 -0500)]
Merge branch 'tor-github/pr/1740'
George Kadianakis [Tue, 18 Feb 2020 10:37:34 +0000 (12:37 +0200)]
Fix issues pointed out by Nick.
- Loose the asserts on num_pkeys.
- Straighten some dangling &.
- Fix some unpredictable memcpys.
teor [Tue, 18 Feb 2020 03:21:49 +0000 (13:21 +1000)]
dirauth: Update disabled dirvote_add_vote()
Update the function that handles directory authority votes when the
dirauth module is disabled.
Part of 4631.
teor [Tue, 18 Feb 2020 02:38:39 +0000 (12:38 +1000)]
changes: file for 4631
teor [Tue, 18 Feb 2020 02:22:13 +0000 (12:22 +1000)]
dirauth: Refactor dirvote_add_vote()
Refactor dirvote_add_vote() by splitting some code out into static
functions.
Cleanup after 4631.
teor [Tue, 18 Feb 2020 02:08:36 +0000 (12:08 +1000)]
test/dir: Add specific tests for late vote rejection
Part of 4631.
teor [Tue, 18 Feb 2020 02:07:51 +0000 (12:07 +1000)]
test/dir: Update the tests for late vote rejection
Part of 4631.
Roger Dingledine [Wed, 29 Jan 2020 12:31:19 +0000 (07:31 -0500)]
Don't accept posted votes after :52:30
If we receive via 'post' a vote from a dir auth after the
fetch_missing_votes cutoff, that means we didn't get it by the time we
begin the "fetching missing votes from everybody else" phase, which means
it is very likely to cause a consensus split if we count it. Instead,
we reject it.
But we still allow votes that we fetch ourselves after that cutoff.
This is a demo branch for making progress on #4631.
I've been running it on moria1 and it catches and handles real buggy
behavior from directory authorities, e.g.
Jan 28 15:59:50.804 [warn] Rejecting vote from 199.58.81.140 received at 2020-01-28 20:59:50; our cutoff for received votes is 2020-01-28 20:52:30
Jan 28 15:59:50.805 [warn] Rejected vote from 199.58.81.140 ("Vote received too late, would be dangerous to count it").
Jan 29 01:52:52.667 [warn] Rejecting vote from 204.13.164.118 received at 2020-01-29 06:52:52; our cutoff for received votes is 2020-01-29 06:52:30
Jan 29 01:52:52.669 [warn] Rejected vote from 204.13.164.118 ("Vote received too late, would be dangerous to count it").
Jan 29 04:53:26.323 [warn] Rejecting vote from 204.13.164.118 received at 2020-01-29 09:53:26; our cutoff for received votes is 2020-01-29 09:52:30
Jan 29 04:53:26.326 [warn] Rejected vote from 204.13.164.118 ("Vote received too late, would be dangerous to count it").
swati [Mon, 17 Feb 2020 17:17:06 +0000 (22:47 +0530)]
Revised and incorportaed comments from #33275
teor [Mon, 17 Feb 2020 12:03:09 +0000 (22:03 +1000)]
Makefile: Silence some submake logs in test-network
These logs split up the chutney SKIP, PASS, and FAIL messages,
and they don't actually contain any useful information.
Cleanup after 33334.
teor [Mon, 17 Feb 2020 07:21:13 +0000 (17:21 +1000)]
Travis: Produce detailed chutney diagnostics
When a Travis chutney job fails, use chutney's new "diagnostics.sh" tool
to produce detailed diagnostic output.
Closes ticket 32792.
teor [Mon, 17 Feb 2020 04:50:24 +0000 (14:50 +1000)]
Makefile: Add an IPv6 mixed chutney network
This network is used in make test-network-all and test-network-ipv6.
Closes 33334.
teor [Mon, 17 Feb 2020 04:49:13 +0000 (14:49 +1000)]
Makefile: Add v3 onion services to the mixed network
This network is used in make test-network-all and test-network-ipv4.
Part of 33334.
teor [Mon, 17 Feb 2020 04:26:41 +0000 (14:26 +1000)]
Makefile: Refactor and tweak test-network
The refactor is simpler, and supports IPv6 mixed networks.
The refactor also slightly changes the order of the IPv6 and mixed
checks. But it's closer to the original order before 33280.
And if all the network lists that need a network type are empty,
we don't check if we can run that network type. (And if a network
list is empty, we don't say we're going to run an empty list.)
Part of 33334.
teor [Mon, 17 Feb 2020 03:49:23 +0000 (13:49 +1000)]
Merge remote-tracking branch 'tor-github/pr/1731'
teor [Fri, 14 Feb 2020 01:11:09 +0000 (11:11 +1000)]
Makefile: Hide some recursive make logs
These logs break up the chutney test output.
Part of 33280.
teor [Fri, 14 Feb 2020 00:34:17 +0000 (10:34 +1000)]
Makefile: Quote test-network variable expansions
Also:
* wrap some long lines
* replace an instance of "test ... -a ..." with "test ... && test ..."
Part of 33280.
teor [Fri, 14 Feb 2020 00:38:40 +0000 (10:38 +1000)]
Travis: Make Chutney output more readable
* Use a shorter name for the chutney make target
* Put the chutney make target first, when using a custom target
Part of 33280.
teor [Mon, 17 Feb 2020 03:46:09 +0000 (13:46 +1000)]
Merge branch 'bug33195_master' into ticket33280_master
Conflicts:
* Keep the changes from ticket33280_master