]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
2 days agoMerge branch 'prop365_interop' into 'main' main
David Goulet [Wed, 5 Nov 2025 15:50:26 +0000 (15:50 +0000)] 
Merge branch 'prop365_interop' into 'main'

Implement the C-tor parts of prop365

Closes #41156

See merge request tpo/core/tor!949

3 days agochanges file for prop365 support 949/head
Nick Mathewson [Tue, 4 Nov 2025 15:33:42 +0000 (10:33 -0500)] 
changes file for prop365 support

3 days agoHTTP CONNECT: Support OPTIONS.
Nick Mathewson [Tue, 4 Nov 2025 15:25:43 +0000 (10:25 -0500)] 
HTTP CONNECT: Support OPTIONS.

Prop365 calls for this.

3 days agoHTTP CONNECT: Accept Tor-Stream-Isolation too.
Nick Mathewson [Tue, 4 Nov 2025 15:17:11 +0000 (10:17 -0500)] 
HTTP CONNECT: Accept Tor-Stream-Isolation too.

Extensions starting with X- are deprecated per RFC 6648,
so we've started to accept Tor-Stream-Isolation too.

3 days agoHTTP CONNECT: Warn on Proxy-Authorization in legacy format.
Nick Mathewson [Tue, 4 Nov 2025 15:10:54 +0000 (10:10 -0500)] 
HTTP CONNECT: Warn on Proxy-Authorization in legacy format.

To avoid confusing with other apps, we want applications to
deliberately choose a format that indicates that they know they're using Tor
for isolation.  That's "Basic" auth, with username "tor" and
password chosen for isolation.

3 days agoHTTP CONNECT: Reject request trying to use Arti RPC.
Nick Mathewson [Tue, 4 Nov 2025 14:49:17 +0000 (09:49 -0500)] 
HTTP CONNECT: Reject request trying to use Arti RPC.

3 days agoHTTP CONNECT: Return 503 for RESOLVEFAILED and NOROUTE
Nick Mathewson [Tue, 4 Nov 2025 14:45:27 +0000 (09:45 -0500)] 
HTTP CONNECT: Return 503 for RESOLVEFAILED and NOROUTE

This is more correct.

3 days agoHTTP CONNECT: Send Via/Server and Tor-Capabilities headers
Nick Mathewson [Tue, 4 Nov 2025 14:42:23 +0000 (09:42 -0500)] 
HTTP CONNECT: Send Via/Server and Tor-Capabilities headers

We want to send these, per prop365, to indicate that we're speaking
Tor-flavored HTTP CONNECT, and to indicate our software version
and capabilities.

3 days agoHTTP CONNECT: Close silently under some circumstances.
Nick Mathewson [Tue, 4 Nov 2025 14:25:24 +0000 (09:25 -0500)] 
HTTP CONNECT: Close silently under some circumstances.

Notably, we want to close silently if we get anything other than
a well-formed HTTP request that contains _either_ a CONNECT
command, or some other command with "Host" set to localhost.

This makes it harder for hostile webpages to use DNS rebinding to
probe for whether a Tor HTTP CONNECT proxy is running locally.
(Tor Browser already defends against this via Noscript,
but other browsers don't).

For more information see prop365, and torspec!437.

3 weeks agoMerge branch 'unused-code' into 'main'
David Goulet [Thu, 16 Oct 2025 12:37:33 +0000 (12:37 +0000)] 
Merge branch 'unused-code' into 'main'

remove unused function

See merge request tpo/core/tor!945

3 weeks agoremove unused function
Roger Dingledine [Wed, 15 Oct 2025 22:25:01 +0000 (18:25 -0400)] 
remove unused function

this function should have been removed in 2014 as part of commit 415a8413

4 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 7 Oct 2025 19:02:08 +0000 (15:02 -0400)] 
Merge branch 'maint-0.4.8'

4 weeks agoMerge branch 'tor-gitlab/mr/943' into maint-0.4.8 maint-0.4.8
David Goulet [Tue, 7 Oct 2025 19:02:04 +0000 (15:02 -0400)] 
Merge branch 'tor-gitlab/mr/943' into maint-0.4.8

4 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Mon, 6 Oct 2025 16:12:25 +0000 (12:12 -0400)] 
Merge branch 'maint-0.4.8'

4 weeks agoversion: Bump version to 0.4.8.19-dev
Tor CI Release [Mon, 6 Oct 2025 14:09:31 +0000 (14:09 +0000)] 
version: Bump version to 0.4.8.19-dev

4 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Mon, 6 Oct 2025 14:01:33 +0000 (10:01 -0400)] 
Merge branch 'maint-0.4.8'

4 weeks agoversion: Bump version to 0.4.8.19
Tor CI Release [Mon, 6 Oct 2025 13:41:54 +0000 (13:41 +0000)] 
version: Bump version to 0.4.8.19

4 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Mon, 6 Oct 2025 13:50:50 +0000 (09:50 -0400)] 
Merge branch 'maint-0.4.8'

4 weeks agofallbackdir: Update list generated on October 06, 2025
Tor CI Release [Mon, 6 Oct 2025 13:38:11 +0000 (13:38 +0000)] 
fallbackdir: Update list generated on October 06, 2025

4 weeks agoUpdate geoip files to match ipfire location db, 2025/10/06.
Tor CI Release [Mon, 6 Oct 2025 13:33:51 +0000 (13:33 +0000)] 
Update geoip files to match ipfire location db, 2025/10/06.

4 weeks agoMerge branch 'dirport-cleanup' into 'main'
David Goulet [Mon, 6 Oct 2025 13:19:17 +0000 (13:19 +0000)] 
Merge branch 'dirport-cleanup' into 'main'

refactor since advertised dir_port is 0 (except dir auths)

See merge request tpo/core/tor!940

4 weeks agoMerge branch 'typos2' into 'main'
David Goulet [Mon, 6 Oct 2025 12:59:26 +0000 (12:59 +0000)] 
Merge branch 'typos2' into 'main'

simple comment and whitespace fixes

See merge request tpo/core/tor!939

4 weeks agobuild: Add -fcf-protection=full
David Goulet [Mon, 6 Oct 2025 12:49:10 +0000 (08:49 -0400)] 
build: Add -fcf-protection=full

Defense in depth and good compiler security option.

Closes #41139

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 weeks agoMerge branch 'manpage-grammar' into 'main'
David Goulet [Mon, 6 Oct 2025 12:36:21 +0000 (12:36 +0000)] 
Merge branch 'manpage-grammar' into 'main'

fix AuthDirRejectRequestsUnderLoad man page grammar

See merge request tpo/core/tor!941

4 weeks agofix AuthDirRejectRequestsUnderLoad man page grammar
Roger Dingledine [Sat, 4 Oct 2025 18:53:03 +0000 (14:53 -0400)] 
fix AuthDirRejectRequestsUnderLoad man page grammar

4 weeks agorefactor: simplify supports_tunnelled_dir_requests handling
Roger Dingledine [Sat, 4 Oct 2025 16:15:01 +0000 (12:15 -0400)] 
refactor: simplify supports_tunnelled_dir_requests handling

4 weeks agorefactor router_dirport_seems_reachable() out
Roger Dingledine [Sat, 4 Oct 2025 16:08:51 +0000 (12:08 -0400)] 
refactor router_dirport_seems_reachable() out

4 weeks agorefactor since advertised dir_port is 0 (except dir auths)
Roger Dingledine [Sat, 4 Oct 2025 15:56:56 +0000 (11:56 -0400)] 
refactor since advertised dir_port is 0 (except dir auths)

no behavior change intended

4 weeks agostop telling relay operators their DirPort must be reachable
Roger Dingledine [Sat, 4 Oct 2025 14:33:11 +0000 (10:33 -0400)] 
stop telling relay operators their DirPort must be reachable

in the past we had separate dirport reachability checks, but those are
gone now after https://bugs.torproject.org/tpo/core/tor/2667

4 weeks agosimple comment and whitespace fixes
Roger Dingledine [Sat, 4 Oct 2025 14:08:31 +0000 (10:08 -0400)] 
simple comment and whitespace fixes

5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Fri, 3 Oct 2025 14:17:21 +0000 (10:17 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agoci: Unpin TPA runners, the CI failure has been resolved
David Goulet [Fri, 3 Oct 2025 12:32:16 +0000 (08:32 -0400)] 
ci: Unpin TPA runners, the CI failure has been resolved

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoprocess: Don't close all FDs on new spawn
David Goulet [Tue, 3 Dec 2024 15:16:26 +0000 (10:16 -0500)] 
process: Don't close all FDs on new spawn

Fixes #40990

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoci: Revert i386 minimal to use Bullseye
David Goulet [Thu, 2 Oct 2025 18:49:57 +0000 (14:49 -0400)] 
ci: Revert i386 minimal to use Bullseye

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Thu, 2 Oct 2025 17:45:18 +0000 (13:45 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agoci: Pin TPA runners for now
David Goulet [Thu, 2 Oct 2025 17:43:34 +0000 (13:43 -0400)] 
ci: Pin TPA runners for now

For unknown reasons, the non TPA runners lead to this failure:

slow/process/callbacks:
  FAIL ../../src/test/test_process_slow.c:157: assert(timer_tick_count OP_LT 10): 10 vs 10
  FAIL ../../src/test/test_process_slow.c:188: assert(ret OP_EQ 0): -1 vs 0
  FAIL ../../src/test/test_process_slow.c:240: assert(smartlist_len(process_data->stdout_data) OP_EQ 12): 0 vs 12
  [callbacks FAILED]

slow/process/nonexistent_executable: Sep 30 13:29:58.340 [err] tor_assertion_failed_(): Bug: ../../src/core/mainloop/mainloop.c:750: shutdown_did_not_work_callback: Assertion line should be unreached failed; aborting. (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug: Tor 0.4.8.18-dev: Assertion line should be unreached failed in shutdown_did_not_work_callback at ../../src/core/mainloop/mainloop.c:750: . Stack trace: (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(log_backtrace_impl+0x57) [0x5648f4b4fef7] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(tor_assertion_failed_+0x147) [0x5648f4b5d837] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(+0x1b3676) [0x5648f4b0b676] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(+0x21482) [0x7f75a879c482] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     /lib/x86_64-linux-gnu/libevent-2.1.so.7(event_base_loop+0x49f) [0x7f75a879cc1f] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(+0x1b4024) [0x5648f4b0c024] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(run_main_loop_until_done+0x35) [0x5648f4b0fa45] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(+0x81d3d) [0x5648f49d9d3d] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(+0x82237) [0x5648f49da237] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(+0x9aeb4) [0x5648f49f2eb4] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(testcase_run_one+0x72) [0x5648f49f2f82] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(tinytest_main+0x104) [0x5648f49f3814] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(main+0x493) [0x5648f49d32c3] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7f75a803724a] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f75a8037305] (on Tor 0.4.8.18-dev )
Sep 30 13:29:58.341 [err] Bug:     ./src/test/test-slow(_start+0x21) [0x5648f49d33e1] (on Tor 0.4.8.18-dev )

It is unclear why this is being triggered only on 0.4.8 and non TPA runners
(not happening on main) thus for now pin the runners until we either figure
this one out or deprecate 0.4.8

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoci: Match maint-0.4.8 file
David Goulet [Thu, 2 Oct 2025 17:40:22 +0000 (13:40 -0400)] 
ci: Match maint-0.4.8 file

Will allow forward merging from fixes in 0.4.8

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 30 Sep 2025 20:22:08 +0000 (16:22 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agoFix log integer format
David Goulet [Tue, 30 Sep 2025 20:22:02 +0000 (16:22 -0400)] 
Fix log integer format

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 30 Sep 2025 19:04:05 +0000 (15:04 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agoMerge branch 'tor-gitlab/mr/937' into maint-0.4.8
David Goulet [Tue, 30 Sep 2025 19:04:02 +0000 (15:04 -0400)] 
Merge branch 'tor-gitlab/mr/937' into maint-0.4.8

5 weeks agomaint: fix formatting of changes file (v2)
Steven Engler [Tue, 30 Sep 2025 18:14:53 +0000 (14:14 -0400)] 
maint: fix formatting of changes file (v2)

5 weeks agoflow-ctrl: fix line length warnings
Steven Engler [Tue, 30 Sep 2025 14:45:23 +0000 (10:45 -0400)] 
flow-ctrl: fix line length warnings

5 weeks agomaint: fix formatting of changes file
Steven Engler [Tue, 30 Sep 2025 14:41:51 +0000 (10:41 -0400)] 
maint: fix formatting of changes file

5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 30 Sep 2025 13:56:51 +0000 (09:56 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agoMerge branch 'tor-gitlab/mr/936' into maint-0.4.8
David Goulet [Tue, 30 Sep 2025 13:56:45 +0000 (09:56 -0400)] 
Merge branch 'tor-gitlab/mr/936' into maint-0.4.8

5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 30 Sep 2025 13:43:24 +0000 (09:43 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agogeoip: Upgrade crates to their latest
David Goulet [Tue, 30 Sep 2025 13:43:18 +0000 (09:43 -0400)] 
geoip: Upgrade crates to their latest

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoMerge branch 'maxhsdircache' into 'main'
David Goulet [Tue, 30 Sep 2025 13:24:52 +0000 (13:24 +0000)] 
Merge branch 'maxhsdircache' into 'main'

fix default MaxHSDirCacheBytes setting

See merge request tpo/core/tor!928

5 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 30 Sep 2025 13:15:41 +0000 (09:15 -0400)] 
Merge branch 'maint-0.4.8'

5 weeks agogeoip: Fix cargo clippy warning
David Goulet [Tue, 30 Sep 2025 13:15:20 +0000 (09:15 -0400)] 
geoip: Fix cargo clippy warning

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agogeoip: Fix cargo clippy warning
David Goulet [Tue, 30 Sep 2025 13:15:20 +0000 (09:15 -0400)] 
geoip: Fix cargo clippy warning

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 weeks agoflow-ctrl: improve log line
Steven Engler [Tue, 30 Sep 2025 01:59:39 +0000 (21:59 -0400)] 
flow-ctrl: improve log line

5 weeks agoflow-ctrl: add XOFF grace period
Steven Engler [Tue, 30 Sep 2025 01:57:57 +0000 (21:57 -0400)] 
flow-ctrl: add XOFF grace period

This is meant to reduce the number of XOFF sent, especially on conflux
circuits.

5 weeks agoflow-ctrl: indentation-only change
Steven Engler [Tue, 30 Sep 2025 01:54:06 +0000 (21:54 -0400)] 
flow-ctrl: indentation-only change

This is an intermediate commit to hopefully make reviewing easier. Adds
indentation and a `{}` scope.

5 weeks agoReorder TLS group preferences to work around LibreSSL bug
dzwdz [Mon, 29 Sep 2025 18:15:19 +0000 (20:15 +0200)] 
Reorder TLS group preferences to work around LibreSSL bug

6 weeks agoMerge branch 'ticket41117' into 'main'
David Goulet [Thu, 25 Sep 2025 14:36:48 +0000 (14:36 +0000)] 
Merge branch 'ticket41117' into 'main'

Bulletproof the "get_mozilla_ciphers" script

Closes #41117

See merge request tpo/core/tor!933

6 weeks agoBulletproof the "get_mozilla_ciphers" script
Nick Mathewson [Tue, 23 Sep 2025 15:44:28 +0000 (11:44 -0400)] 
Bulletproof the "get_mozilla_ciphers" script

Reviewers have noted that the script's logic treats all "enabled"
flags in StaticPrefList.yaml (other than an explicit False) as True.
That's not so great, since the flag can also be a string, and we
don't necessarily want to treat all strings as meaning that a
ciphersuite is enabled.  (Although we do in fact want to treat
the only string used in _current_ firefox git main that way.)

This change has no effect on the generated ciphers.inc.

Closes #41117.

ci

7 weeks agoversion: Bump version to 0.4.9.3-alpha-dev
Tor CI Release [Tue, 16 Sep 2025 15:45:25 +0000 (15:45 +0000)] 
version: Bump version to 0.4.9.3-alpha-dev

7 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 16 Sep 2025 16:00:22 +0000 (12:00 -0400)] 
Merge branch 'maint-0.4.8'

7 weeks agoversion: Bump version to 0.4.8.18-dev
Tor CI Release [Tue, 16 Sep 2025 15:45:24 +0000 (15:45 +0000)] 
version: Bump version to 0.4.8.18-dev

7 weeks agoclean up MaxHSDirCacheBytes docs
dzwdz [Tue, 16 Sep 2025 02:57:37 +0000 (04:57 +0200)] 
clean up MaxHSDirCacheBytes docs

slop? in my tor(1)? more likely than you think

I don't think any other entries use "Default" lke this, and the repetition
seems pointless.  The historical context was broken off to keep the "main" part
short and tidy.

7 weeks agoversion: Bump version to 0.4.9.3-alpha tor-0.4.9.3-alpha
Tor CI Release [Tue, 16 Sep 2025 15:39:06 +0000 (15:39 +0000)] 
version: Bump version to 0.4.9.3-alpha

7 weeks agochangelog: Use the right alpha version
David Goulet [Tue, 16 Sep 2025 15:37:02 +0000 (11:37 -0400)] 
changelog: Use the right alpha version

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 weeks agoversion: Bump version to 0.4.9.2-alpha
Tor CI Release [Tue, 16 Sep 2025 14:36:50 +0000 (14:36 +0000)] 
version: Bump version to 0.4.9.2-alpha

7 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 16 Sep 2025 15:05:26 +0000 (11:05 -0400)] 
Merge branch 'maint-0.4.8'

7 weeks agoversion: Bump version to 0.4.8.18
Tor CI Release [Tue, 16 Sep 2025 14:36:42 +0000 (14:36 +0000)] 
version: Bump version to 0.4.8.18

7 weeks agorelease: ChangeLog and ReleaseNotes for 0.4.9.2-alpha
David Goulet [Tue, 16 Sep 2025 15:04:31 +0000 (11:04 -0400)] 
release: ChangeLog and ReleaseNotes for 0.4.9.2-alpha

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 16 Sep 2025 14:48:54 +0000 (10:48 -0400)] 
Merge branch 'maint-0.4.8'

7 weeks agofallbackdir: Update list generated on September 16, 2025
Tor CI Release [Tue, 16 Sep 2025 14:35:56 +0000 (14:35 +0000)] 
fallbackdir: Update list generated on September 16, 2025

7 weeks agoUpdate geoip files to match ipfire location db, 2025/09/16.
Tor CI Release [Tue, 16 Sep 2025 14:34:41 +0000 (14:34 +0000)] 
Update geoip files to match ipfire location db, 2025/09/16.

7 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 16 Sep 2025 14:15:20 +0000 (10:15 -0400)] 
Merge branch 'maint-0.4.8'

7 weeks agoFix test_parseconf on MaxHSDirCacheBytes default
Alex Xu (Hello71) [Mon, 15 Sep 2025 23:39:08 +0000 (19:39 -0400)] 
Fix test_parseconf on MaxHSDirCacheBytes default

Change the logic to evaluate the default when fetching the value, matching
other default options like ExtORPortCookieAuthFile.

7 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Tue, 16 Sep 2025 13:01:45 +0000 (09:01 -0400)] 
Merge branch 'maint-0.4.8'

7 weeks agoMerge branch 'tor-gitlab/mr/927'
David Goulet [Tue, 16 Sep 2025 13:00:45 +0000 (09:00 -0400)] 
Merge branch 'tor-gitlab/mr/927'

7 weeks agoMerge branch 'tor-gitlab/mr/927' into maint-0.4.8
David Goulet [Tue, 16 Sep 2025 12:58:22 +0000 (08:58 -0400)] 
Merge branch 'tor-gitlab/mr/927' into maint-0.4.8

7 weeks agoMerge branch 'cleanup' into 'main'
David Goulet [Tue, 16 Sep 2025 12:52:52 +0000 (12:52 +0000)] 
Merge branch 'cleanup' into 'main'

add a log_backtrace_once macro

See merge request tpo/core/tor!924

7 weeks agoMerge branch 'practracker-python-3-14' into 'main'
David Goulet [Tue, 16 Sep 2025 12:43:40 +0000 (12:43 +0000)] 
Merge branch 'practracker-python-3-14' into 'main'

practracker: codecs.open -> io.open for python 3.14

See merge request tpo/core/tor!930

7 weeks agoMerge branch 'hsdir-max-bytes-config' into 'main'
David Goulet [Tue, 16 Sep 2025 12:42:19 +0000 (12:42 +0000)] 
Merge branch 'hsdir-max-bytes-config' into 'main'

Fix test_parseconf on MaxHSDirCacheBytes default

See merge request tpo/core/tor!929

7 weeks agoFix test_parseconf on MaxHSDirCacheBytes default
Alex Xu (Hello71) [Mon, 15 Sep 2025 23:39:08 +0000 (19:39 -0400)] 
Fix test_parseconf on MaxHSDirCacheBytes default

Change the logic to evaluate the default when fetching the value, matching
other default options like ExtORPortCookieAuthFile.

7 weeks agopractracker: codecs.open -> io.open for python 3.14
Alex Xu (Hello71) [Mon, 15 Sep 2025 23:37:00 +0000 (19:37 -0400)] 
practracker: codecs.open -> io.open for python 3.14

codecs.open is now deprecated: https://docs.python.org/3.14/whatsnew/3.14.html.
it prints a DeprecationWarning which makes tests fail, and may be removed in
the future. io.open works on python 2 and 3

7 weeks agorelay: Zeroed a stack allocated relay msg struct
David Goulet [Mon, 15 Sep 2025 17:04:54 +0000 (13:04 -0400)] 
relay: Zeroed a stack allocated relay msg struct

Following 63332eb3e711786f (MR 926), just more defense in depth for our future
selves.

Related to #41123

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 weeks agoMerge branch 'tor-gitlab/mr/926'
David Goulet [Mon, 15 Sep 2025 17:03:05 +0000 (13:03 -0400)] 
Merge branch 'tor-gitlab/mr/926'

7 weeks agocirc: Free conflux pending nonce if nonce is untracked
David Goulet [Mon, 15 Sep 2025 15:05:56 +0000 (11:05 -0400)] 
circ: Free conflux pending nonce if nonce is untracked

This can happen if we loose track of the nonce and a circuit with it is
repurposed.

Without this, it would lead to a non fatal assert on a control port circuit
event of puporse change.

Related to #41037

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 weeks agoSet is_relay_early to false when encoding relay msgs.
Nick Mathewson [Mon, 15 Sep 2025 13:20:15 +0000 (09:20 -0400)] 
Set is_relay_early to false when encoding relay msgs.

Spotted by Alex Xu.

Fixes #41123; bug not in any released Tor.

8 weeks agocredit shadowcoder for #41104 fix
Roger Dingledine [Fri, 12 Sep 2025 19:19:06 +0000 (15:19 -0400)] 
credit shadowcoder for #41104 fix

8 weeks agoadd a log_backtrace_once macro
dzwdz [Sat, 6 Sep 2025 19:29:14 +0000 (21:29 +0200)] 
add a log_backtrace_once macro

This is a common pattern when calling log_backtrace, and we already have
similar macros like tor_assert_nonfatal_once.

8 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Wed, 10 Sep 2025 17:54:04 +0000 (13:54 -0400)] 
Merge branch 'maint-0.4.8'

8 weeks agoconfig: Fix wide comment
David Goulet [Wed, 10 Sep 2025 17:53:59 +0000 (13:53 -0400)] 
config: Fix wide comment

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Wed, 10 Sep 2025 17:51:29 +0000 (13:51 -0400)] 
Merge branch 'maint-0.4.8'

8 weeks agoMerge remote-tracking branch 'mikeperry-private/ticket41006_copilot_piecewise' into...
David Goulet [Wed, 10 Sep 2025 17:51:19 +0000 (13:51 -0400)] 
Merge remote-tracking branch 'mikeperry-private/ticket41006_copilot_piecewise' into maint-0.4.8

8 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Wed, 10 Sep 2025 17:11:15 +0000 (13:11 -0400)] 
Merge branch 'maint-0.4.8'

8 weeks agoMerge branch 'tor-gitlab/mr/917' into maint-0.4.8
David Goulet [Wed, 10 Sep 2025 17:11:10 +0000 (13:11 -0400)] 
Merge branch 'tor-gitlab/mr/917' into maint-0.4.8

8 weeks agoMerge branch 'maint-0.4.8'
David Goulet [Wed, 10 Sep 2025 17:07:16 +0000 (13:07 -0400)] 
Merge branch 'maint-0.4.8'

8 weeks agoMerge branch 'cleanup' into 'main'
David Goulet [Wed, 10 Sep 2025 15:01:35 +0000 (15:01 +0000)] 
Merge branch 'cleanup' into 'main'

remove dead code from circuit_n_chan_done

See merge request tpo/core/tor!923

2 months agoremove dead code from circuit_n_chan_done
dzwdz [Mon, 8 Sep 2025 03:01:20 +0000 (05:01 +0200)] 
remove dead code from circuit_n_chan_done

close_origin_circuits was added in ccabbe702a072cfc4b2ec194d8211d06ce991904,
and the last usage was removed in 5a174ebfac759081c1c6c2adf614c43cc75325c3,
8 years ago.

2 months agoMake thread control POSIX compliant
Waldemar Zimpel [Sun, 24 Aug 2025 19:10:34 +0000 (21:10 +0200)] 
Make thread control POSIX compliant

Closes issue #41109

2 months agoPreparation of `tor_sleep_msec()`
Waldemar Zimpel [Wed, 27 Aug 2025 23:24:50 +0000 (01:24 +0200)] 
Preparation of `tor_sleep_msec()`

- Update `tor_sleep_msec()` with `nanosleep()` function
- Make `tor_sleep_msec()` available outside of unit tests

2 months agoMerge branch 'bridgeline' into 'main'
Alexander Hansen Færøy [Thu, 28 Aug 2025 13:19:52 +0000 (15:19 +0200)] 
Merge branch 'bridgeline' into 'main'

bridge: output complete bridge lines to logs & disk

See merge request tpo/core/tor!782

2 months agoMerge branch 'maint-0.4.8'
David Goulet [Wed, 27 Aug 2025 18:01:24 +0000 (14:01 -0400)] 
Merge branch 'maint-0.4.8'