-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix resource leak bug in auditbeat/socket #41080
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
Fix resource leak bug in auditbeat/socket #41080
Conversation
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
|
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
haesbaert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
* fix resource leak bug in auditbeat/socket * linter.. * linter... (cherry picked from commit 12e846b)
* fix resource leak bug in auditbeat/socket * linter.. * linter... (cherry picked from commit 12e846b) Co-authored-by: Alex K. <[email protected]>
Proposed commit message
This appears to be a long-running resource leak in auditbeat that happens under the following conditions:
forkkretprobe eventpid == tidfor the given exiting process, it will clean up the process hashmap entrypid != tidnever gets cleaned upThis slightly alters the logic so
if pid != tid && s.processExists(tid), we also clean up the entry for the TID on exit.Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.