-
Notifications
You must be signed in to change notification settings - Fork 171
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(libsinsp): cache invalidation and potential use-after-free in state table api for plugins and sinsp #2266
Conversation
…tate/plugin API Signed-off-by: Jason Dellaluce <[email protected]>
…table Signed-off-by: Jason Dellaluce <[email protected]>
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2266 +/- ##
==========================================
- Coverage 75.34% 75.33% -0.01%
==========================================
Files 279 279
Lines 34369 34394 +25
Branches 5874 5884 +10
==========================================
+ Hits 25894 25910 +16
- Misses 8475 8484 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/milestone 0.21.0 |
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.
/approve
LGTM label has been added. Git tree hash: 1b899bae799e864197801f5898492291dec5848f
|
Signed-off-by: Jason Dellaluce <[email protected]>
7da6830
to
477f327
Compare
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.
/approve
LGTM label has been added. Git tree hash: 75c2a0eaf5d331c2e9057df6df080108e10b1de2
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, jasondellaluce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This is a follow up for the issues fixed in #2257. I discovered that due to how thread management works, there may be corner cases where the last cached thread ref or the cached fd tables pointer might become stale, thus potentially causing use after free issues.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: