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

fix(hypercall): use sanitized flags for mapped files #853

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

n0toose
Copy link
Member

@n0toose n0toose commented Jan 5, 2025

Just spotted this unfortunate error, oops.

@n0toose n0toose requested a review from jounathaen January 5, 2025 16:11
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.81%. Comparing base (8d2f7e5) to head (20616f9).

Files with missing lines Patch % Lines
src/hypercall.rs 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #853      +/-   ##
==========================================
- Coverage   71.85%   71.81%   -0.05%     
==========================================
  Files          23       23              
  Lines        3063     3058       -5     
==========================================
- Hits         2201     2196       -5     
  Misses        862      862              

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

@n0toose n0toose force-pushed the fix-flag-sanitization branch from b7ebe2a to 1c4f761 Compare January 5, 2025 16:56
Given our recently added support for directories, it is possible for a
kernel to erroneously create a file inside of a mapped directory using
the flags O_DIRECTORY | O_CREAT. This fixes an inconsistency where the
presence of both flags at the same time (which should return -EINVAL)
only takes place for temporary files.
@n0toose n0toose force-pushed the fix-flag-sanitization branch from d7bf620 to 20616f9 Compare January 5, 2025 23:24
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.

2 participants