]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Fri, 16 Feb 2018 01:52:01 +0000 (20:52 -0500)]
Fix a stack-protector warning: don't use a variable-length buffer
Instead, define a maximum size, and enforce it with an assertion.
Nick Mathewson [Fri, 16 Feb 2018 01:40:03 +0000 (20:40 -0500)]
Merge branch 'onion_ntor_malloc_less'
Nick Mathewson [Fri, 16 Feb 2018 01:38:08 +0000 (20:38 -0500)]
Documentation fixes suggested by catalyst.
Nick Mathewson [Fri, 16 Feb 2018 01:35:30 +0000 (20:35 -0500)]
Merge remote-tracking branch 'isis/bug25185'
Nick Mathewson [Fri, 16 Feb 2018 01:33:00 +0000 (20:33 -0500)]
Merge branch 'maint-0.3.3'
Nick Mathewson [Fri, 16 Feb 2018 01:32:57 +0000 (20:32 -0500)]
Merge remote-tracking branch 'isis/bug25171' into maint-0.3.3
Nick Mathewson [Fri, 16 Feb 2018 01:28:07 +0000 (20:28 -0500)]
Merge branch '25162_zstd_static'
Nick Mathewson [Fri, 16 Feb 2018 01:26:09 +0000 (20:26 -0500)]
This stats_n_seconds_working variable needs to be static now.
(When a variable isn't going to be declared extern in the header, we
require that it be static.)
Nick Mathewson [Fri, 16 Feb 2018 01:23:23 +0000 (20:23 -0500)]
Merge remote-tracking branch 'valentecaio/t-25081'
Nick Mathewson [Fri, 16 Feb 2018 01:19:53 +0000 (20:19 -0500)]
Merge remote-tracking branch 'valentecaio/t-24714'
Isis Lovecruft [Fri, 16 Feb 2018 01:19:12 +0000 (01:19 +0000)]
tests: Remove duplicate included header file in src/test/test.c.
* FIXES #25271: https://bugs.torproject.org/25271
Nick Mathewson [Fri, 16 Feb 2018 01:17:31 +0000 (20:17 -0500)]
Merge branch 'bug18105'
Nick Mathewson [Fri, 16 Feb 2018 01:13:53 +0000 (20:13 -0500)]
Merge branch 'bug24484_squashed'
Nick Mathewson [Thu, 25 Jan 2018 22:04:12 +0000 (17:04 -0500)]
Remove workaround code for systems where free(NULL) is busted.
Add an autoconf test to make sure we won't regret it.
Closes ticket 24484.
Nick Mathewson [Fri, 16 Feb 2018 01:11:25 +0000 (20:11 -0500)]
Bump version in master to 0.3.4.0-alpha-dev
Nick Mathewson [Fri, 16 Feb 2018 01:00:33 +0000 (20:00 -0500)]
Merge branch 'protover_rust_compat_v3'
Nick Mathewson [Thu, 15 Feb 2018 15:47:09 +0000 (10:47 -0500)]
rust protover: match the C implementation on empty-str cases
Empty versions lists are permitted; empty keywords are not.
Nick Mathewson [Thu, 15 Feb 2018 15:27:27 +0000 (10:27 -0500)]
Forbid u32::MAX as a protover range element in rust
Part of the 25249 fix to make rust match the C.
Nick Mathewson [Thu, 15 Feb 2018 13:37:19 +0000 (08:37 -0500)]
Rust protover compat: forbid more than MAX_VERSIONS_TO_EXPAND in a range
Also correct MAX_VERSIONS_TO_EXPAND to match the C.
NOTE that this patch leads to incorrect behavior: the C code allows
huge ranges; it just doesn't allow votes on them (currently). For
full compatibility, we'll need to make the rust code store ranges as
ranges natively, possibly using something like the range_map crate.
Still, this patch is smaller than a "proper" fix.
Fixes TROVE-2018-003.
Nick Mathewson [Wed, 14 Feb 2018 15:03:14 +0000 (10:03 -0500)]
Merge remote-tracking branch 'mikeperry/bug24769'
Nick Mathewson [Tue, 13 Feb 2018 23:12:01 +0000 (18:12 -0500)]
Merge branch 'tests_rust'
Nick Mathewson [Tue, 13 Feb 2018 21:55:34 +0000 (16:55 -0500)]
Merge branch 'maint-0.3.2'
Nick Mathewson [Tue, 13 Feb 2018 21:55:19 +0000 (16:55 -0500)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 13 Feb 2018 21:55:18 +0000 (16:55 -0500)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Taylor Yu [Tue, 13 Feb 2018 21:06:04 +0000 (15:06 -0600)]
fix make check-changes
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.1' into maint-0.3.2
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: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 02:20:50 +0000 (02:20 +0000)]
rust: Remove now unused byte_slice_is_c_like() utility.
Isis Lovecruft [Sat, 10 Feb 2018 01:41:06 +0000 (01:41 +0000)]
rust: Remove empty_static_cstr() in favour of new cstr!() macro.
Isis Lovecruft [Sat, 10 Feb 2018 01:52:26 +0000 (01:52 +0000)]
rust: Use tor_util::strings utils for protover_compute_for_old_tor.
Isis Lovecruft [Thu, 8 Feb 2018 22:08:11 +0000 (22:08 +0000)]
rust: Use tor_util::strings utils for protover_get_supported_protocols.
Isis Lovecruft [Thu, 8 Feb 2018 20:06:19 +0000 (20:06 +0000)]
rust: Add macro for passing static borrowed strings from Rust to C.
* ADD a new macro, tor_util::string::cstr!() which takes Rust strings,
concatenates them together, appends a NUL byte, and converts it into a
std::ffi::CStr for handing to C.
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:51:57 +0000 (17:51 -0500)]
Add a "make test-rust" target to run the rust tests only.
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.