Skip to content

tailcat: avoid repeated process-wide netns.SetEnabled side effect - #10

Closed
awdemos wants to merge 1 commit into
tailscale:mainfrom
awdemos:fix-netns-side-effect
Closed

tailcat: avoid repeated process-wide netns.SetEnabled side effect#10
awdemos wants to merge 1 commit into
tailscale:mainfrom
awdemos:fix-netns-side-effect

Conversation

@awdemos

@awdemos awdemos commented Aug 27, 2026

Copy link
Copy Markdown

createEngine called netns.SetEnabled(false) every time it created a wgengine, which is once per Server/Client. That function toggles a process-wide setting, so repeatedly flipping it is an observable global side effect for programs that create multiple tailcat instances or mix tailcat with other networking code.

Guard the call with a sync.Once so the process-wide disable happens at most once, and document why it is needed.

createEngine called netns.SetEnabled(false) every time it created a
wgengine, which is once per Server/Client. That function toggles a
process-wide setting, so repeatedly flipping it is an observable global
side effect for programs that create multiple tailcat instances or mix
tailcat with other networking code.

Guard the call with a sync.Once so the process-wide disable happens at
most once, and document why it is needed.

Updates tailscale/tailcat (adversarial audit).
@bradfitz

Copy link
Copy Markdown
Member

What problem are you trying to solve here? This change doesn't look to solve any problem that I can see. The description seems a little confused.

@bradfitz

Copy link
Copy Markdown
Member

You've burned my trust at this point sending a bunch of PRs that do nothing and have no tests (or have a test that already passed without your change) and don't have a corresponding issue or even a description of what the problem was.

So I'm going to close this.

If a human wants to tell me what the problem is, then we can fix it. We can even fix it with AI, but we need to know what we're fixing and verify it actually fixes it, first.

@bradfitz bradfitz closed this Aug 28, 2026
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.

2 participants