David Goulet
58f41c379d
Merge branch 'maint-0.4.7'
2022-12-12 13:15:08 -05:00
David Goulet
a282145b36
socks: Make SafeSocks refuse SOCKS4 and accept SOCKS4a
...
The logic was inverted. Introduced in commit
9155e08450
.
This was reported through our bug bounty program on H1. It fixes the
TROVE-2022-002.
Fixes #40730
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-12-12 10:02:07 -05:00
qontinuum
3c968ca996
Add issue40613
2022-12-11 10:14:26 +01:00
qontinuum
7dd55c29f9
Replace socket_failed_from_resource_exhaustion() by socket_failed_from_fd_exhaustion()
2022-12-11 10:14:23 +01:00
qontinuum
5852319bd4
Isolate warn_about_resource_exhaution()
2022-12-11 10:14:18 +01:00
David Goulet
1d1eb29443
metrics: Fix typo in a label
...
Fixes #40727
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-12-07 08:43:41 -05:00
David Goulet
9e17af91a3
changelog: Update it with latest releases
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-12-06 11:16:47 -05:00
David Goulet
f44fa27ba7
Merge branch 'maint-0.4.7'
2022-12-06 11:14:37 -05:00
David Goulet
67244e684f
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 11:14:32 -05:00
Tor CI Release
9dbc294f94
version: Bump version to 0.4.7.12-dev
2022-12-06 11:14:16 -05:00
Tor CI Release
b117ce48db
version: Bump version to 0.4.5.15-dev
2022-12-06 11:14:09 -05:00
David Goulet
75c097f0e2
Merge branch 'maint-0.4.7'
2022-12-06 10:22:57 -05:00
David Goulet
56ac77ba4c
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 10:22:48 -05:00
Tor CI Release
236b9ff513
version: Bump version to 0.4.7.12
2022-12-06 10:22:24 -05:00
Tor CI Release
2be4c8319a
version: Bump version to 0.4.5.15
2022-12-06 10:22:12 -05:00
David Goulet
d75d02d202
Merge branch 'maint-0.4.7'
2022-12-06 10:10:41 -05:00
David Goulet
d889eba875
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 10:10:41 -05:00
Tor CI Release
1992c553d5
fallbackdir: Update list generated on December 06, 2022
2022-12-06 10:09:32 -05:00
Tor CI Release
ec0414270a
Update geoip files to match ipfire location db, 2022/12/06.
2022-12-06 10:09:26 -05:00
David Goulet
38ab412a2b
Merge branch 'maint-0.4.7'
2022-12-06 10:00:06 -05:00
David Goulet
8f48a6082b
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 10:00:01 -05:00
David Goulet
c20732e423
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>
2022-12-06 09:59:27 -05:00
David Goulet
257670c38c
Merge branch 'maint-0.4.7'
2022-12-06 09:49:33 -05:00
David Goulet
9cc09e694e
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 09:49:29 -05:00
David Goulet
8b345f8ced
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>
2022-12-06 09:47:55 -05:00
David Goulet
60f70be547
Merge branch 'maint-0.4.7'
2022-12-06 08:56:05 -05:00
David Goulet
01efb15496
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-12-06 08:56:04 -05:00
David Goulet
9a06fee5a1
Merge branch 'maint-0.4.7'
2022-12-05 13:23:34 -05:00
Mike Perry
a51cd9a569
Ticket 40724: Add metrics for CC circuit counts
2022-12-02 21:50:59 +00:00
Mike Perry
4c419183cc
Ticket 40724: Changes file
2022-12-01 22:22:45 +00:00
Mike Perry
07b521560f
Ticket 40724: Additional congestion control metrics
2022-12-01 22:19:08 +00:00
Roger Dingledine
72b04a5aa4
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.
2022-11-29 20:33:58 -05:00
David Goulet
85ca92951a
changes: Fix file without ticket number
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-11-28 10:28:30 -05:00
David Goulet
bf8f829314
Merge branch 'maint-0.4.7'
2022-11-28 10:27:18 -05:00
David Goulet
a91bcb5516
Merge branch 'maint-0.4.5' into maint-0.4.7
2022-11-28 10:27:13 -05:00
David Goulet
efeef819f5
changes: Add file for ticket 40674
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-11-28 10:25:48 -05:00
Rasmus Dahlberg
15efc25fb5
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
2022-11-28 10:25:06 -05:00
Rasmus Dahlberg
be7afe658e
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.
2022-11-28 10:25:04 -05:00
David Goulet
21121eb231
Merge branch 'tor-gitlab/mr/652'
2022-11-28 09:37:12 -05:00
David Goulet
c408d0a7f9
Merge branch 'tor-gitlab/mr/657'
2022-11-28 09:35:53 -05:00
David Goulet
3ac08ac200
Merge branch 'tor-gitlab/mr/658'
2022-11-28 09:33:32 -05:00
Vinícius Zavam
642e56bdb6
perform proper 'OR' while checking defined vars
...
* the || is not possible with #ifdef statement;
* here the #ifdef turns into '#if defined()'.
2022-11-27 18:41:09 +00:00
qontinuum
0b015c9731
Rely on kernel errno when logging resource exhaustion
...
Signed-off-by: qontinuum <qontinuum@monaco.mc>
2022-11-25 19:38:48 +01:00
David Goulet
04d8753676
Merge branch 'maint-0.4.7'
2022-11-23 14:54:43 -05:00
David Goulet
fbc9e92fdb
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>
2022-11-23 14:05:10 -05:00
David Goulet
b9de73e46e
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>
2022-11-23 13:52:36 -05:00
David Goulet
8713d9762a
log: Remove extra newline in a log statement
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-11-23 13:28:22 -05:00
Vinícius Zavam
4b23bd8c9c
add chagelog file related to MR!652
2022-11-19 08:02:46 +00:00
David Goulet
a7a90a3f11
changelog: Add 0.4.7.11 stable
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-11-10 10:29:02 -05:00
David Goulet
30e41ce9ad
Merge branch 'maint-0.4.7'
2022-11-10 10:21:13 -05:00