]>
git.ipfire.org Git - thirdparty/tor.git/log
David Goulet [Tue, 10 Jan 2023 16:57:11 +0000 (11:57 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 10 Jan 2023 16:57:07 +0000 (11:57 -0500)]
Merge branch 'tor-gitlab/mr/678'
David Goulet [Tue, 10 Jan 2023 15:13:33 +0000 (10:13 -0500)]
cc: Rename function to avoid confusion
Signed-off-by: David Goulet <dgoulet@torproject.org>
Mike Perry [Wed, 14 Dec 2022 17:19:01 +0000 (17:19 +0000)]
Changes file for bug 40732
Mike Perry [Thu, 15 Dec 2022 22:03:26 +0000 (22:03 +0000)]
Safety fixes to RFC3742
Mike Perry [Wed, 21 Dec 2022 17:35:09 +0000 (17:35 +0000)]
Reduce size of congestion control next_*_event fields.
Since these are derived from the number of SENDMEs in a cwnd/cc update,
and a cwnd should not exceed ~10k, there's plenty of room in uint16_t
for them, even if the network gets significantly faster.
Mike Perry [Wed, 21 Dec 2022 01:18:28 +0000 (01:18 +0000)]
Clean up next_cc_event handling.
Mike Perry [Fri, 16 Dec 2022 21:12:50 +0000 (21:12 +0000)]
Avoid increasing the congestion window if it is not full.
Also provides some stickiness, so that once full, the congestion window is
considered still full for the rest of an update cycle, or the entire
congestion window.
In this way, we avoid increasing the congestion window if it is not fully
utilized, but we can still back off in this case. This substantially reduces
queue use in Shadow.
David Goulet [Tue, 10 Jan 2023 16:53:10 +0000 (11:53 -0500)]
Merge branch 'tor-gitlab/mr/676'
Mike Perry [Tue, 10 Jan 2023 16:18:41 +0000 (16:18 +0000)]
Merge branch 'mr-674-fixup' into main+mr-674-fixup
David Goulet [Tue, 10 Jan 2023 16:15:36 +0000 (11:15 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 10 Jan 2023 16:15:32 +0000 (11:15 -0500)]
Merge branch 'tor-gitlab/mr/675' into maint-0.4.7
David Goulet [Tue, 10 Jan 2023 15:13:33 +0000 (10:13 -0500)]
cc: Rename function to avoid confusion
Signed-off-by: David Goulet <dgoulet@torproject.org>
Mike Perry [Wed, 14 Dec 2022 17:19:01 +0000 (17:19 +0000)]
Changes file for bug 40732
Mike Perry [Thu, 15 Dec 2022 22:03:26 +0000 (22:03 +0000)]
Safety fixes to RFC3742
Mike Perry [Wed, 21 Dec 2022 17:35:09 +0000 (17:35 +0000)]
Reduce size of congestion control next_*_event fields.
Since these are derived from the number of SENDMEs in a cwnd/cc update,
and a cwnd should not exceed ~10k, there's plenty of room in uint16_t
for them, even if the network gets significantly faster.
Mike Perry [Wed, 21 Dec 2022 01:18:28 +0000 (01:18 +0000)]
Clean up next_cc_event handling.
Mike Perry [Fri, 16 Dec 2022 21:12:50 +0000 (21:12 +0000)]
Avoid increasing the congestion window if it is not full.
Also provides some stickiness, so that once full, the congestion window is
considered still full for the rest of an update cycle, or the entire
congestion window.
In this way, we avoid increasing the congestion window if it is not fully
utilized, but we can still back off in this case. This substantially reduces
queue use in Shadow.
David Goulet [Tue, 10 Jan 2023 14:24:09 +0000 (09:24 -0500)]
state: Fix segfault on malformed file
Having no TotalBuildTimes along a positive CircuitBuildAbandonedCount
count lead to a segfault. We check for that condition and then BUG + log
warn if that is the case.
It should never happened in theory but if someone modified their state
file, it can lead to this problem so instead of segfaulting, warn.
Fixes #40437
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 10 Jan 2023 14:12:20 +0000 (09:12 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 10 Jan 2023 14:11:52 +0000 (09:11 -0500)]
shellcheck: Fix new warnings
Nothing important, mostly false positive except one case.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 10 Jan 2023 14:02:13 +0000 (09:02 -0500)]
sandbox: Allow my-consensus-* files for an authority
Fixes #40729
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 22 Dec 2022 19:03:40 +0000 (14:03 -0500)]
Merge branch 'tor-gitlab/mr/668'
Georg Koppen [Wed, 21 Dec 2022 10:43:26 +0000 (10:43 +0000)]
Add back comments about Stable/familiar decay
Closes: #40734.
David Goulet [Tue, 20 Dec 2022 14:11:30 +0000 (09:11 -0500)]
Fix duplicate code after tor-gitlab/mr/671 forward merge
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 20 Dec 2022 14:09:47 +0000 (09:09 -0500)]
Merge branch 'maint-0.4.7'
Alex Xu (Hello71) [Sat, 21 May 2022 19:21:25 +0000 (15:21 -0400)]
Enable IP_BIND_ADDRESS_NO_PORT if supported
Signed-off-by: David Goulet <dgoulet@torproject.org>
Dimitris Apostolou [Tue, 13 Dec 2022 16:46:07 +0000 (18:46 +0200)]
Fix typos
David Goulet [Wed, 14 Dec 2022 15:19:14 +0000 (10:19 -0500)]
circ: Add function to learn if queue is full
Related to #40731
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 12 Dec 2022 20:10:37 +0000 (15:10 -0500)]
Merge branch 'maint-0.4.7'
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 12 Dec 2022 20:10:06 +0000 (15:10 -0500)]
Merge branch 'tor-gitlab/mr/660'
David Goulet [Mon, 12 Dec 2022 20:07:00 +0000 (15:07 -0500)]
Merge branch 'tor-gitlab/mr/667' into maint-0.4.7
David Goulet [Mon, 12 Dec 2022 18:15:08 +0000 (13:15 -0500)]
Merge branch 'maint-0.4.7'
qontinuum [Tue, 29 Nov 2022 20:46:44 +0000 (21:46 +0100)]
Add issue40613
qontinuum [Tue, 29 Nov 2022 20:43:14 +0000 (21:43 +0100)]
Replace socket_failed_from_resource_exhaustion() by socket_failed_from_fd_exhaustion()
qontinuum [Tue, 29 Nov 2022 20:34:06 +0000 (21:34 +0100)]
Isolate warn_about_resource_exhaution()
David Goulet [Wed, 7 Dec 2022 13:43:41 +0000 (08:43 -0500)]
metrics: Fix typo in a label
Fixes #40727
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 6 Dec 2022 16:16:47 +0000 (11:16 -0500)]
changelog: Update it with latest releases
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 6 Dec 2022 16:14:37 +0000 (11:14 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 16:14:32 +0000 (11:14 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
Tor CI Release [Tue, 6 Dec 2022 15:34:07 +0000 (15:34 +0000)]
version: Bump version to 0.4.7.12-dev
Tor CI Release [Tue, 6 Dec 2022 15:34:07 +0000 (15:34 +0000)]
version: Bump version to 0.4.5.15-dev
David Goulet [Tue, 6 Dec 2022 15:22:57 +0000 (10:22 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 15:22:48 +0000 (10:22 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
Tor CI Release [Tue, 6 Dec 2022 15:05:30 +0000 (15:05 +0000)]
version: Bump version to 0.4.7.12
Tor CI Release [Tue, 6 Dec 2022 15:05:24 +0000 (15:05 +0000)]
version: Bump version to 0.4.5.15
David Goulet [Tue, 6 Dec 2022 15:10:41 +0000 (10:10 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 15:10:41 +0000 (10:10 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
Tor CI Release [Tue, 6 Dec 2022 15:03:57 +0000 (15:03 +0000)]
fallbackdir: Update list generated on December 06, 2022
Tor CI Release [Tue, 6 Dec 2022 14:56:15 +0000 (14:56 +0000)]
Update geoip files to match ipfire location db, 2022/12/06.
David Goulet [Tue, 6 Dec 2022 15:00:06 +0000 (10:00 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 15:00:01 +0000 (10:00 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
David Goulet [Tue, 6 Dec 2022 14:59:27 +0000 (09:59 -0500)]
fallbackdir: Update files from latest 047 release
We need the fallbackdir file to be the same so our release CI can
generate a new list and apply it uniformly on all series.
(Same as geoip)
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 6 Dec 2022 14:49:33 +0000 (09:49 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 14:49:29 +0000 (09:49 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
David Goulet [Tue, 6 Dec 2022 14:47:55 +0000 (09:47 -0500)]
geoip: Update files from latest 047 release
We need all geoip files to be the same so our release CI can generate a
new list and apply it uniformly on all series.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Tue, 6 Dec 2022 13:56:05 +0000 (08:56 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 13:56:04 +0000 (08:56 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
David Goulet [Mon, 5 Dec 2022 18:23:34 +0000 (13:23 -0500)]
Merge branch 'maint-0.4.7'
Mike Perry [Fri, 2 Dec 2022 21:50:59 +0000 (21:50 +0000)]
Ticket 40724: Add metrics for CC circuit counts
Mike Perry [Thu, 1 Dec 2022 22:22:45 +0000 (22:22 +0000)]
Ticket 40724: Changes file
Mike Perry [Thu, 1 Dec 2022 22:18:02 +0000 (22:18 +0000)]
Ticket 40724: Additional congestion control metrics
Roger Dingledine [Wed, 30 Nov 2022 01:33:58 +0000 (20:33 -0500)]
dirauth: rotate moria1 keys and ports
Rotate the relay identity key and v3 identity key for moria1. They
have been online for more than a decade, there was a known potential
compromise, and anyway refreshing keys periodically is good practice.
Advertise new ports too, to avoid confusion.
Closes ticket 40722.
David Goulet [Mon, 28 Nov 2022 15:28:30 +0000 (10:28 -0500)]
changes: Fix file without ticket number
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Mon, 28 Nov 2022 15:27:18 +0000 (10:27 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Mon, 28 Nov 2022 15:27:13 +0000 (10:27 -0500)]
Merge branch 'maint-0.4.5' into maint-0.4.7
David Goulet [Mon, 28 Nov 2022 15:25:48 +0000 (10:25 -0500)]
changes: Add file for ticket 40674
Signed-off-by: David Goulet <dgoulet@torproject.org>
Rasmus Dahlberg [Wed, 12 Oct 2022 18:29:11 +0000 (20:29 +0200)]
dns: Make TTLs fuzzy at exit relays
This change mitigates DNS-based website oracles by making the time that
a domain name is cached uncertain (+- 4 minutes of what's measurable).
Resolves TROVE-2021-009.
Fixes #40674
Rasmus Dahlberg [Wed, 12 Oct 2022 18:29:11 +0000 (20:29 +0200)]
Clip DNS TTL values once in event callback
This change ensures that other parts of the code base always operate on
the same clipped TTL values, notably without being aware of clipping.
David Goulet [Mon, 28 Nov 2022 14:37:12 +0000 (09:37 -0500)]
Merge branch 'tor-gitlab/mr/652'
David Goulet [Mon, 28 Nov 2022 14:35:53 +0000 (09:35 -0500)]
Merge branch 'tor-gitlab/mr/657'
David Goulet [Mon, 28 Nov 2022 14:33:32 +0000 (09:33 -0500)]
Merge branch 'tor-gitlab/mr/658'
Vinícius Zavam [Sun, 27 Nov 2022 18:41:09 +0000 (18:41 +0000)]
perform proper 'OR' while checking defined vars
* the || is not possible with #ifdef statement;
* here the #ifdef turns into '#if defined()'.
qontinuum [Mon, 21 Nov 2022 00:19:23 +0000 (01:19 +0100)]
Rely on kernel errno when logging resource exhaustion
Signed-off-by: qontinuum <qontinuum@monaco.mc>
David Goulet [Wed, 23 Nov 2022 19:54:43 +0000 (14:54 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Wed, 23 Nov 2022 18:47:59 +0000 (13:47 -0500)]
relay: Use the configured number of threads for worker work calculation
We cap our number of CPU worker threads to at least 2 even if we have a
single core. But also, before we used to always add one extra thread
regardless of the number of core.
This meant that we were off when re-using the get_num_cpus() function
when calculating our onionskin work overhead because we were always off
by one.
This commit makes it that we always use the number of thread our actual
thread pool was configured with.
Fixes #40719
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 23 Nov 2022 18:40:47 +0000 (13:40 -0500)]
cpu: Set number of threads to number of cores
Cap this to 2 threads always because we need a low and high priority
thread even with a single core.
Fixes #40713
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 23 Nov 2022 18:28:22 +0000 (13:28 -0500)]
log: Remove extra newline in a log statement
Signed-off-by: David Goulet <dgoulet@torproject.org>
Vinícius Zavam [Sat, 19 Nov 2022 08:02:46 +0000 (08:02 +0000)]
add chagelog file related to MR!652
David Goulet [Thu, 10 Nov 2022 15:29:02 +0000 (10:29 -0500)]
changelog: Add 0.4.7.11 stable
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 10 Nov 2022 15:21:13 +0000 (10:21 -0500)]
Merge branch 'maint-0.4.7'
Tor CI Release [Thu, 10 Nov 2022 14:58:26 +0000 (14:58 +0000)]
version: Bump version to 0.4.7.11-dev
David Goulet [Thu, 10 Nov 2022 14:52:51 +0000 (09:52 -0500)]
Merge branch 'maint-0.4.7'
Tor CI Release [Thu, 10 Nov 2022 14:41:43 +0000 (14:41 +0000)]
version: Bump version to 0.4.7.11
David Goulet [Thu, 10 Nov 2022 14:44:52 +0000 (09:44 -0500)]
Merge branch 'maint-0.4.7'
Tor CI Release [Thu, 10 Nov 2022 14:40:50 +0000 (14:40 +0000)]
fallbackdir: Update list generated on November 10, 2022
Tor CI Release [Thu, 10 Nov 2022 14:39:17 +0000 (14:39 +0000)]
Update geoip files to match ipfire location db, 2022/11/10.
David Goulet [Thu, 10 Nov 2022 14:30:42 +0000 (09:30 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Thu, 10 Nov 2022 13:57:39 +0000 (08:57 -0500)]
metrics: Split cc with counters and gauges
Part of #40712
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 10 Nov 2022 12:29:18 +0000 (07:29 -0500)]
metrics: Split connections with a counter and gauge
Created and Rejected connections are ever going up counters. While
Opened connections are gauges going up and down.
Fixes #40712
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 20:35:58 +0000 (15:35 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 20:35:51 +0000 (15:35 -0500)]
changes: Add file for ticket 40674
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 20:32:18 +0000 (15:32 -0500)]
Merge branch 'ticket40674_047_01' into maint-0.4.7
Rasmus Dahlberg [Wed, 12 Oct 2022 18:29:11 +0000 (20:29 +0200)]
dns: Make TTLs fuzzy at exit relays
This change mitigates DNS-based website oracles by making the time that
a domain name is cached uncertain (+- 4 minutes of what's measurable).
Resolves TROVE-2021-009.
Fixes #40674
David Goulet [Wed, 9 Nov 2022 20:29:04 +0000 (15:29 -0500)]
Merge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 20:10:19 +0000 (15:10 -0500)]
relay: Cache onion queue parameters on consensus change
This is part of the fast path so we need to cache consensus parameters
instead of querying it everytime we need to learn a value.
Part of #40704
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 17:49:23 +0000 (12:49 -0500)]
relay: Make the max pending tasks per CPU a consensus parameter
Until now, there was this magic number (64) used as the maximum number
of tasks a CPU worker can take at once.
This commit makes it a consensus parameter so our future selves can
think of a better value depending on network conditions.
Part of #40704
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 15:29:47 +0000 (10:29 -0500)]
relay: Add the onion_queue_wait_cutoff consensus param
Transform the hardcoded value ONIONQUEUE_WAIT_CUTOFF into a consensus
parameter so we can control it network wide.
Closes #40704
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 15:25:30 +0000 (10:25 -0500)]
relay: Make MaxOnionQueueDelay into a consensus param
Part of #40704
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 9 Nov 2022 16:51:52 +0000 (11:51 -0500)]
Merge branch 'maint-0.4.7'