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

sniff: avoid race condition in tcpdump execution #2339

Closed
wants to merge 1 commit into from

Conversation

bimmlerd
Copy link
Member

It is possible, and in sanity check mode even likely, that the tcpdump invocation terminates successfully before Sniff returns. Current code handels this badly, as a race condition occurs. Depending on who wins, we either continue normally, or fatally log 'Failed to execute tcpdump: %!w()'.

It is possible, and in sanity check mode even likely, that the tcpdump
invocation terminates successfully before Sniff returns. Current code
handels this badly, as a race condition occurs. Depending on who wins,
we either continue normally, or fatally log 'Failed to execute tcpdump:
%!w(<nil>)'.

Co-authored-by: Fabian Fischer <[email protected]>
Signed-off-by: David Bimmler <[email protected]>
@bimmlerd
Copy link
Member Author

Oh nevermind this was fixed in #2321 😁

@bimmlerd bimmlerd closed this Feb 27, 2024
@tklauser tklauser deleted the pr/bimmlerd/fix-sniffer-race branch November 27, 2024 13:21
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.

1 participant