]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Tue, 6 Dec 2022 13:56:05 +0000 (08:56 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'maint-0.4.5' into 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

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Mon, 5 Dec 2022 18:23:34 +0000 (13:23 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoTicket 40724: Add metrics for CC circuit counts
Mike Perry [Fri, 2 Dec 2022 21:50:59 +0000 (21:50 +0000)] 
Ticket 40724: Add metrics for CC circuit counts

2 years agoTicket 40724: Changes file
Mike Perry [Thu, 1 Dec 2022 22:22:45 +0000 (22:22 +0000)] 
Ticket 40724: Changes file

2 years agoTicket 40724: Additional congestion control metrics
Mike Perry [Thu, 1 Dec 2022 22:18:02 +0000 (22:18 +0000)] 
Ticket 40724: Additional congestion control metrics

2 years agodirauth: rotate moria1 keys and ports
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.

2 years agochanges: Fix file without ticket number
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>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Mon, 28 Nov 2022 15:27:18 +0000 (10:27 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'maint-0.4.5' into 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

2 years agochanges: Add file for ticket 40674
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>
2 years agodns: Make TTLs fuzzy at exit relays
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

2 years agoClip DNS TTL values once in event callback
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.

2 years agoMerge branch 'tor-gitlab/mr/652'
David Goulet [Mon, 28 Nov 2022 14:37:12 +0000 (09:37 -0500)] 
Merge branch 'tor-gitlab/mr/652'

2 years agoMerge branch 'tor-gitlab/mr/657'
David Goulet [Mon, 28 Nov 2022 14:35:53 +0000 (09:35 -0500)] 
Merge branch 'tor-gitlab/mr/657'

2 years agoMerge branch 'tor-gitlab/mr/658'
David Goulet [Mon, 28 Nov 2022 14:33:32 +0000 (09:33 -0500)] 
Merge branch 'tor-gitlab/mr/658'

2 years agoperform proper 'OR' while checking defined vars
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()'.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Wed, 23 Nov 2022 19:54:43 +0000 (14:54 -0500)] 
Merge branch 'maint-0.4.7'

2 years agorelay: Use the configured number of threads for worker work calculation
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>
2 years agocpu: Set number of threads to number of cores
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>
2 years agolog: Remove extra newline in a log statement
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>
2 years agoadd chagelog file related to MR!652
Vinícius Zavam [Sat, 19 Nov 2022 08:02:46 +0000 (08:02 +0000)] 
add chagelog file related to MR!652

2 years agochangelog: Add 0.4.7.11 stable
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>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 10 Nov 2022 15:21:13 +0000 (10:21 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoversion: Bump version to 0.4.7.11-dev
Tor CI Release [Thu, 10 Nov 2022 14:58:26 +0000 (14:58 +0000)] 
version: Bump version to 0.4.7.11-dev

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 10 Nov 2022 14:52:51 +0000 (09:52 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoversion: Bump version to 0.4.7.11
Tor CI Release [Thu, 10 Nov 2022 14:41:43 +0000 (14:41 +0000)] 
version: Bump version to 0.4.7.11

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 10 Nov 2022 14:44:52 +0000 (09:44 -0500)] 
Merge branch 'maint-0.4.7'

2 years agofallbackdir: Update list generated on November 10, 2022
Tor CI Release [Thu, 10 Nov 2022 14:40:50 +0000 (14:40 +0000)] 
fallbackdir: Update list generated on November 10, 2022

2 years agoUpdate geoip files to match ipfire location db, 2022/11/10.
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.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 10 Nov 2022 14:30:42 +0000 (09:30 -0500)] 
Merge branch 'maint-0.4.7'

2 years agometrics: Split cc with counters and gauges
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>
2 years agometrics: Split connections with a counter and gauge
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>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 20:35:58 +0000 (15:35 -0500)] 
Merge branch 'maint-0.4.7'

2 years agochanges: Add file for ticket 40674
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>
2 years agoMerge branch 'ticket40674_047_01' into maint-0.4.7
David Goulet [Wed, 9 Nov 2022 20:32:18 +0000 (15:32 -0500)] 
Merge branch 'ticket40674_047_01' into maint-0.4.7

2 years agodns: Make TTLs fuzzy at exit relays
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

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 20:29:04 +0000 (15:29 -0500)] 
Merge branch 'maint-0.4.7'

2 years agorelay: Cache onion queue parameters on consensus change
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>
2 years agorelay: Make the max pending tasks per CPU a consensus parameter
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>
2 years agorelay: Add the onion_queue_wait_cutoff consensus param
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>
2 years agorelay: Make MaxOnionQueueDelay into a consensus param
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>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 16:51:52 +0000 (11:51 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/654' into maint-0.4.7
David Goulet [Wed, 9 Nov 2022 16:51:46 +0000 (11:51 -0500)] 
Merge branch 'tor-gitlab/mr/654' into maint-0.4.7

2 years agometrics: Reorganize state labels so rate() can be applied
Mike Perry [Tue, 8 Nov 2022 20:59:36 +0000 (20:59 +0000)] 
metrics: Reorganize state labels so rate() can be applied

Part of #40708.

2 years agometrics: Use N_EWMA for moving avg, with N=100.
Mike Perry [Tue, 8 Nov 2022 19:02:57 +0000 (19:02 +0000)] 
metrics: Use N_EWMA for moving avg, with N=100.

Part of #40708.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Wed, 9 Nov 2022 16:47:06 +0000 (11:47 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'maint-0.4.5' into maint-0.4.7
David Goulet [Wed, 9 Nov 2022 16:47:06 +0000 (11:47 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.7

2 years agobuild: fix -Wstrict-prototypes (Clang 16)
Sam James [Tue, 8 Nov 2022 06:42:59 +0000 (06:42 +0000)] 
build: fix -Wstrict-prototypes (Clang 16)

Clang 16 warns on -Wstrict-prototypes in preparation for C23 which can
among other things, lead to some configure tests silently failing/returning the wrong result.

Fixes this error:
```
-ignoreme: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
+ignoreme: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
 main ()
```

For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
[3] hosted at lists.linux.dev.

Bug: https://bugs.gentoo.org/879747
Signed-off-by: Sam James <sam@gentoo.org>
---

2 years agochangelog: Add the missing latest stables
David Goulet [Wed, 9 Nov 2022 13:44:43 +0000 (08:44 -0500)] 
changelog: Add the missing latest stables

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Tue, 8 Nov 2022 20:26:44 +0000 (15:26 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/651' into maint-0.4.7
David Goulet [Tue, 8 Nov 2022 20:25:08 +0000 (15:25 -0500)] 
Merge branch 'tor-gitlab/mr/651' into maint-0.4.7

2 years agometrics: Record percentage of blocked channels
Mike Perry [Tue, 8 Nov 2022 18:25:07 +0000 (18:25 +0000)] 
metrics: Record percentage of blocked channels

Part of #40708.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Tue, 8 Nov 2022 17:47:17 +0000 (12:47 -0500)] 
Merge branch 'maint-0.4.7'

2 years agometrics: Report amount of cwnd drop from delta and gamma
Mike Perry [Tue, 8 Nov 2022 17:39:34 +0000 (17:39 +0000)] 
metrics: Report amount of cwnd drop from delta and gamma

Part of #40708.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Tue, 8 Nov 2022 17:36:44 +0000 (12:36 -0500)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/650' into maint-0.4.7
David Goulet [Tue, 8 Nov 2022 17:36:19 +0000 (12:36 -0500)] 
Merge branch 'tor-gitlab/mr/650' into maint-0.4.7

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Tue, 8 Nov 2022 17:35:48 +0000 (12:35 -0500)] 
Merge branch 'maint-0.4.7'

2 years agorelay: Remove unused conn->ext_or_conn_id
David Goulet [Tue, 26 Jul 2022 15:18:15 +0000 (11:18 -0400)] 
relay: Remove unused conn->ext_or_conn_id

This also incidently removes a use of uninitialized stack data from the
connection_or_set_ext_or_identifier() function.

Fixes #40648

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agomath: Replace naughty macro by an inline function
David Goulet [Mon, 7 Nov 2022 15:01:47 +0000 (10:01 -0500)] 
math: Replace naughty macro by an inline function

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agometrics: Add flow control metrics.
Mike Perry [Thu, 3 Nov 2022 21:27:08 +0000 (21:27 +0000)] 
metrics: Add flow control metrics.

Part of #40708.

2 years agometrics: Add stats when the clock stalls.
Mike Perry [Thu, 3 Nov 2022 20:08:01 +0000 (20:08 +0000)] 
metrics: Add stats when the clock stalls.

Part of #40708.

2 years agometrics: Add running average of CC cwnd in slow start when closing circuit
Mike Perry [Thu, 3 Nov 2022 19:48:16 +0000 (19:48 +0000)] 
metrics: Add running average of CC cwnd in slow start when closing circuit

Count slow start separately.

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agochanges: Add file for ticket 40708
David Goulet [Thu, 3 Nov 2022 17:14:04 +0000 (13:14 -0400)] 
changes: Add file for ticket 40708

Closes #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agometrics: Add stats when reaching vegas delta or ss_cwnd_max
David Goulet [Thu, 3 Nov 2022 17:12:47 +0000 (13:12 -0400)] 
metrics: Add stats when reaching vegas delta or ss_cwnd_max

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agometrics: Add running average of CC cwnd when closing circuit
David Goulet [Thu, 3 Nov 2022 16:41:21 +0000 (12:41 -0400)] 
metrics: Add running average of CC cwnd when closing circuit

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agometrics: Add running average of CC cwnd when exiting slow start
David Goulet [Thu, 3 Nov 2022 14:43:37 +0000 (10:43 -0400)] 
metrics: Add running average of CC cwnd when exiting slow start

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agofix: %s/param.sh/param.h
Vinícius Zavam [Sat, 5 Nov 2022 20:51:26 +0000 (20:51 +0000)] 
fix: %s/param.sh/param.h

  while here also reflect the check for __NETBSD_SOURCE on
tor_libc_get_version_str

2 years agofix: we shall not produce warnings compiling tor
Vinícius Zavam [Sat, 5 Nov 2022 20:49:04 +0000 (20:49 +0000)] 
fix: we shall not produce warnings compiling tor

2 years agopresent __DragonFly_version, from DragonFlyBSD
Vinícius Zavam [Sat, 5 Nov 2022 18:58:59 +0000 (18:58 +0000)] 
present __DragonFly_version, from DragonFlyBSD

2 years agoonce NetBSD was presented, return its version
Vinícius Zavam [Sat, 5 Nov 2022 18:46:09 +0000 (18:46 +0000)] 
once NetBSD was presented, return its version

  * defined by __NetBSD_Version__ on <sys/param.h> too.

2 years agomake tor_libc_get_name aware of NetBSD
Vinícius Zavam [Sat, 5 Nov 2022 18:41:17 +0000 (18:41 +0000)] 
make tor_libc_get_name aware of NetBSD

  * __NETBSD_SOURCE was used here to verify if we are running on NetBSD

2 years agoreturn what OpenBSD gives as base system version
Vinícius Zavam [Sat, 5 Nov 2022 18:38:04 +0000 (18:38 +0000)] 
return what OpenBSD gives as base system version

  * it also uses sys/param.h to track its version;
  * present that to tor_libc_get_version_str() as libc version;

  while here, we also fix the return of FreeBSD version

  * __FreeBSD_version is the correct var tracking the OSVERSION

2 years agoshould we identify __FreeBSD__, return its version
Vinícius Zavam [Sat, 5 Nov 2022 18:31:46 +0000 (18:31 +0000)] 
should we identify __FreeBSD__, return its version

  * we use OSVERSION here (defined by __FreeBSD__);
  * it's part of the <sys/param.h> include;
  * that tracks all noteworthy changes made to the base system.

2 years agoreturn BSD if tor_libc_get_name sees __BSD_VISIBLE
Vinícius Zavam [Sat, 5 Nov 2022 18:17:12 +0000 (18:17 +0000)] 
return BSD if tor_libc_get_name sees __BSD_VISIBLE

  * __BSD_VISIBLE is defined by systems like FreeBSD and OpenBSD;
  * that also extends to DragonFlyBSD;
  * it's used on stdlib.h and ctypes.h on those systems.

2 years agoMerge branch 'tor-gitlab/mr/627'
David Goulet [Thu, 3 Nov 2022 19:43:20 +0000 (15:43 -0400)] 
Merge branch 'tor-gitlab/mr/627'

2 years agometrics: Add connection socket family to metrics
David Goulet [Thu, 3 Nov 2022 17:05:21 +0000 (13:05 -0400)] 
metrics: Add connection socket family to metrics

Adds either ipv4 or ipv6 to the "tor_relay_connections_total" stats.

Closes #40710

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agometrics: Add stats for num circ reaching max cell outq
David Goulet [Thu, 3 Nov 2022 13:37:38 +0000 (09:37 -0400)] 
metrics: Add stats for num circ reaching max cell outq

Part of #40708

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agoadded check for compiler support of Wextra-semi
Andy [Thu, 13 Oct 2022 22:35:19 +0000 (16:35 -0600)] 
added check for compiler support of Wextra-semi

update AX_CHECK_COMPILE_FLAG function call

2 years agoClip DNS TTL values once in event callback
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.

2 years agoMerge branch 'tor-gitlab/mr/649'
David Goulet [Tue, 1 Nov 2022 13:14:33 +0000 (09:14 -0400)] 
Merge branch 'tor-gitlab/mr/649'

2 years agoMerge branch 'tor-gitlab/mr/594'
David Goulet [Tue, 1 Nov 2022 13:11:29 +0000 (09:11 -0400)] 
Merge branch 'tor-gitlab/mr/594'

2 years agoRemove `BUG()` in Windows process read callback.
Alexander Færøy [Tue, 1 Nov 2022 09:45:17 +0000 (10:45 +0100)] 
Remove `BUG()` in Windows process read callback.

This BUG() was added when the code was written to see if this callback
was ever executed after we marked the handle as EOF. It turns out, it
does, but we handle it gracefully. We can therefore remove the BUG().

Fixes tpo/core/tor#40596.

2 years agoMerge branch 'tor-gitlab/mr/579'
David Goulet [Mon, 31 Oct 2022 19:28:36 +0000 (15:28 -0400)] 
Merge branch 'tor-gitlab/mr/579'

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Mon, 31 Oct 2022 19:00:15 +0000 (15:00 -0400)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/636'
David Goulet [Mon, 31 Oct 2022 18:15:00 +0000 (14:15 -0400)] 
Merge branch 'tor-gitlab/mr/636'

2 years agosandbox: Add my-consensus-<flavor-name> to sandbox for dirauth
David Goulet [Mon, 31 Oct 2022 15:37:43 +0000 (11:37 -0400)] 
sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth

Fixese #40663

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agoMerge branch 'maint-0.4.7'
David Goulet [Mon, 31 Oct 2022 15:21:21 +0000 (11:21 -0400)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/646'
David Goulet [Fri, 28 Oct 2022 16:07:51 +0000 (12:07 -0400)] 
Merge branch 'tor-gitlab/mr/646'

2 years agothread: Bump max detectable CPU from 16 to 128
David Goulet [Fri, 28 Oct 2022 15:13:46 +0000 (11:13 -0400)] 
thread: Bump max detectable CPU from 16 to 128

Lets take advantage of those beefy machines ;).

Closes #40703

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agorelay: Skip warnings for single onion services
Jeremy Saklad [Fri, 21 Oct 2022 13:07:43 +0000 (08:07 -0500)] 
relay: Skip warnings for single onion services

Single onion services are not secret, so there is no added risk from
using accounting or running a relay in the same instance.

Related to #40691

2 years agoresolve a BUG() on relays at startup
Roger Dingledine [Thu, 27 Oct 2022 23:54:31 +0000 (19:54 -0400)] 
resolve a BUG() on relays at startup

Remove a harmless "Bug" log message that can happen in
relay_addr_learn_from_dirauth() on relays during startup:

tor_bug_occurred_(): Bug: ../src/feature/relay/relay_find_addr.c:225: relay_addr_learn_from_dirauth: Non-fatal assertion !(!ei) failed. (on Tor 0.4.7.10 )
Bug: Tor 0.4.7.10: Non-fatal assertion !(!ei) failed in relay_addr_learn_from_dirauth at ../src/feature/relay/relay_find_addr.c:225. Stack trace: (on Tor 0.4.7.10 )

Finishes fixing bug 40231.

Fixes bug 40523; bugfix on 0.4.5.4-rc.

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 27 Oct 2022 15:42:10 +0000 (11:42 -0400)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/645' into maint-0.4.7
David Goulet [Thu, 27 Oct 2022 15:42:07 +0000 (11:42 -0400)] 
Merge branch 'tor-gitlab/mr/645' into maint-0.4.7

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 27 Oct 2022 15:41:48 +0000 (11:41 -0400)] 
Merge branch 'maint-0.4.7'

2 years agoMerge branch 'tor-gitlab/mr/644' into maint-0.4.7
David Goulet [Thu, 27 Oct 2022 15:41:43 +0000 (11:41 -0400)] 
Merge branch 'tor-gitlab/mr/644' into maint-0.4.7

2 years agoMerge branch 'maint-0.4.7'
David Goulet [Thu, 27 Oct 2022 15:41:26 +0000 (11:41 -0400)] 
Merge branch 'maint-0.4.7'

2 years agometrics: Treat relay connections as gauge, not counter
David Goulet [Thu, 27 Oct 2022 15:35:27 +0000 (11:35 -0400)] 
metrics: Treat relay connections as gauge, not counter

Fixes #40699

Signed-off-by: David Goulet <dgoulet@torproject.org>
2 years agoChanges file for 40683
Mike Perry [Thu, 27 Oct 2022 15:36:53 +0000 (15:36 +0000)] 
Changes file for 40683

2 years agoStrip "__.SYMDEF*" before re-archiving in combine_libs on macOS and iOS.
Alexander Færøy [Fri, 14 Oct 2022 10:12:46 +0000 (12:12 +0200)] 
Strip "__.SYMDEF*" before re-archiving in combine_libs on macOS and iOS.

This patch changes how combine_libs works on Darwin like platforms to
make sure we don't include any `__.SYMDEF` and `__.SYMDEF SORTED`
symbols on the archive before we repack and run ${RANLIB} on the
archive.

See: tpo/core/tor#40683.