tailscale/control
Brad Fitzpatrick d64aaffc06 control/controlclient: fix map context race
Capture Auto.mapCtx while holding Auto.mu before using it for
incremental map update forwarding. Pause and restart paths can replace
the context under the same mutex, so using it after unlocking races
with those writers.

Add a race regression test for the UserProfiles path that repeatedly
cancels the map context while incremental profile updates are
forwarded.

Fixes #19953

Change-Id: Icc55c4a0dffbc16d6507a2b446b3909d4d0a0278
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-06-01 13:44:19 -07:00
..
controlbase control/controlbase: deflake, speed up TestConnMemoryOverhead 2026-03-06 06:19:11 -08:00
controlclient control/controlclient: fix map context race 2026-06-01 13:44:19 -07:00
controlhttp net/netutil: add NewDefaultTransport to avoid http.DefaultTransport panics 2026-06-01 12:28:36 -07:00
controlknobs net/batching: implement NodeAttrNeverGSOEqualTail 2026-05-29 11:36:35 -07:00
ts2021 tsd, all: add Sys.ExtraRootCAs, plumb through TLS dial paths 2026-04-07 18:10:54 -07:00
tsp control/tsp, tstest/integration/testcontrol: deflake TestMapAgainstTestControl 2026-04-29 16:11:00 -07:00