Roger Dingledine
962b15aa6f
fix some tiny typos
2021-03-24 18:13:46 -04:00
Nick Mathewson
f6af8e2021
Merge branch 'maint-0.4.5'
2021-03-24 12:25:05 -04:00
Nick Mathewson
c359c3056b
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-03-24 12:25:05 -04:00
Nick Mathewson
37b16d7e19
Merge remote-tracking branch 'tor-gitlab/mr/339'
2021-03-24 12:23:30 -04:00
George Kadianakis
f1c673fa54
Merge remote-tracking branch 'tor-gitlab/mr/343'
2021-03-24 13:17:27 +02:00
David Goulet
0cf3ab54f6
Merge branch 'tor-gitlab/mr/337'
2021-03-23 09:42:21 -04:00
Nick Mathewson
08a1b4d6b1
Add a DormantTimeoutEnabled to disable dormant mode entirely
...
(If you need to do this in an older version you can just set
DormantClientTimeout to something huge.)
Closes #40228 .
2021-03-23 09:40:58 -04:00
David Goulet
9ca2394d6b
channel: Fix use after free in channel_do_open_actions()
...
Fortunately, our tor_free() is setting the variable to NULL after so we were
in a situation where NULL was always used instead of the transport name.
This first appeared in 894ff2dc84
and results in
basically no bridge with a transport being able to use DoS defenses.
Fixes #40345
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-03-23 09:19:41 -04:00
David Goulet
3a2593710b
man: HiddenServiceStatistics applies for bridges
...
Closes #40346
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-03-23 08:32:26 -04:00
David Goulet
35b601a8b5
Merge branch 'tor-gitlab/mr/342'
2021-03-23 08:19:02 -04:00
Nick Mathewson
5c7f9844e4
manpage:Move BridgeRecordUsageByCountry to statistics section
...
patch from cypherpunks; closes #40323
2021-03-22 14:09:22 -04:00
George Kadianakis
ed7081ae2e
Improve the man page entry for Address.
...
Fixes bug #40296 .
2021-03-22 16:38:34 +02:00
Nick Mathewson
0229d5f818
Add "Heartbeat" to the start of several heartbeat messages.
...
Closes #40322 .
2021-03-19 13:33:56 -04:00
Nick Mathewson
2dfa19a871
Move ServerTransport* options to 'Server Options' section.
...
Patch from 'cypherpunks'. Closes #40331 .
2021-03-19 13:23:29 -04:00
Nick Mathewson
40294c8ab1
Link to bridges.torproject.org/info in BridgeDistribution entry.
...
This incorporates a suggestion from cypherpunks on #40321
Closes #40321 .
2021-03-19 13:10:41 -04:00
Nick Mathewson
3f7824ff68
bump to 0.4.6.1-alpha-dev
2021-03-18 13:48:19 -04:00
Nick Mathewson
cd0e5a942e
Terminate rep_hist_get_overload_stats_lines() with an NL.
...
We use it in router.c, where chunks are joined with "", not with
NL... so leaving off the terminating NL will lead to an unparseable
extrainfo.
Found by toralf. Bug not in any released Tor.
2021-03-18 13:30:49 -04:00
Nick Mathewson
411db63fc3
Minor edits to changelog
2021-03-18 10:16:37 -04:00
Nick Mathewson
ded8f9b378
Fold new entries into 0.4.6.1-alpha ChangeLog
2021-03-18 09:51:37 -04:00
George Kadianakis
80da1761a6
Fix compiler warning about signed/unsigned conversion.
...
```
src/feature/stats/rephist.c: In function ‘overload_happened_recently’:
src/feature/stats/rephist.c:215:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (overload_time > approx_time() - 3600 * n_hours) {
```
from https://gitlab.torproject.org/tpo/core/tor/-/issues/40341#note_2729364
2021-03-17 20:03:39 +02:00
Roger Dingledine
6de09642f0
warn and reject reentering streams at client too
...
Clients now check whether their streams are attempting to re-enter
the Tor network (i.e. to send Tor traffic over Tor), and they close
them preemptively if they think exit relays will refuse them.
See bug 2667 for details. Resolves ticket 40271.
2021-03-17 13:04:23 -04:00
George Kadianakis
29f07a4e9d
Merge branch 'mr/334'
2021-03-17 18:23:18 +02:00
George Kadianakis
7740a8b5d4
Rate-limit counter should increase once per minute.
2021-03-17 18:22:38 +02:00
George Kadianakis
e688580277
Implement rate limiting metrics.
2021-03-17 18:22:38 +02:00
George Kadianakis
faf1fe833e
Implement port/file-descriptor exhaustion metric.
...
This uses a heuristic that came up after a discussion with David.
I'm leaving this as a separate commit so that it can be discussed further if
needed.
2021-03-17 18:22:38 +02:00
George Kadianakis
f493a12e89
Implement straightforward overload general metrics.
...
- OOM metric
- onionskin overload metric
- DNS timeout metric
2021-03-17 18:22:38 +02:00
George Kadianakis
0a5ecb3342
Implement backbone of overload statistics.
...
- Implement overload statistics structure.
- Implement function that keeps track of overload statistics.
- Implement function that writes overload statistics to descriptor.
- Unittest for the whole logic.
2021-03-17 18:22:38 +02:00
David Goulet
15a95df376
Merge branch 'tor-gitlab/mr/337'
2021-03-17 11:53:14 -04:00
Nick Mathewson
066748c9cd
Add a DormantTimeoutEnabled to disable dormant mode entirely
...
(If you need to do this in an older version you can just set
DormantClientTimeout to something huge.)
Closes #40228 .
2021-03-17 11:53:09 -04:00
George Kadianakis
0ac03390e4
Merge branch 'maint-0.4.5'
2021-03-17 13:43:48 +02:00
George Kadianakis
59bbf8cde9
Merge remote-tracking branch 'tor-gitlab/mr/333' into maint-0.4.5
2021-03-17 13:43:38 +02:00
Nick Mathewson
36b54fc6aa
Merge branch 'maint-0.4.5'
...
"ours" to avoid version bump.
2021-03-16 09:18:40 -04:00
Nick Mathewson
d66178c7b7
Bump version to 0.4.5.7-dev
2021-03-16 09:18:27 -04:00
Nick Mathewson
e2dd8f1532
Merge branch 'maint-0.4.4' into maint-0.4.5
...
"ours" to avoid version bump.
2021-03-16 09:18:06 -04:00
Nick Mathewson
94fb308c5d
Bump version to 0.4.4.8-dev
2021-03-16 09:17:56 -04:00
Nick Mathewson
5fac24053d
Merge branch 'maint-0.3.5' into maint-0.4.4
...
"ours" to avoid version bump.
2021-03-16 09:17:40 -04:00
Nick Mathewson
3271c0bde7
Bump to 0.3.5.14-dev
2021-03-16 09:17:31 -04:00
Nick Mathewson
57d969de1a
Copy forward ReleaseNotes and ChangeLogs for today's releases
2021-03-16 08:31:22 -04:00
Nick Mathewson
7c00afe0fb
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-03-15 09:41:38 -04:00
Nick Mathewson
c306b0f511
Merge branch 'maint-0.4.5'
2021-03-15 09:41:38 -04:00
Nick Mathewson
f2cfd1ffad
Remove check-best-practices from check-local in 0.4.4
2021-03-15 09:41:19 -04:00
Nick Mathewson
2022d974af
Fold ticket40314 into ChangeLog.
2021-03-15 09:35:56 -04:00
Nick Mathewson
fcd42982b2
Remove changes files that will appear in 0.4.5.7
...
(0.4.6.1-alpha will come out after the stable releases.)
2021-03-15 09:03:37 -04:00
Nick Mathewson
61731e3550
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-03-15 09:01:59 -04:00
Nick Mathewson
5ec579610a
Merge branch 'maint-0.3.5' into maint-0.4.4
2021-03-15 09:01:59 -04:00
Nick Mathewson
3268403ba1
Merge branch 'maint-0.4.5'
2021-03-15 09:01:59 -04:00
Nick Mathewson
f078aab71e
Merge branch 'bug40316_035_v2' into maint-0.3.5
2021-03-15 08:58:54 -04:00
Nick Mathewson
890ae4fb1a
Fix detection of point to insert signatures on a pending consensus.
...
We were looking for the first instance of "directory-signature "
when instead the correct behavior is to look for the first instance
of "directory-signature " at the start of a line.
Unfortunately, this can be exploited as to crash authorities while
they're voting.
Fixes #40316 ; bugfix on 0.2.2.4-alpha. This is TROVE-2021-002,
also tracked as CVE-2021-28090.
2021-03-15 08:56:58 -04:00
Nick Mathewson
a6533af9e8
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-03-15 08:54:00 -04:00
Nick Mathewson
2eb900f7e2
Merge branch 'maint-0.3.5' into maint-0.4.4
2021-03-15 08:54:00 -04:00