Skip to content

fix(wgengine): Guard endpoint dispatcher via wrapper #7

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

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

mafredri
Copy link
Member

This is an alternative fix for a42a6f2.

Mimics the fix in upstream gvisor: google/gvisor@13d7bf6

The motivation is that even though we use a mutex in netstack, we aren't protecting Attach which is invoked elsewhere. There are also a few other uses of linkEP in netstack that weren't protected.

@mafredri mafredri self-assigned this Feb 24, 2023
@mafredri mafredri force-pushed the mafredri/fix-endpoint-mutex-protection branch 2 times, most recently from 92be451 to f1b4612 Compare February 24, 2023 12:18
@mafredri mafredri force-pushed the mafredri/fix-endpoint-mutex-protection branch from f1b4612 to c3252ea Compare February 24, 2023 12:19
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we upstream this to Tailscale? It seems generally applicable

@coadler
Copy link

coadler commented Feb 26, 2023

@kylecarbs its only an issue for us because of one of my patches that fixed a goleak issue

@mafredri mafredri merged commit 304cd11 into main Mar 7, 2023
@mafredri mafredri deleted the mafredri/fix-endpoint-mutex-protection branch March 7, 2023 10:32
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.

3 participants