]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
4 years agoMissing changes file for #40409
Nick Mathewson [Wed, 30 Jun 2021 12:14:57 +0000 (08:14 -0400)] 
Missing changes file for #40409

4 years agoSuppress strict-prototypes warning on NSS pk11pub.h header
Nick Mathewson [Mon, 28 Jun 2021 13:08:31 +0000 (09:08 -0400)] 
Suppress strict-prototypes warning on NSS pk11pub.h header

We already did this in a couple of places, but there are more that
we didn't get.  This is necessary for systems with versions of
NSS that don't do their prototypes properly.

Fixes #40409; bugfix on 0.3.5.1-alpha.

4 years agoEnable deterministic RNG for address set tests.
Alexander Færøy [Fri, 25 Jun 2021 16:29:53 +0000 (16:29 +0000)] 
Enable deterministic RNG for address set tests.

This patch enables the deterministic RNG for address set tests,
including the tests which uses address set indirectly via the nodelist
API.

This should prevent random test failures in the highly unlikely case of
a false positive which was seen in tor#40419.

See: tpo/core/tor#40419.

4 years agoBump to 0.4.5.9-dev
Nick Mathewson [Mon, 14 Jun 2021 15:47:41 +0000 (11:47 -0400)] 
Bump to 0.4.5.9-dev

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 14 Jun 2021 15:47:29 +0000 (11:47 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4 maint-0.4.4
Nick Mathewson [Mon, 14 Jun 2021 15:46:20 +0000 (11:46 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.15-dev
Nick Mathewson [Mon, 14 Jun 2021 15:45:30 +0000 (11:45 -0400)] 
Bump to 0.3.5.15-dev

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 16:30:29 +0000 (12:30 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 16:30:11 +0000 (12:30 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoFix TROVE-2021-006: Out-of-bounds read on v3 desc parsing
George Kadianakis [Tue, 18 May 2021 14:06:57 +0000 (17:06 +0300)] 
Fix TROVE-2021-006: Out-of-bounds read on v3 desc parsing

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 13:55:55 +0000 (09:55 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoResolve remaining merge conflicts in relay.c
Nick Mathewson [Thu, 10 Jun 2021 13:55:35 +0000 (09:55 -0400)] 
Resolve remaining merge conflicts in relay.c

(My bad!)

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 12:53:07 +0000 (08:53 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:52:39 +0000 (08:52 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

Conflicts resolved:
src/core/or/relay.c

4 years agoTROVE-2021-003: Check layer_hint before half-closed end and resolve cells
David Goulet [Thu, 3 Jun 2021 13:33:21 +0000 (09:33 -0400)] 
TROVE-2021-003: Check layer_hint before half-closed end and resolve cells

This issue was reported by Jann Horn part of Google's Project Zero.

Jann's one-sentence summary: entry/middle relays can spoof RELAY_END cells on
half-closed streams, which can lead to stream confusion between OP and
exit.

Fixes #40389

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 12:42:15 +0000 (08:42 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:42:15 +0000 (08:42 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40391_035' into maint-0.3.5
Nick Mathewson [Thu, 10 Jun 2021 12:41:59 +0000 (08:41 -0400)] 
Merge branch 'bug40391_035' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 12:37:34 +0000 (08:37 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:37:26 +0000 (08:37 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40390_035_squashed' into maint-0.3.5
Nick Mathewson [Thu, 10 Jun 2021 12:34:25 +0000 (08:34 -0400)] 
Merge branch 'bug40390_035_squashed' into maint-0.3.5

4 years agoAssert on _all_ failures from RAND_bytes().
Nick Mathewson [Mon, 17 May 2021 12:50:01 +0000 (08:50 -0400)] 
Assert on _all_ failures from RAND_bytes().

Previously, we would detect errors from a missing RNG
implementation, but not failures from the RNG code itself.

Fortunately, it appears those failures do not happen in practice
when Tor is using OpenSSL's default RNG implementation.  Fixes bug
40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Thu, 10 Jun 2021 12:21:48 +0000 (08:21 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:21:47 +0000 (08:21 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/06/10.
Nick Mathewson [Thu, 10 Jun 2021 12:20:13 +0000 (08:20 -0400)] 
Update geoip files to match ipfire location db, 2021/06/10.

4 years agoBump to 0.4.5.9.
Nick Mathewson [Mon, 7 Jun 2021 17:31:10 +0000 (13:31 -0400)] 
Bump to 0.4.5.9.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
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.

4 years agoBump to 0.4.4.9
Nick Mathewson [Mon, 7 Jun 2021 17:30:18 +0000 (13:30 -0400)] 
Bump to 0.4.4.9

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 7 Jun 2021 17:29:49 +0000 (13:29 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoBump to 0.3.5.15.
Nick Mathewson [Mon, 7 Jun 2021 17:29:35 +0000 (13:29 -0400)] 
Bump to 0.3.5.15.

4 years agoStop using the "x$FOO" idiom in git-resquash.sh
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.

4 years agoMerge 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.3.5' into maint-0.4.4

4 years agoMerge 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.4' into maint-0.4.5

4 years agoRemove the function `tor_tls_assert_renegotiation_unblocked`.
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.

4 years agoUse a more secure hash function for the circuitmux hashtable.
Nick Mathewson [Tue, 18 May 2021 12:40:09 +0000 (08:40 -0400)] 
Use a more secure hash function for the circuitmux hashtable.

Fixes bug 40931; bugfix on 0.2.4.4-alpha. Also tracked as
TROVE-2021-005.

This issue was reported by Jann Horn from Google's Project Zero.

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/387' into maint-0.4.5
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

4 years agoMake SAVECONF keep only one backup and add sandbox rules for it. #40317
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.

4 years agoconn: MetricsPort listener is a listener port
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>
4 years agoUpdate to 0.4.5.8-dev
Nick Mathewson [Mon, 10 May 2021 14:53:00 +0000 (10:53 -0400)] 
Update to 0.4.5.8-dev

4 years agoMerge branch 'ticket40382_045' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 17:08:14 +0000 (13:08 -0400)] 
Merge branch 'ticket40382_045' into maint-0.4.5

4 years agoAdd a sandbox workaround for Glibc 2.33
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.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 14:41:34 +0000 (10:41 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 14:41:33 +0000 (10:41 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoReindent a few lines to fix a GCC warning.
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.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 7 May 2021 13:53:58 +0000 (09:53 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 13:53:57 +0000 (09:53 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/05/07.
Nick Mathewson [Fri, 7 May 2021 13:53:46 +0000 (09:53 -0400)] 
Update geoip files to match ipfire location db, 2021/05/07.

4 years agoBump to 0.4.5.8.
Nick Mathewson [Fri, 7 May 2021 13:39:33 +0000 (09:39 -0400)] 
Bump to 0.4.5.8.

4 years agoLog warning when connecting to soon-to-be-deprecated v2 onions.
George Kadianakis [Wed, 5 May 2021 07:50:29 +0000 (10:50 +0300)] 
Log warning when connecting to soon-to-be-deprecated v2 onions.

4 years agohs: Fix memory leak in client cache
David Goulet [Tue, 20 Apr 2021 17:13:54 +0000 (13:13 -0400)] 
hs: Fix memory leak in client cache

Fixes #40356

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Wed, 21 Apr 2021 14:34:28 +0000 (10:34 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Wed, 21 Apr 2021 14:34:14 +0000 (10:34 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/363' into maint-0.3.5
George Kadianakis [Wed, 21 Apr 2021 13:48:22 +0000 (16:48 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/363' into maint-0.3.5

4 years agoTweak changes/ticket40369 to be a bug.
Nick Mathewson [Mon, 19 Apr 2021 15:29:46 +0000 (11:29 -0400)] 
Tweak changes/ticket40369 to be a bug.

4 years agoscripts/build/combine_libs: use $AR rather than ar
Emery Hemingway [Fri, 16 Apr 2021 13:17:43 +0000 (15:17 +0200)] 
scripts/build/combine_libs: use $AR rather than ar

Using a custom ar at $AR may be necessary for cross-compilation.

Closes #40369

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge remote-tracking branch 'tor-gitlab/mr/355' into maint-0.4.5
George Kadianakis [Mon, 19 Apr 2021 14:32:56 +0000 (17:32 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/355' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
David Goulet [Wed, 14 Apr 2021 12:39:16 +0000 (08:39 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
David Goulet [Wed, 14 Apr 2021 12:39:16 +0000 (08:39 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agofallbackdir: Remove two unspec lines
David Goulet [Wed, 14 Apr 2021 12:39:04 +0000 (08:39 -0400)] 
fallbackdir: Remove two unspec lines

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoFix test naming, and fix tests on windows.
Nick Mathewson [Tue, 13 Apr 2021 21:38:31 +0000 (17:38 -0400)] 
Fix test naming, and fix tests on windows.

This is a bugfix against my fix for #40133, which has not yet
appeared in 0.3.5.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Tue, 13 Apr 2021 20:59:16 +0000 (16:59 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 13 Apr 2021 20:59:15 +0000 (16:59 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agofallbackdir: Renegerate list with 200 relays
David Goulet [Tue, 13 Apr 2021 19:15:58 +0000 (15:15 -0400)] 
fallbackdir: Renegerate list with 200 relays

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Tue, 13 Apr 2021 14:36:01 +0000 (10:36 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 13 Apr 2021 14:36:00 +0000 (10:36 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/04/13.
Nick Mathewson [Tue, 13 Apr 2021 14:35:50 +0000 (10:35 -0400)] 
Update geoip files to match ipfire location db, 2021/04/13.

4 years agoguard: Don't check bridge transport name when selecting eligible guards
David Goulet [Thu, 8 Apr 2021 18:08:28 +0000 (14:08 -0400)] 
guard: Don't check bridge transport name when selecting eligible guards

This is related to ticket #40360 which found this problem when a Bridge entry
with a transport name (let say obfs4) is set without a fingerprint:

  Bridge obfs4 <IP>:<PORT> cert=<...> iat-mode=0

(Notice, no fingerprint between PORT and "cert=")

Problem: commit 09c6d0324626ffa349c7eed66d9ede92ecd71583 added a check in
get_sampled_guard_for_bridge() that would return NULL if the selected bridge
did not have a valid transport name (that is the Bridge transport name that
corresponds to a ClientTransportPlugin).

Unfortuantely, this function is also used when selecting our eligible guards
which is done *before* the transport list is populated and so the added check
for the bridge<->transport name is querying an empty list of transports
resulting in always returning NULL.

For completion, the logic is: Pick eligible guards (use bridge(s) if need be)
then for those, initiate a connection to the pluggable transport proxy and
then populate the transport list once we've connected.

Back to get_sampled_guard_for_bridge(). As said earlier, it is used when
selecting our eligible guards in a way that prevents us from selecting
duplicates. In other words, if that function returns non-NULL, the selection
continues considering the bridge was sampled before. But if it returns NULL,
the relay is added to the eligible list.

This bug made it that our eligible guard list was populated with the *same*
bridge 3 times like so (remember no fingerprint):

  [info] entry_guards_update_primary(): Primary entry guards have changed. New primary guard list is:
  [info] entry_guards_update_primary():   1/3: [bridge] ($0000000000000000000000000000000000000000)
  [info] entry_guards_update_primary():   2/3: [bridge] ($0000000000000000000000000000000000000000)
  [info] entry_guards_update_primary():   3/3: [bridge] ($0000000000000000000000000000000000000000)

When tor starts, it will find the bridge fingerprint by connecting to it and
will then update the primary guard list by calling
entry_guard_learned_bridge_identity() which then goes and update only 1 single
entry resulting in this list:

  [debug] sampled_guards_update_consensus_presence(): Sampled guard [bridge] ($<FINGERPRINT>) is still listed.
  [debug] sampled_guards_update_consensus_presence(): Sampled guard [bridge] ($0000000000000000000000000000000000000000) is still listed.
  [debug] sampled_guards_update_consensus_presence(): Sampled guard [bridge] ($0000000000000000000000000000000000000000) is still listed.

And here lies the problem, now tor is stuck attempting to wait for a valid
descriptor for at least 2 guards where the second one is a bunch of zeroes and
thus tor will never fully bootstraps:

  [info] I learned some more directory information, but not enough to build a
  circuit: We're missing descriptors for 1/2 of our primary entry guards
  (total microdescriptors: 6671/6703). That's ok. We will try to fetch missing
  descriptors soon.

Now, why passing the fingerprint then works? This is because the list of
guards contains 3 times the same bridge but they all have a fingerprint and so
the descriptor can be found and tor can bootstraps.

The solution here is to entirely remove the transport name check in
get_sampled_guard_for_bridge() since the transport_list is empty at that
point. That way, the eligible guard list only gets 1 entry, the bridge, and
can then go on to bootstrap properly.

It is OK to do so since when launching a bridge descriptor fetch, we validate
that the bridge transport name is OK and thus avoid connecting to a bridge
without a ClientTransportPlugin. If we wanted to keep the check in place, we
would need to populate the transport_list much earlier and this would require
a much bigger refactoring.

Fixes #40360

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoTry making our configure.ac script build with AC 2.70.
Nick Mathewson [Wed, 7 Apr 2021 14:18:44 +0000 (10:18 -0400)] 
Try making our configure.ac script build with AC 2.70.

In versions <=2.69, according to the autoconf docs, AC_PROG_CC_C99
is needed with some compilers, if they require extra arguments to
build C99 programs.  In versions >=2.70, AC_PROG_CC checks for these
compilers automatically, and so the AC_PROG_CC_C99 macro is
obsolete.

So, what can you do if you want your script to work right with both
autoconf versions?  IIUC, neither including AC_PROG_CC_C99 macro nor
leaving it out will give you the right behavior with both versions.
It looks like you need to look at the autoconf version explicitly.

(Now, the autoconf manual implies that it's "against autoconf
philosophy" to look at the autoconf version rather than trying the
behavior to see if it works, but they don't actually tell you how to
detect recoverably at autoconf-time whether a macro is obsolete or
not, and I can't find a way to do that.)

So, is it safe to use m4_version_prereq, like I do here?  It isn't
listed in the autoconf 2.63 manual (which is the oldest version we
support).  But a mailing list message [1] (which added the
documentation back in 2008) implies that m4_version_prereq has been
there since "at least back to autoconf 2.59".

https://lists.gnu.org/archive/html/autoconf-patches/2008-12/msg00025.html

So I think this will work.

I am basing this patch against Tor 0.3.5 since, if autoconf 2.70
becomes widespread before 0.3.5 is unsupported, we might need this
patch to continue 0.3.5 development.  But I don't think we should
backport farther than 0.4.5 until/unless that actually happens.

This is part of a fix for #40355.

4 years agoFix glob processing on BSD systems. #40318
Daniel Pinto [Thu, 25 Mar 2021 01:23:04 +0000 (01:23 +0000)] 
Fix glob processing on BSD systems. #40318

On Linux systems, glob automatically ignores the errors ENOENT and
ENOTDIR because they are expected during glob expansion. But BSD
systems do not ignore these, resulting in glob failing when globs
expand to invalid paths. This is fixed by adding a custom error
handler that ignores only these two errors and removing the
GLOB_ERR flag as it makes glob fail even if the error handler
ignores the error and is unnecessary as the error handler will
make glob fail on all other errors anyway.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Wed, 24 Mar 2021 16:25:05 +0000 (12:25 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agochannel: Fix use after free in channel_do_open_actions()
David Goulet [Tue, 23 Mar 2021 13:19:41 +0000 (09:19 -0400)] 
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 894ff2dc8422cb86312c512698acd76476224f87 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>
4 years agoMerge remote-tracking branch 'tor-gitlab/mr/333' into maint-0.4.5
George Kadianakis [Wed, 17 Mar 2021 11:43:38 +0000 (13:43 +0200)] 
Merge remote-tracking branch 'tor-gitlab/mr/333' into maint-0.4.5

4 years agoBump version to 0.4.5.7-dev
Nick Mathewson [Tue, 16 Mar 2021 13:18:27 +0000 (09:18 -0400)] 
Bump version to 0.4.5.7-dev

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Tue, 16 Mar 2021 13:18:06 +0000 (09:18 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

"ours" to avoid version bump.

4 years agoBump version to 0.4.4.8-dev
Nick Mathewson [Tue, 16 Mar 2021 13:17:56 +0000 (09:17 -0400)] 
Bump version to 0.4.4.8-dev

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 16 Mar 2021 13:17:40 +0000 (09:17 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.14-dev
Nick Mathewson [Tue, 16 Mar 2021 13:17:31 +0000 (09:17 -0400)] 
Bump to 0.3.5.14-dev

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 15 Mar 2021 13:41:38 +0000 (09:41 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoRemove check-best-practices from check-local in 0.4.4
Nick Mathewson [Mon, 15 Mar 2021 13:41:19 +0000 (09:41 -0400)] 
Remove check-best-practices from check-local in 0.4.4

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 15 Mar 2021 13:01:59 +0000 (09:01 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 13:01:59 +0000 (09:01 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40316_035_v2' into maint-0.3.5
Nick Mathewson [Mon, 15 Mar 2021 12:58:54 +0000 (08:58 -0400)] 
Merge branch 'bug40316_035_v2' into maint-0.3.5

4 years agoFix detection of point to insert signatures on a pending consensus.
Nick Mathewson [Wed, 3 Mar 2021 20:14:31 +0000 (15:14 -0500)] 
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.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 15 Mar 2021 12:54:00 +0000 (08:54 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 12:54:00 +0000 (08:54 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoClarify new intended strategy with TROVE-2021-001
Nick Mathewson [Mon, 15 Mar 2021 12:53:36 +0000 (08:53 -0400)] 
Clarify new intended strategy with TROVE-2021-001

We're going to disable this feature in all versions for now.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 15 Mar 2021 12:52:29 +0000 (08:52 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 12:52:28 +0000 (08:52 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40286_disable_min_035' into maint-0.3.5
Nick Mathewson [Mon, 15 Mar 2021 12:41:03 +0000 (08:41 -0400)] 
Merge branch 'bug40286_disable_min_035' into maint-0.3.5

4 years agoBump to 0.4.5.7
Nick Mathewson [Mon, 15 Mar 2021 11:41:54 +0000 (07:41 -0400)] 
Bump to 0.4.5.7

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Mon, 15 Mar 2021 11:40:56 +0000 (07:40 -0400)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

"ours" to avoid version bump.

4 years agoBump to 0.4.4.8
Nick Mathewson [Mon, 15 Mar 2021 11:40:48 +0000 (07:40 -0400)] 
Bump to 0.4.4.8

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 11:40:06 +0000 (07:40 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.14
Nick Mathewson [Mon, 15 Mar 2021 11:39:45 +0000 (07:39 -0400)] 
Bump to 0.3.5.14

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 12 Mar 2021 16:36:34 +0000 (11:36 -0500)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 12 Mar 2021 16:36:34 +0000 (11:36 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoRemove maxmind license; add ipfire location database license (cc by-sa 4.0)
Nick Mathewson [Fri, 12 Mar 2021 16:36:28 +0000 (11:36 -0500)] 
Remove maxmind license; add ipfire location database license (cc by-sa 4.0)

4 years agoUse the right ticket number.
Nick Mathewson [Fri, 12 Mar 2021 16:31:36 +0000 (11:31 -0500)] 
Use the right ticket number.

4 years agoMerge branch 'maint-0.4.4' into maint-0.4.5
Nick Mathewson [Fri, 12 Mar 2021 16:30:22 +0000 (11:30 -0500)] 
Merge branch 'maint-0.4.4' into maint-0.4.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 12 Mar 2021 16:30:21 +0000 (11:30 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.4