aboutsummaryrefslogtreecommitdiff
path: root/changes/ticket30871
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-06-18 13:32:45 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-06-19 07:42:30 -0400
commit16a0b7ed6779bf72a8a471c558a5e09084921d8b (patch)
tree16c7bf8cf75a30809d7a7319bb8cccc8f972af6c /changes/ticket30871
parent125a6300da5412ce5fb2c0506f699e653a7ea6dc (diff)
downloadtor-16a0b7ed6779bf72a8a471c558a5e09084921d8b.tar.gz
tor-16a0b7ed6779bf72a8a471c558a5e09084921d8b.zip
guard: Ignore marked for close circuit when changing state to open
When we consider all circuits in "waiting for guard" state to be promoted to an "open" state, we were considering all circuits, even the one marked for close. This ultiamtely triggers a "circuit_has_opened()" called on the circuit that is marked for close which then leads to possible undesirable behaviors within a subsystem. For instance, the HS subsystem would be unable to find the authentication key of the introduction point circuit leading to a BUG() warning and a duplicate mark for close on the circuit. This commit also adds a unit test to make sure we never select marked for close circuits when upgrading its guard state from waiting for guard to open. Fixes #30871 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes/ticket30871')
-rw-r--r--changes/ticket308716
1 files changed, 6 insertions, 0 deletions
diff --git a/changes/ticket30871 b/changes/ticket30871
new file mode 100644
index 0000000000..81c076bb02
--- /dev/null
+++ b/changes/ticket30871
@@ -0,0 +1,6 @@
+ o Major bugfixes (circuit build, guard):
+ - When considering upgrading circuits from "waiting for guard" to "open",
+ always ignore the ones that are mark for close. Else, we can end up in
+ the situation where a subsystem is notified of that circuit opening but
+ still marked for close leading to undesirable behavior. Fixes bug 30871;
+ bugfix on 0.3.0.1-alpha.