Repository navigation
Assert each syscall flag set and clear, and fix what it finds #421
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
Closed
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3db8916
Assert each syscall flag set and clear
xalestar 36c20bc
Cover the fd-creating calls in the flag matrix
xalestar d77b3b5
Refuse undefined flag bits in four syscalls
xalestar b99ceb4
Answer ENOENT for an empty path on any dirfd
xalestar 382b954
Refuse statx with both sync flags set
xalestar aad176d
Answer EISDIR for unlink of a directory
xalestar 23dca1e
Report O_DIRECT on a pipe2 write end
xalestar c6919ce
Decline O_TMPFILE and refuse its misuse
xalestar ec2de4d
Cover fcntl, mmap and mprotect in the flag matrix
xalestar 800215c
Cover memfd sealing and pipe packet mode
xalestar fd3da6a
Refuse an mmap with no valid mapping type
xalestar c3b78d9
Refuse the mprotect bits Linux refuses
xalestar 9f7e0ff
Make a fresh PROT_READ mapping read-only
xalestar a879ab9
Refuse an unaligned offset on anonymous mmap
xalestar 3c14a5f
Refuse MAP_HUGETLB on a file mapping
xalestar d8daa8c
Treat a protection without access bits as none
xalestar a9f75f9
Honor MFD_NOEXEC_SEAL and give a memfd its mode
xalestar 9b47ac6
Honor AT_EMPTY_PATH in faccessat2 and utimensat
xalestar cffa733
Move the link-to-symlink fallback into a helper
xalestar 41b1d15
Honor AT_EMPTY_PATH in linkat
xalestar 31ef112
Read the link an O_PATH descriptor names
xalestar 81abd03
Cover clone in the flag matrix
xalestar 2e728fc
Refuse clone flags that need a missing partner
xalestar 8004e78
Mark every pidfd close-on-exec
xalestar 5fe4e1b
Honor CLONE_PIDFD and the tid slot in a fork clone
xalestar b469621
Let a CLONE_VM child see its tid in the slot
xalestar a8c562e
Hold the flag matrix rows in the coverage audit
xalestar ceb4104
Answer faccessat2 for a /proc file that is gone
xalestar 476d4e4
Expect success or ENOMEM from a hugetlb memfd map
xalestar 2c747be
Drop the PROT_BTI row no lane CPU agrees on
xalestar d2ea66e
Fail a fresh mapping whose PTEs cannot be set
xalestar fe09dee
Freeze an executable memfd sealed with F_SEAL_EXEC
xalestar 133af71
Open a descriptor's directory for search only
xalestar 06b583b
Roll back a fresh mapping whose PTEs cannot be set
xalestar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.