]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 25 Apr 2019 19:09:24 +0000 (15:09 -0400)]
Move dirauth periodic events into dirauth module.
Closes ticket 30294.
Nick Mathewson [Thu, 25 Apr 2019 18:20:41 +0000 (14:20 -0400)]
Turn 'mainloop' into a subsystem.
We need a little refactoring for this to work, since the
initialization code for the periodic events assumes that libevent is
already initialized, which it can't be until it's configured.
This change, combined with the previous ones, lets other subsystems
declare their own periodic events, without mainloop.c having to know
about them. Implements ticket 30293.
Nick Mathewson [Thu, 25 Apr 2019 17:23:18 +0000 (13:23 -0400)]
Move responsibility for checking if events are setup into periodic.c
We have checks in various places in mainlook.c to make sure that
events are initialized before we invoke any periodic_foo() functions
on them. But now that each subsystem will own its own periodic
events, it will be cleaner if we don't assume that they are all
setup or not.
Nick Mathewson [Thu, 25 Apr 2019 14:09:36 +0000 (10:09 -0400)]
Move the responsibility for listing periodic events to periodic.c
The end goal here is to move the periodic callback to their
respective modules, so that mainloop.c doesn't have to include so
many other things.
This patch doesn't actually move any of the callbacks out of
mainloop.c yet.
Nick Mathewson [Wed, 24 Apr 2019 21:06:56 +0000 (17:06 -0400)]
Merge remote-tracking branch 'tor-github/pr/942'
Nick Mathewson [Wed, 24 Apr 2019 21:05:20 +0000 (17:05 -0400)]
Merge remote-tracking branch 'tor-github/pr/964'
Nick Mathewson [Wed, 24 Apr 2019 18:15:18 +0000 (14:15 -0400)]
Allow do_resolve() to be longer.
David Goulet [Wed, 24 Apr 2019 13:53:15 +0000 (09:53 -0400)]
Merge branch 'tor-github/pr/951'
David Goulet [Wed, 24 Apr 2019 13:51:14 +0000 (09:51 -0400)]
Merge branch 'tor-github/pr/943'
David Goulet [Wed, 24 Apr 2019 13:45:32 +0000 (09:45 -0400)]
Merge branch 'tor-github/pr/955'
David Goulet [Wed, 24 Apr 2019 13:43:28 +0000 (09:43 -0400)]
Merge branch 'tor-github/pr/939'
David Goulet [Wed, 24 Apr 2019 13:39:32 +0000 (09:39 -0400)]
Merge branch 'tor-github/pr/930'
Nick Mathewson [Tue, 23 Apr 2019 19:39:23 +0000 (15:39 -0400)]
Merge remote-tracking branch 'tor-github/pr/944'
Nick Mathewson [Tue, 23 Apr 2019 18:14:17 +0000 (14:14 -0400)]
Rename outvar to follow _out convention.
Nick Mathewson [Tue, 23 Apr 2019 18:11:04 +0000 (14:11 -0400)]
Merge remote-tracking branch 'tor-github/pr/935'
Nick Mathewson [Tue, 23 Apr 2019 16:52:54 +0000 (12:52 -0400)]
Merge remote-tracking branch 'tor-github/pr/971'
Nick Mathewson [Tue, 23 Apr 2019 16:51:44 +0000 (12:51 -0400)]
Merge branch 'ticket30051_take2_squashed'
rl1987 [Fri, 19 Apr 2019 06:51:04 +0000 (09:51 +0300)]
Add changes file
rl1987 [Fri, 19 Apr 2019 06:46:36 +0000 (09:46 +0300)]
Call practracker from pre-push and pre-commit hooks
Nick Mathewson [Tue, 23 Apr 2019 16:48:37 +0000 (12:48 -0400)]
Merge remote-tracking branch 'tor-github/pr/962'
teor [Mon, 22 Apr 2019 01:48:07 +0000 (11:48 +1000)]
Travis: Show stem's tor log after failure
Closes ticket 30234.
Neel Chauhan [Fri, 19 Apr 2019 13:50:54 +0000 (09:50 -0400)]
Initialize rate_limited in hs_pick_hsdir() to false
Neel Chauhan [Fri, 19 Apr 2019 13:21:20 +0000 (09:21 -0400)]
Only set rate_limited in hs_pick_hsdir() if rate_limited_count or responsible_dirs_count is greater than 0
Neel Chauhan [Fri, 19 Apr 2019 13:17:29 +0000 (09:17 -0400)]
Initialize rate_limited to false in directory_get_from_hs_dir()
Neel Chauhan [Fri, 19 Apr 2019 12:33:00 +0000 (08:33 -0400)]
Make rate_limited and is_rate_limited a bool
teor [Fri, 19 Apr 2019 02:00:59 +0000 (12:00 +1000)]
Merge branch 'maint-0.4.0'
teor [Fri, 19 Apr 2019 02:00:50 +0000 (12:00 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Fri, 19 Apr 2019 02:00:41 +0000 (12:00 +1000)]
Merge branch 'maint-0.3.4' into maint-0.3.5
teor [Fri, 19 Apr 2019 01:59:18 +0000 (11:59 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.4
"ours" merge, to avoid taking any changes from PR 792 in 0.3.4.
(We already merged PR 791 for 29665 into 0.3.4.)
teor [Fri, 19 Apr 2019 01:52:48 +0000 (11:52 +1000)]
Merge remote-tracking branch 'tor-github/pr/710' into maint-0.3.5
teor [Fri, 19 Apr 2019 01:51:05 +0000 (11:51 +1000)]
Merge remote-tracking branch 'tor-github/pr/726' into maint-0.3.5
teor [Fri, 19 Apr 2019 01:48:41 +0000 (11:48 +1000)]
Merge remote-tracking branch 'tor-github/pr/745' into maint-0.3.5
teor [Fri, 19 Apr 2019 01:47:50 +0000 (11:47 +1000)]
Merge remote-tracking branch 'tor-github/pr/947' into maint-0.3.5
teor [Fri, 19 Apr 2019 01:47:10 +0000 (11:47 +1000)]
Merge remote-tracking branch 'tor-github/pr/946' into maint-0.3.4
teor [Fri, 19 Apr 2019 01:44:38 +0000 (11:44 +1000)]
Merge remote-tracking branch 'tor-github/pr/638' into maint-0.3.4
teor [Fri, 19 Apr 2019 01:43:46 +0000 (11:43 +1000)]
Merge remote-tracking branch 'tor-github/pr/791' into maint-0.3.4
teor [Fri, 19 Apr 2019 01:42:09 +0000 (11:42 +1000)]
Merge remote-tracking branch 'tor-github/pr/792' into maint-0.2.9
teor [Fri, 19 Apr 2019 01:39:17 +0000 (11:39 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.4
"ours" merge, to avoid taking any changes from PR 772 in 0.3.4.
(We already merged a different fix for 23790 into 0.3.2 and later.)
teor [Fri, 19 Apr 2019 01:38:52 +0000 (11:38 +1000)]
Merge remote-tracking branch 'tor-github/pr/772' into maint-0.2.9
teor [Fri, 19 Apr 2019 00:34:16 +0000 (10:34 +1000)]
practracker: accept more lines in microdescs_parse_from_string()
Part of 28223.
George Kadianakis [Thu, 18 Apr 2019 10:23:32 +0000 (13:23 +0300)]
Merge branch 'tor-github/pr/938'
George Kadianakis [Thu, 18 Apr 2019 10:22:54 +0000 (13:22 +0300)]
Merge branch 'tor-github/pr/925'
George Kadianakis [Thu, 18 Apr 2019 10:22:23 +0000 (13:22 +0300)]
Merge branch 'maint-0.4.0'
George Kadianakis [Thu, 18 Apr 2019 10:21:59 +0000 (13:21 +0300)]
Merge branch 'tor-github/pr/891' into maint-0.4.0
Neel Chauhan [Thu, 18 Apr 2019 01:41:31 +0000 (21:41 -0400)]
Grammar fixes for IPv6Exit in tor.1.txt
Neel Chauhan [Wed, 17 Apr 2019 11:26:55 +0000 (07:26 -0400)]
Update tor.1 man page for IPv6Exit
rl1987 [Wed, 17 Apr 2019 10:15:02 +0000 (13:15 +0300)]
Remove contrib/dist/tor.sh.in
teor [Wed, 17 Apr 2019 08:44:26 +0000 (18:44 +1000)]
practracker: accept the extra 25 line string from 27821
teor [Wed, 17 Apr 2019 08:43:20 +0000 (18:43 +1000)]
connection_edge: remove an extra ;
teor [Wed, 17 Apr 2019 07:58:40 +0000 (17:58 +1000)]
connection_edge: Return a web page when HTTPTunnelPort is misconfigured
Return an informative web page when the HTTPTunnelPort is used as an
HTTP proxy.
Closes ticket 27821, patch by "eighthave".
teor [Wed, 17 Apr 2019 06:46:47 +0000 (16:46 +1000)]
Merge branch 'maint-0.4.0'
teor [Wed, 17 Apr 2019 06:46:40 +0000 (16:46 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
Bernhard M. Wiedemann [Mon, 15 Apr 2019 11:57:24 +0000 (13:57 +0200)]
Do not warn about compatible OpenSSL upgrades
When releasing OpenSSL patch-level maintenance updates,
we do not want to rebuild binaries using it.
And since they guarantee ABI stability, we do not have to.
Without this patch, warning messages were produced
that confused users:
https://bugzilla.opensuse.org/show_bug.cgi?id=
1129411
Fixes bug 30190; bugfix on 0.2.4.2-alpha commit
7607ad2bec
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Neel Chauhan [Tue, 16 Apr 2019 13:16:52 +0000 (09:16 -0400)]
Update practracker exceptions.txt for policies.c
Neel Chauhan [Tue, 16 Apr 2019 12:22:17 +0000 (08:22 -0400)]
Clarify comment about IPv6Exit in policies_parse_exit_policy_from_options()
Neel Chauhan [Tue, 16 Apr 2019 12:20:48 +0000 (08:20 -0400)]
Clarify torrc comment for IPv6Exit
Neel Chauhan [Tue, 16 Apr 2019 12:19:44 +0000 (08:19 -0400)]
Add policy_using_default_exit_options() to determine if we're using the default exit options
Nick Mathewson [Tue, 16 Apr 2019 12:09:20 +0000 (08:09 -0400)]
Merge remote-tracking branch 'tor-github/pr/910'
Nick Mathewson [Tue, 16 Apr 2019 12:08:06 +0000 (08:08 -0400)]
Merge remote-tracking branch 'tor-github/pr/884'
Nick Mathewson [Mon, 15 Apr 2019 19:33:09 +0000 (15:33 -0400)]
In warn_if_nul_found, log surrounding context.
We need to encode here instead of doing escaped(), since fwict
escaped() does not currently handle NUL bytes.
Also, use warn_if_nul_found in more cases to avoid duplication.
Nick Mathewson [Mon, 15 Apr 2019 19:21:18 +0000 (15:21 -0400)]
fixup! Even more diagnostic messages for bug 28223.
Use TOR_PRIuSZ in place of %zu.
Nick Mathewson [Mon, 15 Apr 2019 18:52:08 +0000 (14:52 -0400)]
Document check for 30176, since it's a bit subtle.
Tobias Stoeckmann [Sat, 13 Apr 2019 14:55:36 +0000 (16:55 +0200)]
Clear memory in smartlist_remove_keeporder.
The smartlist functions take great care to reset unused pointers inside
the smartlist memory to NULL.
The function smartlist_remove_keeporder does not clear memory in such
way when elements have been removed. Therefore call memset after the
for-loop that removes elements. If no element is removed, it is
effectively a no-op.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Tobias Stoeckmann [Sat, 13 Apr 2019 14:54:05 +0000 (16:54 +0200)]
Add test to verify that unused pointers are NULL.
The smartlist code takes great care to set all unused pointers inside
the smartlist memory to NULL. Check if this is also the case after
modifying the smartlist multiple times.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
George Kadianakis [Mon, 15 Apr 2019 10:57:40 +0000 (13:57 +0300)]
Merge branch 'tor-github/pr/941'
George Kadianakis [Mon, 15 Apr 2019 10:56:48 +0000 (13:56 +0300)]
Merge branch 'maint-0.4.0'
George Kadianakis [Mon, 15 Apr 2019 10:56:37 +0000 (13:56 +0300)]
Merge branch 'tor-github/pr/948' into maint-0.4.0
teor [Mon, 15 Apr 2019 00:18:59 +0000 (10:18 +1000)]
Merge branch 'rust-panic1-035' into rust-panic1-040
teor [Mon, 15 Apr 2019 00:18:01 +0000 (10:18 +1000)]
Merge branch 'rust-panic1-034' into rust-panic1-035
Trivial merge: a blank line was removed between 0.3.4 and 0.3.5.
teor [Mon, 15 Apr 2019 00:15:02 +0000 (10:15 +1000)]
Merge branch 'rust-panic1' into rust-panic1-034
Neel Chauhan [Sun, 14 Apr 2019 18:27:05 +0000 (14:27 -0400)]
Update exceptions.txt for Bug #29613
Neel Chauhan [Fri, 12 Apr 2019 00:22:46 +0000 (20:22 -0400)]
Add changes file for Bug #29613
Neel Chauhan [Fri, 12 Apr 2019 00:22:27 +0000 (20:22 -0400)]
Update torrc.sample.in to IPv6Exit 1 being an exit by default
Neel Chauhan [Fri, 12 Apr 2019 00:21:51 +0000 (20:21 -0400)]
Become an exit relay if IPv6Exit is 1
Nick Mathewson [Sun, 14 Apr 2019 15:31:50 +0000 (11:31 -0400)]
Add an assertion to test_hs_cache.c to appease coverity.
Coverity doesn't like to see a path where we test a pointer for
NULL if we have already ready dereferenced the pointer on that
path. While in this case, the check is not needed, it's best not to
remove checks from the unit tests IMO. Instead, I'm adding an
earlier check, so that coverity, when analyzing this function, will
think that we have always checked the pointer before dereferencing
it.
Closes ticket 30180; CID
1444641 .
rl1987 [Fri, 12 Apr 2019 19:43:49 +0000 (22:43 +0300)]
Add changes file
rl1987 [Fri, 12 Apr 2019 19:41:39 +0000 (22:41 +0300)]
Fix remaining shellcheck warnings in fuzz_multi.sh
rl1987 [Fri, 12 Apr 2019 19:38:06 +0000 (22:38 +0300)]
Add shebang line to fuzz_multi.sh (fixes SC2148)
teor [Thu, 11 Apr 2019 02:17:04 +0000 (12:17 +1000)]
changes: file for 30117
teor [Thu, 11 Apr 2019 02:11:03 +0000 (12:11 +1000)]
Travis: expand "make test-stem", so timelimit can signal python on timeout
Unlike kill, timelimit can only signal the process it launches. So we need
timelimit to launch python, not make.
Closes ticket 30117; diagnostic for 29437.
George Kadianakis [Fri, 12 Apr 2019 10:47:08 +0000 (13:47 +0300)]
Merge branch 'tor-github/pr/908'
George Kadianakis [Fri, 12 Apr 2019 10:45:53 +0000 (13:45 +0300)]
Merge branch 'tor-github/pr/754'
teor [Fri, 12 Apr 2019 03:00:02 +0000 (13:00 +1000)]
crypt_ops: Stop using a separate buffer in ed25519_signature_from_base64()
Part of 29960.
Nick Mathewson [Thu, 11 Apr 2019 23:09:23 +0000 (19:09 -0400)]
Fix a memory leak in tor-resolve.c
Closes bug 30151/coverity CID
1441830 . Bugfix on 0.4.0.1-alpha when
we started doing trunnel parsing in tor-resolve.c.
Nick Mathewson [Thu, 11 Apr 2019 22:58:44 +0000 (18:58 -0400)]
Changes file and practracker updates for 30149.
Nick Mathewson [Thu, 11 Apr 2019 22:56:02 +0000 (18:56 -0400)]
Remove an extraneous _ from __COVERITY__
We had a typo in this check, so that coverity wasn't taking the
right path.
Bug not in any released Tor.
Nick Mathewson [Thu, 11 Apr 2019 22:38:59 +0000 (18:38 -0400)]
Add an assertion to num_ntors_per_tap().
This should please coverity, and fix CID
1415721 . It didn't
understand that networkstatus_get_param() always returns a value
between its minimum and maximum values.
Nick Mathewson [Thu, 11 Apr 2019 22:38:59 +0000 (18:38 -0400)]
Add an assertion to compute_weighted_bandwidths()
This should please coverity, and fix CID
1415722 . It didn't
understand that networkstatus_get_param() always returns a value
between its minimum and maximum values.
Nick Mathewson [Thu, 11 Apr 2019 22:38:59 +0000 (18:38 -0400)]
Add an assertion to pathbias_get_scale_ratio()
This should please coverity, and fix CID
1415723 . It didn't understand
that networkstatus_get_param() always returns a value between its
minimum and maximum values.
Nick Mathewson [Thu, 11 Apr 2019 21:06:19 +0000 (17:06 -0400)]
forward-port the 0.4.0.4-rc changelog
Nick Mathewson [Thu, 11 Apr 2019 21:05:45 +0000 (17:05 -0400)]
Merge branch 'maint-0.4.0'
Nick Mathewson [Thu, 11 Apr 2019 21:05:38 +0000 (17:05 -0400)]
bump to 0.4.0.4-rc-dev
Neel Chauhan [Thu, 11 Apr 2019 19:20:31 +0000 (15:20 -0400)]
Make repeated/rate limited HSFETCH queries fail with QUERY_RATE_LIMITED
Nick Mathewson [Thu, 11 Apr 2019 18:30:05 +0000 (14:30 -0400)]
Merge remote-tracking branch 'tor-github/pr/913'
Nick Mathewson [Thu, 11 Apr 2019 18:29:16 +0000 (14:29 -0400)]
Merge remote-tracking branch 'tor-github/pr/887'
Nick Mathewson [Thu, 11 Apr 2019 18:27:06 +0000 (14:27 -0400)]
Merge remote-tracking branch 'tor-github/pr/741'
teor [Wed, 10 Apr 2019 11:15:04 +0000 (21:15 +1000)]
Travis: use stem backtrace signals with timelimit
Part of 30117.
Nick Mathewson [Wed, 10 Apr 2019 15:52:12 +0000 (11:52 -0400)]
Merge branch 'maint-0.4.0'
Nick Mathewson [Wed, 10 Apr 2019 15:51:49 +0000 (11:51 -0400)]
Bump version to 0.4.0.4-rc
Nick Mathewson [Wed, 10 Apr 2019 15:49:23 +0000 (11:49 -0400)]
Fix pre-commit hook to correctly allow empty changes files.
Fixes bug 30120; bugfix not in any released Tor.