]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Tue, 8 Jun 2021 16:47:57 +0000 (12:47 -0400)]
Modernize our libfuzzer usage to close #40407
Additionally, remove lingering references to hsv2 fuzzers from the
fuzzing_include_am.py script.
Nick Mathewson [Mon, 7 Jun 2021 17:51:05 +0000 (13:51 -0400)]
Add a checklist to releasingtor.md
Nick Mathewson [Mon, 7 Jun 2021 17:50:53 +0000 (13:50 -0400)]
Copy 0.4.5.8 changelog into the main branch changelog.
Nick Mathewson [Mon, 7 Jun 2021 17:32:18 +0000 (13:32 -0400)]
Merge branch 'maint-0.4.6'
"ours" to avoid version bump.
Nick Mathewson [Mon, 7 Jun 2021 17:32:07 +0000 (13:32 -0400)]
Bump to 0.4.6.5
Nick Mathewson [Mon, 7 Jun 2021 17:31:21 +0000 (13:31 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
"ours" to avoid version bump.
Nick Mathewson [Mon, 7 Jun 2021 17:31:10 +0000 (13:31 -0400)]
Bump to 0.4.5.9.
Nick Mathewson [Mon, 7 Jun 2021 17:30:36 +0000 (13:30 -0400)]
Merge branch 'maint-0.4.4' into maint-0.4.5
"ours" to avoid version bump.
Nick Mathewson [Mon, 7 Jun 2021 17:30:18 +0000 (13:30 -0400)]
Bump to 0.4.4.9
Nick Mathewson [Mon, 7 Jun 2021 17:29:49 +0000 (13:29 -0400)]
Merge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 7 Jun 2021 17:29:35 +0000 (13:29 -0400)]
Bump to 0.3.5.15.
Nick Mathewson [Tue, 1 Jun 2021 16:16:42 +0000 (12:16 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Tue, 1 Jun 2021 16:16:35 +0000 (12:16 -0400)]
Merge branch 'bug40175_045' into maint-0.4.6
Nick Mathewson [Tue, 1 Jun 2021 16:16:06 +0000 (12:16 -0400)]
changes file for #40175
David Goulet [Tue, 1 Jun 2021 12:48:04 +0000 (08:48 -0400)]
Merge branch 'maint-0.4.6'
David Goulet [Tue, 1 Jun 2021 12:47:56 +0000 (08:47 -0400)]
Merge branch 'tor-gitlab/mr/393' into maint-0.4.6
Nick Mathewson [Fri, 28 May 2021 16:27:48 +0000 (12:27 -0400)]
copy 0.4.6.4-rc changelog forward
Nick Mathewson [Fri, 28 May 2021 16:21:15 +0000 (12:21 -0400)]
Merge branch 'maint-0.4.6'
"ours" to avoid version bump.
Nick Mathewson [Fri, 28 May 2021 16:20:48 +0000 (12:20 -0400)]
Bump to 0.4.6.4-rc-dev
Nick Mathewson [Fri, 28 May 2021 12:05:00 +0000 (08:05 -0400)]
Merge branch 'maint-0.4.6'
"ours" to avoid version bump.
Nick Mathewson [Fri, 28 May 2021 12:04:42 +0000 (08:04 -0400)]
Bump to 0.4.6.4-rc.
Nick Mathewson [Fri, 28 May 2021 12:03:43 +0000 (08:03 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Fri, 28 May 2021 12:03:43 +0000 (08:03 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Fri, 28 May 2021 12:02:08 +0000 (08:02 -0400)]
Stop using the "x$FOO" idiom in git-resquash.sh
The new version of shellcheck says that that this idiom is
unnecessary, and its presence here is making the shellcheck tests
fail.
No changes file needed, since this is not user-facing code.
Roger Dingledine [Thu, 27 May 2021 18:22:22 +0000 (14:22 -0400)]
clarify three comments
based on code-spelunking with nickm
Nick Mathewson [Thu, 27 May 2021 14:49:37 +0000 (10:49 -0400)]
Upgrade and rate-limit compression failure message.
Without this message getting logged at 'WARN', it's hard to
contextualize the messages we get about compression bombs, so this
message should fix #40175.
I'm rate-limiting this, however, since it _could_ get spammy if
somebody on the network starts acting up. (Right now it should be
very quiet; I've asked Sebastian to check it, and he says that he
doesn't hit this message in practice.)
Closes #40175.
David Goulet [Thu, 27 May 2021 14:12:16 +0000 (10:12 -0400)]
Merge branch 'tor-gitlab/mr/359'
David Goulet [Thu, 27 May 2021 14:01:49 +0000 (10:01 -0400)]
Merge branch 'maint-0.4.6'
David Goulet [Thu, 27 May 2021 14:01:44 +0000 (10:01 -0400)]
Merge branch 'tor-gitlab/mr/392' into maint-0.4.6
Nick Mathewson [Wed, 26 May 2021 17:02:56 +0000 (13:02 -0400)]
Prefer mmap()ed consensus files over cached_dir_t entries.
Cached_dir_t is a somewhat "legacy" kind of storage when used for
consensus documents, and it appears that there are cases when
changing our settings causes us to stop updating those entries.
This can cause trouble, as @arma found out in #40375, where he
changed his settings around, and consensus diff application got
messed up: consensus diffs were being _requested_ based on the
latest consensus, but were being (incorrectly) applied to a
consensus that was no longer the latest one.
This patch is a minimal fix for backporting purposes: it has Tor do
the same search when applying consensus diffs as we use to request
them. This should be sufficient for correct behavior.
There's a similar case in GETINFO handling; I've fixed that too.
Fixes #40375; bugfix on 0.3.1.1-alpha.
Alexander Færøy [Tue, 25 May 2021 14:17:12 +0000 (14:17 +0000)]
Merge remote-tracking branch 'tor-gitlab/mr/388' into main
Alexander Færøy [Tue, 25 May 2021 13:58:55 +0000 (13:58 +0000)]
Merge remote-tracking branch 'tor-gitlab/mr/380' into main
Alexander Færøy [Tue, 25 May 2021 13:25:23 +0000 (13:25 +0000)]
Merge branch 'maint-0.3.5' into maint-0.4.4
Alexander Færøy [Tue, 25 May 2021 13:25:23 +0000 (13:25 +0000)]
Merge branch 'maint-0.4.4' into maint-0.4.5
Alexander Færøy [Tue, 25 May 2021 13:25:23 +0000 (13:25 +0000)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Tue, 25 May 2021 13:25:23 +0000 (13:25 +0000)]
Merge branch 'maint-0.4.6' into main
Nick Mathewson [Tue, 25 May 2021 11:38:31 +0000 (07:38 -0400)]
Remove the function `tor_tls_assert_renegotiation_unblocked`.
It was used nowhere outside its own unit tests, and it was causing
compilation issues with recent OpenSSL 3.0.0 alphas.
Closes ticket 40399.
Alexander Færøy [Tue, 25 May 2021 11:46:34 +0000 (11:46 +0000)]
Update scripts to use main instead of master.
When talking about the "master" Tor checkout, we now refer to it as "the
primary Tor repository". The "master" branch is instead called "main".
See: tpo/core/team#2.
Alexander Færøy [Tue, 25 May 2021 11:33:58 +0000 (11:33 +0000)]
Rewrite documentation on primary branch usage for Tor.git.
This patch is part of a series of patches where we try to change our
primary branch name of tor.git from master to main.
See: tpo/core/team#2
Neel Chauhan [Thu, 20 May 2021 18:06:50 +0000 (11:06 -0700)]
Fix the fencepost issue when we check stability_last_downrated
Nick Mathewson [Mon, 17 May 2021 13:09:49 +0000 (09:09 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Mon, 17 May 2021 13:09:49 +0000 (09:09 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Mon, 17 May 2021 13:09:42 +0000 (09:09 -0400)]
Merge remote-tracking branch 'tor-gitlab/mr/387' into maint-0.4.5
Nick Mathewson [Mon, 17 May 2021 13:08:49 +0000 (09:08 -0400)]
Merge remote-tracking branch 'tor-gitlab/mr/387'
Nick Mathewson [Mon, 17 May 2021 13:04:22 +0000 (09:04 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Mon, 17 May 2021 13:04:22 +0000 (09:04 -0400)]
Merge branch 'maint-0.4.6'
Daniel Pinto [Wed, 7 Apr 2021 22:46:59 +0000 (23:46 +0100)]
Make SAVECONF keep only one backup and add sandbox rules for it. #40317
When seccomp sandbox is active, SAVECONF failed because it was not
able to save the backup files for torrc. This commit simplifies
the implementation of SAVECONF and sandbox by making it keep only
one backup of the configuration file.
David Goulet [Wed, 12 May 2021 19:13:50 +0000 (15:13 -0400)]
conn: MetricsPort listener is a listener port
The connection type for the listener part was missing from the "is
connection a listener" function.
This lead to our periodic event that retries our listeners to keep
trying to bind() again on an already opened MetricsPort.
Closes #40370
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 12 May 2021 18:44:04 +0000 (14:44 -0400)]
relay: We might be noting down an unknown DNS error type
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 12 May 2021 17:31:40 +0000 (13:31 -0400)]
metrics: One relay metrics was not using metrics_format_label()
This resulted in the labels not being surrounded by double quotes and
thus Prometheus not liking it.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 12 May 2021 17:24:22 +0000 (13:24 -0400)]
metrics: Need to surround label value with double quotes
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 6 May 2021 15:17:26 +0000 (11:17 -0400)]
relay: Add TCP port exhaustion metrics
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 6 May 2021 14:58:37 +0000 (10:58 -0400)]
relay: Add DNS metrics
Emit on the MetricsPort all the DNS statistics we have that is the total
number of queries seen and errors per record type.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 6 May 2021 13:46:02 +0000 (09:46 -0400)]
dns: Gather DNS request statistics
We now keep track of all errors and total number of request seen. This
is so we can expose those values to the MetricsPort to help Exit
operators monitor the DNS requests and failures.
Related to #40367.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 5 May 2021 18:09:07 +0000 (14:09 -0400)]
relay: Add the global connection limit metrics
This emits two events (read and write) of the total number that the
global connection limit was reached.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 5 May 2021 17:57:19 +0000 (13:57 -0400)]
relay: Add number of open and max sockets metrics
With this commit, a relay will emit metrics that give the total number
of sockets and total number of opened sockets.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 5 May 2021 17:33:33 +0000 (13:33 -0400)]
relay: Add the onionskins processing metrics
With this commit, a relay now emits metrics event on the MetricsPort
related to how many onionskins were handled (processed or dropped) for
each handshake type.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 15 Apr 2021 18:23:47 +0000 (14:23 -0400)]
relay: Add the OOM invocation metrics
With this commit, a relay now emits metrics event on the MetricsPort
related to the OOM invocation for:
- DNS cache
- GeoIP database
- Cell queues
- HSDir caches
Everytime the OOM is invoked, the number of bytes is added to the
metrics counter for that specific type of invocation.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 15 Apr 2021 16:46:23 +0000 (12:46 -0400)]
relay: Code and objects to initialize metrics store
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 15 Apr 2021 12:58:20 +0000 (08:58 -0400)]
relay: Groundwork for relay metrics support
The basic functions for the relay subsystem to expose metrics onto the
MetricsPort.
Part of #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Wed, 5 May 2021 16:57:44 +0000 (12:57 -0400)]
metrics: Add a reset store helper function
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 15 Apr 2021 13:05:55 +0000 (09:05 -0400)]
metrics: Move helper function to lib/metrics
It is a common function that a lot of subsystem can use which is to
format a label so move it out of the HS subsystem into the more generic
metrics library.
Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet [Thu, 6 May 2021 14:54:50 +0000 (10:54 -0400)]
metrics: Print once the Promtheus comments
An entry can have multiple labels but only print once the comments at
the first one. This follows the Promtheus best practices.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 11 May 2021 14:17:28 +0000 (10:17 -0400)]
Missing changes file for #40330
Nick Mathewson [Tue, 11 May 2021 14:08:52 +0000 (10:08 -0400)]
Make client heartbeat stats tied to the heartbeat period.
Patch from cypherpunks. Closes #40330.
Neel Chauhan [Tue, 11 May 2021 02:03:56 +0000 (19:03 -0700)]
Fix typo in comment for handle_control_redirectstream()
Nick Mathewson [Mon, 10 May 2021 18:30:09 +0000 (14:30 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Mon, 10 May 2021 18:30:00 +0000 (14:30 -0400)]
Merge branch 'ticket40374_046' into maint-0.4.6
Nick Mathewson [Mon, 10 May 2021 14:55:00 +0000 (10:55 -0400)]
Merge branch 'maint-0.4.6'
"ours" to avoid version bump.
Nick Mathewson [Mon, 10 May 2021 14:53:39 +0000 (10:53 -0400)]
Bump to 0.4.6.3-rc-dev
Nick Mathewson [Mon, 10 May 2021 14:53:10 +0000 (10:53 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
"ours" to avoid version bump.
Nick Mathewson [Mon, 10 May 2021 14:53:00 +0000 (10:53 -0400)]
Update to 0.4.5.8-dev
Nick Mathewson [Mon, 10 May 2021 14:12:45 +0000 (10:12 -0400)]
copy changelog and releasenotes forward
Alexander Færøy [Mon, 10 May 2021 13:07:24 +0000 (13:07 +0000)]
Remove unused function: dns_randfn_() in dns.c.
This patch unbreaks the current build after tor!369 landed.
See: https://bugs.torproject.org/tpo/core/tor/40371
Alexander Færøy [Mon, 10 May 2021 10:58:29 +0000 (10:58 +0000)]
Merge remote-tracking branch 'tor-gitlab/mr/369'
Nick Mathewson [Fri, 7 May 2021 17:08:25 +0000 (13:08 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Fri, 7 May 2021 17:08:25 +0000 (13:08 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Fri, 7 May 2021 17:08:14 +0000 (13:08 -0400)]
Merge branch 'ticket40382_045' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 16:09:41 +0000 (12:09 -0400)]
Add a sandbox workaround for Glibc 2.33
This change permits the newfstatat() system call, and fixes issues
40382 (and 40381).
This isn't a free change. From the commit:
// Libc 2.33 uses this syscall to implement both fstat() and stat().
//
// The trouble is that to implement fstat(fd, &st), it calls:
// newfstatat(fs, "", &st, AT_EMPTY_PATH)
// We can't detect this usage in particular, because "" is a pointer
// we don't control. And we can't just look for AT_EMPTY_PATH, since
// AT_EMPTY_PATH only has effect when the path string is empty.
//
// So our only solution seems to be allowing all fstatat calls, which
// means that an attacker can stat() anything on the filesystem. That's
// not a great solution, but I can't find a better one.
Nick Mathewson [Fri, 7 May 2021 14:41:34 +0000 (10:41 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Fri, 7 May 2021 14:41:34 +0000 (10:41 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Fri, 7 May 2021 14:41:34 +0000 (10:41 -0400)]
Merge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 14:41:33 +0000 (10:41 -0400)]
Merge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 14:39:20 +0000 (10:39 -0400)]
Reindent a few lines to fix a GCC warning.
As of GCC 11.1.1, the compiler warns us about code like this:
if (a)
b;
c;
and that's a good thing: we wouldn't want to "goto fail". But we
had an instance if this in circuituse.c, which was making our
compilation sad.
Fixes bug 40380; bugfix on 0.3.0.1-alpha.
Nick Mathewson [Fri, 7 May 2021 13:53:58 +0000 (09:53 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Fri, 7 May 2021 13:53:58 +0000 (09:53 -0400)]
Merge branch 'maint-0.4.6'
Nick Mathewson [Fri, 7 May 2021 13:53:58 +0000 (09:53 -0400)]
Merge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 13:53:57 +0000 (09:53 -0400)]
Merge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 13:53:46 +0000 (09:53 -0400)]
Update geoip files to match ipfire location db, 2021/05/07.
Nick Mathewson [Fri, 7 May 2021 13:42:39 +0000 (09:42 -0400)]
Merge branch 'maint-0.4.6'
"ours" merge to avoid version bump.
Nick Mathewson [Fri, 7 May 2021 13:42:18 +0000 (09:42 -0400)]
Bump to 0.4.6.3-rc
Nick Mathewson [Fri, 7 May 2021 13:39:45 +0000 (09:39 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
"ours" to avoid version bump.
Nick Mathewson [Fri, 7 May 2021 13:39:33 +0000 (09:39 -0400)]
Bump to 0.4.5.8.
David Goulet [Fri, 7 May 2021 13:05:21 +0000 (09:05 -0400)]
Merge branch 'maint-0.4.6'
David Goulet [Fri, 7 May 2021 13:05:16 +0000 (09:05 -0400)]
Merge branch 'tor-gitlab/mr/375' into maint-0.4.6
David Goulet [Fri, 7 May 2021 13:04:45 +0000 (09:04 -0400)]
Merge branch 'maint-0.4.6'
David Goulet [Fri, 7 May 2021 13:03:39 +0000 (09:03 -0400)]
Merge branch 'maint-0.4.5' into maint-0.4.6
George Kadianakis [Wed, 5 May 2021 07:50:29 +0000 (10:50 +0300)]
Log warning when connecting to soon-to-be-deprecated v2 onions.
George Kadianakis [Wed, 5 May 2021 08:10:28 +0000 (11:10 +0300)]
Add warning when trying to connect to deprecated v2 onions.
George Kadianakis [Wed, 5 May 2021 08:05:09 +0000 (11:05 +0300)]
Prepare for #40373: Re-introduce parsing for v2 onion addresses.
Welcome back ONION_V2_HOSTNAME! :)