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

If setting initial value of maps fails, ebpf native module leaks handles #3222

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

Alan-Jowett
Copy link
Member

@Alan-Jowett Alan-Jowett commented Feb 1, 2024

Resolves: #3221

Description

The function ebpf_native_load_programs leaks handles if initialization of native modules fails.

Testing

CI/CD + fault injection.

Documentation

No.

Installation

No.

Signed-off-by: Alan Jowett <[email protected]>
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (41e1da2) 83.80% compared to head (1e1606b) 83.79%.

Files Patch % Lines
libs/execution_context/ebpf_native.c 33.33% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3222      +/-   ##
==========================================
- Coverage   83.80%   83.79%   -0.01%     
==========================================
  Files         143      143              
  Lines       27288    27297       +9     
==========================================
+ Hits        22868    22873       +5     
- Misses       4420     4424       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dv-msft dv-msft added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit ea79ad5 Feb 2, 2024
160 of 162 checks passed
@dv-msft dv-msft deleted the issue3221 branch February 2, 2024 09:52
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.

Workflow failed - fault_injection_full
3 participants