What changed, and why it matters
This commit only adds a release note describing a previously fixed bug in LND's gossip subsystem. The actual code fix is in a separate pull request. The bug could cause the program to hang during shutdown if certain gossip messages triggered multiple error messages, but this commit itself changes only documentation and a contributor list.
Review the actual code fix in PR #10540 to assess whether the deadlock is reachable by an attacker and whether any additional hardening (e.g., buffered channels, select with default, or send timeouts) is warranted. This documentation commit does not require deployment action on its own.
Security signals we found
Release note references a fixed shutdown deadlock in the gossiper subsystem
Deadlock caused by multiple sends on a channel expected to carry a single error message
No code or patch content is included in this commit
Evidence from the diff
The diff adds a release-note entry for PR #10540, which fixed a shutdown deadlock in the LND gossiper. The described root cause is an unbuffered or single-message channel receiving multiple error sends, causing a goroutine to block indefinitely on the second send and deadlock shutdown. The commit also adds ‘Matt Morehouse’ to the contributor list. No code changes are present in this commit.
Changed components
docs/release-notes/release-notes-0.21.0.mdgossiper subsystem (referenced only, not modified)Inspect captured patch +7 / −0
diff --git a/docs/release-notes/release-notes-0.21.0.md b/docs/release-notes/release-notes-0.21.0.md
index 8921139..a98a4eb 100644
--- a/docs/release-notes/release-notes-0.21.0.md
+++ b/docs/release-notes/release-notes-0.21.0.md
@@ -63,6 +63,12 @@
millisecond if set to zero or a negative value, preventing `time.NewTicker`
from panicking.
+- [Fixed a shutdown
+ deadlock](https://github.com/lightningnetwork/lnd/pull/10540) in the gossiper.
+ Certain gossip messages could cause multiple error messages to be sent on a
+ channel that was only expected to be used for a single message. The erring
+ goroutine would block on the second send, leading to a deadlock at shutdown.
+
# New Features
- Basic Support for [onion messaging forwarding](https://github.com/lightningnetwork/lnd/pull/9868)
@@ -168,6 +174,7 @@
* Elle Mouton
* Erick Cestari
* hieblmi
+* Matt Morehouse
* Mohamed Awnallah
* Nishant Bansal
* Pins
Why this scored 14/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.