]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Tue, 13 Feb 2018 20:00:43 +0000 (15:00 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
David Goulet [Tue, 13 Feb 2018 19:56:31 +0000 (14:56 -0500)]
Make check-changes happy
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 15:53:47 +0000 (10:53 -0500)]
man: Document default values if not in the consensus for DoS mitigation
Fixes #25236
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 18:11:10 +0000 (13:11 -0500)]
Merge remote-tracking branch 'dgoulet/bug25223_029_01' into ticket24902_029_05
David Goulet [Tue, 13 Feb 2018 15:41:21 +0000 (10:41 -0500)]
dos: Add extra safety asserts in cc_stats_refill_bucket()
Never allow the function to set a bucket value above the allowed circuit
burst.
Closes #25202
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 13 Feb 2018 15:29:41 +0000 (10:29 -0500)]
dos: Don't set consensus param if we aren't a public relay
We had this safeguard around dos_init() but not when the consensus changes
which can modify consensus parameters and possibly enable the DoS mitigation
even if tor wasn't a public relay.
Fixes #25223
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 13 Feb 2018 13:51:29 +0000 (08:51 -0500)]
Remove 25170 changes file from master: it was already merged in 0.3.3.2-alpha
Nick Mathewson [Tue, 13 Feb 2018 13:50:59 +0000 (08:50 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Tue, 13 Feb 2018 13:50:59 +0000 (08:50 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 13 Feb 2018 13:50:58 +0000 (08:50 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
David Goulet [Thu, 8 Feb 2018 14:42:26 +0000 (09:42 -0500)]
dirserv: Improve returned message when relay is rejected
Explicitly inform the operator of the rejected relay to set a valid email
address in the ContactInfo field and contact bad-relays@ mailing list.
Fixes #25170
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 13 Feb 2018 13:47:06 +0000 (08:47 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
Nick Mathewson [Mon, 12 Feb 2018 16:08:33 +0000 (11:08 -0500)]
Have tor_addr hashes return a randomized hash for AF_UNSPEC.
We don't expect this to come up very much, but we may as well make
sure that the value isn't predictable (as we do for the other
addresses) in case the issue ever comes up.
Spotted by teor.
Nick Mathewson [Mon, 12 Feb 2018 15:59:46 +0000 (10:59 -0500)]
Fix a typo in an address_set.c comment.
Nick Mathewson [Mon, 12 Feb 2018 13:33:48 +0000 (08:33 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Mon, 12 Feb 2018 13:33:47 +0000 (08:33 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 12 Feb 2018 13:33:47 +0000 (08:33 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Mon, 12 Feb 2018 13:33:03 +0000 (08:33 -0500)]
Merge branch 'bug23318-redux_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 23:11:04 +0000 (18:11 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 23:10:59 +0000 (18:10 -0500)]
Merge remote-tracking branch 'public/bug24198_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 23:09:35 +0000 (18:09 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 23:07:37 +0000 (18:07 -0500)]
Merge branch 'ticket24315_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 22:01:00 +0000 (17:01 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sun, 11 Feb 2018 22:00:52 +0000 (17:00 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 11 Feb 2018 21:51:56 +0000 (16:51 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 11 Feb 2018 21:51:53 +0000 (16:51 -0500)]
Merge remote-tracking branch 'public/bug21074_029' into maint-0.2.9
Nick Mathewson [Sun, 11 Feb 2018 21:17:41 +0000 (16:17 -0500)]
Merge remote-tracking branch 'isis/bug25127_redux'
Nick Mathewson [Sun, 11 Feb 2018 21:16:58 +0000 (16:16 -0500)]
fix compilation.
Nick Mathewson [Sun, 11 Feb 2018 21:14:19 +0000 (16:14 -0500)]
chnages file for 25120
Nick Mathewson [Sun, 11 Feb 2018 21:10:58 +0000 (16:10 -0500)]
Merge branch 'bug25120'
Alexander Færøy [Thu, 1 Feb 2018 20:27:38 +0000 (21:27 +0100)]
Lower log-level in different error conditions in entropy selection.
This patch lowers the log-level from warning to info in the cases where
we are going to attempt another method as entropy source to hopefully
make the user feel less concerned.
See: https://bugs.torproject.org/25120
Nick Mathewson [Sat, 10 Feb 2018 21:09:01 +0000 (16:09 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sat, 10 Feb 2018 21:09:01 +0000 (16:09 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Sat, 10 Feb 2018 21:09:00 +0000 (16:09 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sat, 10 Feb 2018 21:08:58 +0000 (16:08 -0500)]
Merge branch 'bug24978_029_enable' into maint-0.2.9
Nick Mathewson [Sat, 10 Feb 2018 15:41:23 +0000 (10:41 -0500)]
Bump version to 0.3.3.2-alpha-dev
Nick Mathewson [Sat, 10 Feb 2018 14:57:36 +0000 (09:57 -0500)]
Increment the release date in the changelog.
"We fray into the future, rarely wrought
save in the tapestries of afterthought"
-- Richard Wilbur, _Years End_
Isis Lovecruft [Sat, 10 Feb 2018 01:21:31 +0000 (01:21 +0000)]
rust: Replace two `unwrap()`s in FFI code with `unwrap_or()`s.
Nick Mathewson [Fri, 9 Feb 2018 22:25:58 +0000 (17:25 -0500)]
Bump to 0.3.3.2-alpha
Nick Mathewson [Fri, 9 Feb 2018 22:25:30 +0000 (17:25 -0500)]
Re-wrap and sort the changelog
Roger Dingledine [Fri, 9 Feb 2018 22:24:45 +0000 (17:24 -0500)]
final mucking. all yours, nick
Roger Dingledine [Fri, 9 Feb 2018 22:10:34 +0000 (17:10 -0500)]
more changelog cleanup
Roger Dingledine [Fri, 9 Feb 2018 22:05:20 +0000 (17:05 -0500)]
whitespace and typo cleanups
Roger Dingledine [Fri, 9 Feb 2018 22:04:39 +0000 (17:04 -0500)]
changelog cleanups
Nick Mathewson [Fri, 9 Feb 2018 21:01:45 +0000 (16:01 -0500)]
Tweak blurb, re-sort changelog
Nick Mathewson [Fri, 9 Feb 2018 21:01:31 +0000 (16:01 -0500)]
Write a blurb
Nick Mathewson [Fri, 9 Feb 2018 20:58:26 +0000 (15:58 -0500)]
Begin work on a changelog
Nick Mathewson [Fri, 9 Feb 2018 17:08:12 +0000 (12:08 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
David Goulet [Fri, 9 Feb 2018 16:31:01 +0000 (11:31 -0500)]
test: DoS test to make sure we exclude known relays
Part of #25193
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Fri, 9 Feb 2018 16:11:41 +0000 (11:11 -0500)]
dos: Exclude known relays from client connection count
This is to avoid positively identifying Exit relays if tor client connection
comes from them that is reentering the network.
One thing to note is that this is done only in the DoS subsystem but we'll
still add it to the geoip cache as a "client" seen. This is done that way so
to avoid as much as possible changing the current behavior of the geoip client
cache since this is being backported.
Closes #25193
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 8 Feb 2018 22:45:17 +0000 (17:45 -0500)]
Merge remote-tracking branch 'frewsxcv/frewsxcv-protover'
Nick Mathewson [Thu, 8 Feb 2018 22:36:08 +0000 (17:36 -0500)]
Stop claiming that compute_for_old_tor() returns pairs
Nick Mathewson [Thu, 8 Feb 2018 22:26:26 +0000 (17:26 -0500)]
Remove new unsafe {} use.
Rationale: this helps for performance only, but we don't actually
have any reason to think that the checks here are
performance-critical. Let's not normalize the use of unsafe {}.
Nick Mathewson [Thu, 8 Feb 2018 22:16:14 +0000 (17:16 -0500)]
Merge remote-tracking branch 'isis/bug25127'
David Goulet [Thu, 8 Feb 2018 21:56:21 +0000 (16:56 -0500)]
Merge branch 'ticket25183_029_01' into ticket24902_029_05
David Goulet [Thu, 8 Feb 2018 19:35:22 +0000 (14:35 -0500)]
test: Add unit tests for addressset.c
This also adds one that tests the integration with the nodelist.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 8 Feb 2018 17:14:42 +0000 (12:14 -0500)]
Add an address_set to the nodelist.
This set is rebuilt whenever a consensus arrives. In between
consensuses, it is add-only.
Nick Mathewson [Thu, 8 Feb 2018 17:13:56 +0000 (12:13 -0500)]
Function to add an ipv4 address to an address_set
This is a convenience function, so callers don't need to wrap
the IPv4 address.
Nick Mathewson [Wed, 7 Feb 2018 14:49:35 +0000 (09:49 -0500)]
Add an address-set backend using a bloom filter.
We're going to need this to make our anti-DoS code (see 24902) more
robust.
Nick Mathewson [Thu, 8 Feb 2018 15:29:06 +0000 (10:29 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 8 Feb 2018 15:29:06 +0000 (10:29 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Thu, 8 Feb 2018 15:29:05 +0000 (10:29 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Thu, 8 Feb 2018 15:29:05 +0000 (10:29 -0500)]
Merge branch 'maint-0.2.5' into maint-0.2.9
David Goulet [Thu, 8 Feb 2018 14:42:26 +0000 (09:42 -0500)]
dirserv: Improve returned message when relay is rejected
Explicitly inform the operator of the rejected relay to set a valid email
address in the ContactInfo field and contact bad-relays@ mailing list.
Fixes #25170
Signed-off-by: David Goulet <dgoulet@torproject.org>
Karsten Loesing [Thu, 8 Feb 2018 09:32:41 +0000 (10:32 +0100)]
Update geoip and geoip6 to the February 7 2018 database.
Isis Lovecruft [Tue, 6 Feb 2018 14:15:33 +0000 (14:15 +0000)]
protover: Fix memleak in Rust impl of protover_compute_for_old_tor.
* FIXES #25127: https://bugs.torproject.org/25127
* ADDS a new module to the Rust tor_util crate for small utilities
for working with static strings between languages.
* CHANGES the return type of protover_compute_for_old_tor to point to
immutable data.
* CHANGES the code from the previous commit to use the new static
string utilities.
Roger Dingledine [Wed, 7 Feb 2018 17:51:05 +0000 (12:51 -0500)]
remove blank line between function-comment and function
also be more consistent about punctuation in doxygen comments
Nick Mathewson [Wed, 7 Feb 2018 17:46:27 +0000 (12:46 -0500)]
Merge remote-tracking branch 'dgoulet/ticket25163_033_01'
Roger Dingledine [Wed, 7 Feb 2018 17:22:29 +0000 (12:22 -0500)]
more fixes for typos, grammar, whitespace, etc
some of these ought to have been noticed by the "misspell" tool,
so if anybody is debugging it, here are some bug reports :)
Nick Mathewson [Wed, 7 Feb 2018 16:33:14 +0000 (11:33 -0500)]
Merge remote-tracking branch 'dgoulet/bug25113_029_01'
David Goulet [Wed, 7 Feb 2018 15:23:24 +0000 (10:23 -0500)]
test: Bump to 10 msec gap in the monotonic test
On slow system, 1 msec between one read and the other was too tight. For
instance, it failed on armel with a 4msec gap:
https://buildd.debian.org/status/package.php?p=tor&suite=experimental
Increase to 10 msec for now to address slow system. It is important that we
keep this OP_LE test in so we make sure the msec/usec/nsec read aren't
desynchronized by huge gaps. We'll adjust again if we ever encounter a system
that goes slower than 10 msec between calls.
Fixes #25113
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 7 Feb 2018 15:46:05 +0000 (10:46 -0500)]
Fix wide lines from typo-fix patch.
Nick Mathewson [Wed, 7 Feb 2018 15:44:21 +0000 (10:44 -0500)]
changes file for 23650 typo fixes
Deepesh Pathak [Wed, 24 Jan 2018 08:55:15 +0000 (14:25 +0530)]
Fix spelling mistakes corresponding to ticket #23650
George Kadianakis [Wed, 7 Feb 2018 09:46:30 +0000 (11:46 +0200)]
Improve doc of `primary_guards_up_to_date`.
David Goulet [Tue, 6 Feb 2018 17:51:43 +0000 (12:51 -0500)]
rephist: Stop tracking relay connection status
Remove a series of connection counters that were only used when dumping the
rephist statistics with SIGUSR1 signal.
This reduces the or_history_t structure size.
Closes #25163
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 6 Feb 2018 17:43:55 +0000 (12:43 -0500)]
rephist: Stop tracking EXTEND attempts
This removes the code that tracks the extend attemps a client makes. We don't
use it and it was only used to provide statistics on a SIGUSR1 from the
rephist dump stats function.
Part of #25163
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 6 Feb 2018 17:13:41 +0000 (12:13 -0500)]
Merge remote-tracking branch 'dgoulet/bug25116_029_01'
Nick Mathewson [Tue, 6 Feb 2018 16:41:52 +0000 (11:41 -0500)]
Merge branch 'arma_bug22212_031'
Nick Mathewson [Tue, 6 Feb 2018 16:41:31 +0000 (11:41 -0500)]
Add a category for the 22212-forreal changes file
Nick Mathewson [Tue, 6 Feb 2018 16:36:13 +0000 (11:36 -0500)]
Merge remote-tracking branch 'arma/bug22212'
Nick Mathewson [Tue, 30 Jan 2018 23:11:16 +0000 (18:11 -0500)]
remove a redundant semicolon
Isis Lovecruft [Tue, 6 Feb 2018 02:31:04 +0000 (02:31 +0000)]
protover: Fix memleak in Rust implementation.
* FIXES #25127: https://bugs.torproject.org/25127.
Nick Mathewson [Mon, 5 Feb 2018 19:00:50 +0000 (14:00 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
David Goulet [Mon, 5 Feb 2018 15:52:17 +0000 (10:52 -0500)]
Make circuit_log_ancient_one_hop_circuits() ignore established service rendezvous
Services can keep rendezvous circuits for a while so don't log them if tor is
a single onion service.
Fixes #25116
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 5 Feb 2018 15:39:10 +0000 (10:39 -0500)]
geoip: Make geoip_client_cache_total_allocation() return the counter
The HT_FOREACH() is insanely heavy on the CPU and this is part of the fast
path so make it return the nice memory size counter we added in
4d812e29b9b1ec88 .
Fixes #25148
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Mon, 5 Feb 2018 16:38:58 +0000 (11:38 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
Nick Mathewson [Fri, 2 Feb 2018 22:42:23 +0000 (17:42 -0500)]
fuzz: Move init_protocol_warning_severity_level() into global_init()
This is needed so llvm_fuzz will see it too.
David Goulet [Fri, 2 Feb 2018 22:04:12 +0000 (17:04 -0500)]
dos: We can put less token than the current amount
Becasue the circuit creation burst and rate can change at runtime it is
possible that between two refill of a bucket, we end up setting the bucket
value to less than there currently is.
Fixes #25128
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 2 Feb 2018 20:23:55 +0000 (15:23 -0500)]
Use tt_u64_op() for uint64_t inputs.
Nick Mathewson [Fri, 2 Feb 2018 20:00:35 +0000 (15:00 -0500)]
Merge remote-tracking branch 'dgoulet/ticket24902_029_05'
David Goulet [Fri, 2 Feb 2018 19:55:01 +0000 (14:55 -0500)]
Merge branch 'ticket25122_029_02' into ticket24902_029_05
David Goulet [Fri, 2 Feb 2018 18:24:37 +0000 (13:24 -0500)]
geoip: Add clientmap_entry_new() function
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Fri, 2 Feb 2018 18:14:50 +0000 (13:14 -0500)]
geoip: Increment and decrement functions for the geoip client cache
These functions protect againts over and underflow. They BUG() in case we
overflow the counter.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Fri, 2 Feb 2018 15:15:28 +0000 (10:15 -0500)]
geoip: Hook the client history cache into the OOM handler
If the cache is using 20% of our maximum allowed memory, clean 10% of it. Same
behavior as the HS descriptor cache.
Closes #25122
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 2 Feb 2018 17:03:54 +0000 (12:03 -0500)]
Merge branch 'maint-0.3.2'