wgengine: fix deadlock between engine and magicsock

This commit is contained in:
Brad Fitzpatrick
2020-08-05 16:36:53 -07:00
parent 5db529a655
commit 2bd9ad4b40
2 changed files with 8 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ type Conn struct {
packetListener nettype.PacketListener
// ============================================================
mu sync.Mutex // guards all following fields
mu sync.Mutex // guards all following fields; see userspaceEngine lock ordering rules
muCond *sync.Cond
// canCreateEPUnlocked tracks at one place whether mu is