39156 Commits

Author SHA1 Message Date
David Goulet a789ab32f2 Merge branch 'fix-changelogs' into 'main'
clean up the 0.4.9.1-alpha changelog/releasenotes

See merge request tpo/core/tor!849
2024-12-03 20:47:57 +00:00
Roger Dingledine 997b151b8d remove redundant change entries
they are already in a released stable, so they are not new to
this alpha
2024-12-03 14:03:20 -05:00
Roger Dingledine 07777d965a forward-port the 0.4.8.13 changes 2024-12-03 13:54:01 -05:00
Roger Dingledine 1e46ba5bbe remove the 0.4.9.1-alpha entries from releasenotes
releasenotes is for stables, and 1-alpha is not a stable
2024-12-03 13:50:51 -05:00
Tor CI Release ff34bbf494 version: Bump version to 0.4.9.1-alpha-dev 2024-12-03 12:18:15 -05:00
Tor CI Release 132e6aad99 version: Bump version to 0.4.9.1-alpha tor-0.4.9.1-alpha 2024-12-03 11:11:09 -05:00
Tor CI Release 9918acd57b release: ChangeLog and ReleaseNotes for 0.4.9.1-alpha 2024-12-03 11:10:03 -05:00
Alexander Hansen Færøy 5567617e3b Merge branch 'ticket40990_049_01' into 'main'
process: Don't close all FDs on new spawn

Closes #40990

See merge request tpo/core/tor!848
2024-12-03 15:43:34 +00:00
David Goulet 717b59ac2b process: Don't close all FDs on new spawn
Fixes #40990

Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-12-03 10:16:32 -05:00
David Goulet e5b51eb10f Revert "Rework of worker threads' start and exit + slight changes in cleanup code"
This reverts commit 4f3aafa1e4.

Once merged upstream, the CI failed here with:

Warning: Failed to confirm worker threads' start up after timeout.
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(_start+0x2a) [0x56404d21ddaa] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(cpuworker_init+0x53) [0x56404d373d53] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(log_backtrace_impl+0x57) [0x56404d29e1f7] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(main+0x19) [0x56404d21dd59] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(run_tor_main_loop+0xce) [0x56404d22188e] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(threadpool_new+0x295) [0x56404d3e28f5] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(tor_assertion_failed_+0x148) [0x56404d2a9248] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(tor_main+0x49) [0x56404d21e179] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /builds/tpo/core/tor/build/src/app/tor(tor_run_main+0x1e5) [0x56404d221db5] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f6aa3b1cd7a] (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)
Warning: Bug: Tor 0.4.9.0-alpha-dev (git-4f3aafa1e422e9aa): Assertion 0 failed in threadpool_new at /builds/tpo/core/tor/src/lib/evloop/workqueue.c:641: . Stack trace: (on Tor 0.4.9.0-alpha-dev 4f3aafa1e4)

We are figuring it out but revert this so we can release an alpha.
2024-12-03 10:06:25 -05:00
Waldemar Zimpel 4f3aafa1e4 Rework of worker threads' start and exit + slight changes in cleanup code
See issue #40991
2024-12-03 09:20:15 -05:00
David Goulet 89e5e03dd5 Merge branch 'maint-0.4.8' 2024-11-19 11:05:03 -05:00
Jim Newsome 08e872ef51 test-network-run: refactor away test_network_ipv6
This should be a pure refactor to simplify the logic a bit now that we
no longer probe for IPv6 support.
2024-11-19 09:25:35 -06:00
Jim Newsome 3e54c985a2 test-network: include IPv6 tests unconditionally
Previously we would incorrectly detect that ipv6 isn't supported if the
ping binary isn't present (as it may not be in a relatively stripped
down container image), or if ICMP packets aren't permitted (as they
often aren't in containers).

We don't really have a need to run these network tests on non-IPv6
systems, so it makes more sense to just run them unconditionally.
2024-11-19 09:25:35 -06:00
David Goulet f15653dce1 Merge branch 'maint-0.4.8' 2024-11-19 10:24:44 -05:00
Jim Newsome 704540fe46 debian-i386-minimal: explicitly set platform
This is to work around
https://github.com/docker-library/official-images/issues/17896
2024-11-19 10:24:39 -05:00
Jim Newsome 4fe6ef38a2 CI: Use TPA-based images 2024-11-19 10:24:37 -05:00
Jim Newsome e0888653d8 debian-gpl: Run on debian:bullseye instead of buster
* buster is now very old
* all the other jobs run bullseye
* This will facilitate switching to a TPA-maintained image (there is no
  buster image).
2024-11-19 10:24:34 -05:00
David Goulet 3795c77bed Merge branch 'tpa-images' into 'main'
Update images

See merge request tpo/core/tor!846
2024-11-19 14:02:46 +00:00
Jim Newsome 3a5906dd07 debian-i386-minimal: explicitly set platform
This is to work around
https://github.com/docker-library/official-images/issues/17896
2024-11-18 14:17:16 -06:00
Jim Newsome 19d4e13c47 CI: Use TPA-based images 2024-11-18 14:17:14 -06:00
Jim Newsome 3ddf41f8ff debian-gpl: Run on debian:bullseye instead of buster
* buster is now very old
* all the other jobs run bullseye
* This will facilitate switching to a TPA-maintained image (there is no
  buster image).
2024-11-18 14:15:37 -06:00
David Goulet 9b03f0288a Merge branch 'maint-0.4.8' 2024-10-31 08:37:51 -04:00
Waldemar Zimpel 4759350b9a Fix: Use FREE_AND_NULL() for releasing workqueue resources
See issue #40989
2024-10-31 08:37:37 -04:00
David Goulet 6c8238f313 Merge branch 'pin-chutney' into 'main'
CI: use a fixed version of chutney

See merge request tpo/core/tor!843
2024-10-30 17:36:28 +00:00
Jim Newsome f79a5e6629 CI: use a fixed version of chutney
While chutney currently runs tor's chutney test in its own CI,
it's difficult to guarantee the two won't accidentally diverge.
Probably best to use a fixed version here so that we can control
chutney version bumps and avoid surprise breakage in tor's CI.

This will also free us to intentionally make breaking changes in
chutney (though I don't have any immediate plans for any).
2024-10-30 12:16:35 -05:00
Alexander Hansen Færøy 444ee53d34 Merge branch 'whitespace' into 'main'
whitespace fix while debugging #40981

See merge request tpo/core/tor!841
2024-10-28 11:30:25 +00:00
Roger Dingledine 9cb7a19e22 whitespace fix while debugging #40981 2024-10-24 18:55:29 -04:00
David Goulet 0e21b79227 Merge branch 'maint-0.4.8' 2024-10-24 11:43:14 -04:00
David Goulet 3abcb33545 Merge branch 'tor-gitlab/mr/840' into maint-0.4.8 2024-10-24 11:43:07 -04:00
Jim Newsome 09e91e2f56 Use pip to install chutney's python dependencies 2024-10-24 10:09:19 -05:00
David Goulet 716b3d406e Merge branch 'maint-0.4.8' 2024-10-24 10:58:52 -04:00
Tor CI Release 20b075eea8 version: Bump version to 0.4.8.13-dev 2024-10-24 10:58:37 -04:00
Jim Newsome e6bfc2a4ea Re-format CHUTNEY installation block into multiple lines
We're about to add a few more steps, which would make the single-line
format a bit unwieldy.
2024-10-24 09:44:47 -05:00
David Goulet 534b43518d Merge branch 'maint-0.4.8' 2024-10-24 10:38:31 -04:00
Tor CI Release 2f1dfe85ab version: Bump version to 0.4.8.13 2024-10-24 10:38:17 -04:00
David Goulet 0567401805 Merge branch 'maint-0.4.8' 2024-10-24 10:33:31 -04:00
Tor CI Release 200e89ee69 fallbackdir: Update list generated on October 24, 2024 2024-10-24 10:32:45 -04:00
Tor CI Release dd9c6a4992 Update geoip files to match ipfire location db, 2024/10/24. 2024-10-24 10:30:55 -04:00
David Goulet 26c069089b Revert "Handle empty DNS reply without error as NOERROR"
Closes #40984

This reverts commit 3d2f7c3467.
2024-10-21 12:03:54 -04:00
David Goulet 8f43b97895 Merge branch 'maint-0.4.8' 2024-10-16 09:05:34 -04:00
Alexander Hansen Færøy 605f30c486 Merge branch 'tor-resolve-bugfix' into 'main'
Create socket with correct family as given by sockshost

See merge request tpo/core/tor!836
2024-10-16 12:35:57 +00:00
Daniel Winzen b5d2ef2aeb Add changes file 2024-10-15 22:26:49 +02:00
Roger Dingledine 7cca6dc1a3 don't build preemptive conflux circuits if no predicted ports
Conflux circuit building was ignoring the "predicted ports" feature,
which aims to make Tor stop building circuits if there have been
no user requests lately. This bug led to every idle Tor on the
network building and discarding circuits every 30 seconds, which
added overall load to the network, used bandwidth and battery from
clients that weren't actively using their Tor, and kept sockets open
on guards which added connection padding essentially forever.

Bug went in on commit 39c2927d when we added preemptive conflux circuit
pools.

Fixes bug 40981; bugfix on 0.4.8.1-alpha.
2024-10-15 15:59:25 -04:00
Daniel Winzen 6ea640dfc2 Create socket with correct family as given by sockshost 2024-10-13 22:32:56 +02:00
David Goulet e699cfc697 Merge branch 'changelogs' into 'main'
forward-port the 0.4.8.12 changes

See merge request tpo/core/tor!834
2024-10-10 13:57:12 +00:00
David Goulet 0577b630e1 Merge branch 'maint-0.4.8' 2024-10-10 09:55:57 -04:00
Waldemar Zimpel 6feaea8fa4 Fix: Memory leaks in cpuworker on shutdown
Resources allocated by cpuworker weren't being freed on clean shutdown.
This applies for worker threads, worker thread pool, reply queue, reply
event, ...
2024-10-10 09:55:46 -04:00
David Goulet cd04eee7e5 changes: Add file for ticket 40248
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-10-10 09:24:39 -04:00
David Goulet 7383d462fb Merge branch 'empty-dns' into 'main'
Handle empty DNS reply without error as NOERROR

Closes #40248

See merge request tpo/core/tor!830
2024-10-10 13:22:23 +00:00