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

Delay map cleanup in bpf #682

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

grcevski
Copy link
Contributor

While looking at how to best add the follow-up code for detecting kernel lockdown, I noticed a few places where delete in BPF maps is done before we actually stop using the map memory. While the chances of collision in BPF maps are small, it's possible that another thread with a goroutine hashes into the same memory location, before we stop using the memory. This PR moves few deletes into a safe spot.

@grcevski grcevski requested a review from a team as a code owner February 20, 2024 16:22
@MrAlias MrAlias merged commit 795ffba into open-telemetry:main Feb 21, 2024
17 checks passed
@damemi damemi mentioned this pull request Mar 26, 2024
@MrAlias MrAlias added this to the v0.11.0-alpha milestone Mar 28, 2024
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.

None yet

3 participants