summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-03-28Merge branch 'maint-0.4.6'David Goulet
2022-03-28Merge branch 'maint-0.4.5' into maint-0.4.6David Goulet
2022-03-28Merge branch 'tor-gitlab/mr/556' into maint-0.4.5David Goulet
2022-03-27Sandbox: Permit the clone3 system callNick Mathewson
Apparently glibc-2.34 uses clone3, when previously it just used clone. Closes ticket #40590.
2022-03-25version: Bump version to 0.4.7.5-alpha-devTor CI Release
2022-03-25version: Bump version to 0.4.7.5-alphator-0.4.7.5-alphaTor CI Release
2022-03-25fallbackdir: Update list generated on March 25, 2022Tor CI Release
2022-03-25Update geoip files to match ipfire location db, 2022/03/25.Tor CI Release
2022-03-16Merge branch 'tor-gitlab/mr/550'David Goulet
2022-03-16Merge branch 'tor-gitlab/mr/548'David Goulet
2022-03-16hs: Helper function to setup congestion controlDavid Goulet
We had 3 callsites setting up the circuit congestion control and so this commit consolidates all 3 calls into 1 function. Related to #40586 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-16hs: Transfer ccontrol from circuit to cpathDavid Goulet
Once the cpath is finalized, e2e encryption setup, transfer the ccontrol from the rendezvous circuit to the cpath. This allows the congestion control subsystem to properly function for both upload and download side of onion services. Closes #40586 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-16dns: Remove reachable BUG()David Goulet
Fixes #40587 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-16Merge branch 'tor-gitlab/mr/490'David Goulet
2022-03-15relay: Reconfigure libevent options only on DNS params changeDavid Goulet
Related #40312 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15relay: On new consensus, reconfigure DNS nameserversDavid Goulet
This applies only for relays. Previous commit adds two new consensus parameters that dictate how libevent is configured with DNS resolution. And so, with a new consensus, we now look at those values in case they ever change. Without this, Exit relay would have to HUP or restart to apply any new Exit DNS consensus parameters. Related to #40312 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15relay: Lower DNS Exit-side timeoutDavid Goulet
Introduces two new consensus parameter: exit_dns_timeout: Number of seconds before libevent should consider the DNS request a timeout. exit_dns_num_attempts: Number of attempts that libeven should retry a previously failing query before calling it a timeout. Closes #40312 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15Merge branch 'tor-gitlab/mr/547'David Goulet
2022-03-15crypto: Clarifying comment for the random hostname calculationDavid Goulet
Closes #40520 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15test: Unit tests for overload onionskin ntorDavid Goulet
Part of #40560 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15rephist: Introduce a fraction and period for overload onionskinDavid Goulet
This code was heavily reused from the previous DNS timeout work done in ticket #40491 that was removed afterall from our code. Closes #40560 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-15dns: Wake up a dormant tor with a DNSPort requestDavid Goulet
Fixes #40577 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-14Merge branch 'tor-gitlab/mr/546'David Goulet
2022-03-14Emit control port notification for XON/XOFFMike Perry
2022-03-14Control port STREAM XON/XOFF status event notificationMike Perry
2022-03-11Merge branch 'tor-gitlab/mr/543'David Goulet
2022-03-10Merge branch 'maint-0.4.5' into maint-0.4.6David Goulet
2022-03-10Merge branch 'maint-0.4.6'David Goulet
2022-03-10hs: Schedule mainloop event on dirinfo changeDavid Goulet
Due to a possible Guard subsystem recursion, when the HS client gets notified that the directory information has changed, it must run it in a seperate mainloop event to avoid such issue. See the ticket for more information on the recursion. This also fixes a fatal assert. Fixes #40579 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-09hs: Don't BUG() when setting up RP congestion controlDavid Goulet
It is possible to not have the descriptor anymore by the time the rendezvous circuit opens. Don't BUG() on that. Instead, when sending the INTRODUCE1 cell, make sure the descriptor we have (or have just fetched) matches what we setup in the rendezvous circuit. If not, the circuit is closed and another one is opened for a retry. Fixes #40576 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-09Merge branch 'maint-0.4.5' into maint-0.4.6David Goulet
2022-03-08hs: Fix multiple port label on single metricDavid Goulet
Prometheus needs unique labels and so this bug was causing an onion service with multiple ports to have multiple "port=" label for the metrics requiring a port label. Fixes #40581 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-08hs: Fix multiple port label on single metricDavid Goulet
Prometheus needs unique labels and so this bug was causing an onion service with multiple ports to have multiple "port=" label for the metrics requiring a port label. Fixes #40581 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-03-03Make a check for origin circuit explicit.Mike Perry
2022-03-03Ensure CIRC_BW event is emitted immediately upon slow start exit.Mike Perry
This ensures sbws gets this information quickly, so it can begin measurement.
2022-03-03Add congestion control fields to CIRC_BW control port eventMike Perry
2022-02-25version: Bump version to 0.4.7.4-alpha-devTor CI Release
2022-02-25version: Bump version to 0.4.7.4-alphator-0.4.7.4-alphaTor CI Release
2022-02-25fallbackdir: Update list generated on February 25, 2022Tor CI Release
2022-02-25Update geoip files to match ipfire location db, 2022/02/25.Tor CI Release
2022-02-25Fix typosDimitris Apostolou
2022-02-23Merge branch 'tor-gitlab/mr/488'David Goulet
2022-02-23cc: Fix memleak when building extension responseDavid Goulet
Fixes #40575 Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-02-23Merge branch 'tor-gitlab/mr/536'David Goulet
2022-02-23fix a typo in a commentRoger Dingledine
2022-02-23Reject intro2 cells that request unadvertized congestion control.Mike Perry
2022-02-23Properly initialize the cc_enabled field in hs intro data.Mike Perry
2022-02-22Add test for sendme_inc validation.Mike Perry
2022-02-22Add test for sendme_cell_is_next with sendme_inc of 31Mike Perry
2022-02-22Add test for circuit_sendme_cell_is_next() when sendme_inc is 100.Mike Perry
This ensures compatibility with old tor.