mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 10:41:19 -08:00
packetFilterAllow holds c.mu while touching nothing it protects. It only calls getIPSets, a func field assigned once in newConn25 that reads the config out of an atomic pointer. Its siblings transitIPInPool and destinationInPools already call it unlocked. Drop the acquisition, which besides being dead was a lock-ordering hazard if getIPSets ever grows a lock of its own. Updates https://github.com/tailscale/corp/issues/38924 Change-Id: I2942a9b0a6a57378473393c62611c557f07e71b3 Signed-off-by: Mazdak Nasab <[email protected]>