Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipn/ipnlocal: hold the mutex when in onTailnetDefaultAutoUpdate #11786

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

awly
Copy link
Contributor

@awly awly commented Apr 18, 2024

Turns out, profileManager is not safe for concurrent use and I missed all the locking infrastructure in LocalBackend, oops.

I was not able to reproduce the race even with go test -race -count 100, but this seems like an obvious fix.

Fixes #11773

@awly awly requested review from bradfitz and maisem April 18, 2024 02:01
Turns out, profileManager is not safe for concurrent use and I missed
all the locking infrastructure in LocalBackend, oops.

I was not able to reproduce the race even with `go test -count 100`, but
this seems like an obvious fix.

Fixes #11773

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
@awly awly force-pushed the awly/tailnet-auto-update-prefs-lock branch from a439b4c to 99eec05 Compare April 18, 2024 02:01
@awly awly merged commit 22bd506 into main Apr 18, 2024
48 checks passed
@awly awly deleted the awly/tailnet-auto-update-prefs-lock branch April 18, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2etest: data race
2 participants