Repository navigation
feat(syscall): Wave 9 — implement remaining 15 P2 syscalls (io_uring, landlock, lsm, mseal, userfaultfd, perf_event_open, bpf) (322/386, 100% P2 complete) - #214
Merged
YUZHEthefool merged 2 commits intoDec 3, 2026
Conversation
… landlock, lsm, mseal, userfaultfd, perf_event_open, bpf) (322/386, 100% P2 complete)
YUZHEthefool
commented
Dec 3, 2026
YUZHEthefool
left a comment
Member
Author
There was a problem hiding this comment.
Changes requested at 51b385f. I traced the io_uring submission and completion paths, Landlock domain installation, secret-memory backing, userfaultfd registration, and perf counter reads. I also inspected the Wave 9 tests. The inline findings include security interfaces that report success without providing their advertised protection and ring behavior that can misreport or lose completions. This was a static review. I did not execute tests. Kernel build, hosted, and QEMU checks were queued when inspected.
…CQE errno/SQE snapshot/min_complete/fixed-file, Landlock TCP enforcement, memfd_secret/uffd fail-closed, perf TASK_CLOCK)
YUZHEthefool
deleted the
ao/syscall-parity/wave9-iouring-landlock-bpf-p2-complete
branch
December 3, 2026 13:58
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements the final 15 Linux P2 syscalls, advancing Nilix syscall parity from 307/386 to 322/386 (100% P0 + 100% P1 + 100% P2 COMPLETE!):
io_uring(3 syscalls)io_uring_setup(425),io_uring_enter(426),io_uring_register(427)IoUringFile+ pinnedSharedAnonPagesSQ/CQ/SQE rings (IORING_FEAT_SINGLE_MMAP), mapped viasys_mmapatIORING_OFF_SQ_RING/CQ_RING/SQES, executingNOP,READ,WRITE,READV,WRITEV,FSYNC,OPENAT,CLOSE,STATXdirectly into CQEs and supportingIORING_REGISTER_PROBE/FILES/BUFFERS/EVENTFD/ENABLE_RINGS.Landlock & LSM Introspection (6 syscalls)
landlock_create_ruleset(444),landlock_add_rule(445),landlock_restrict_self(446)— ruleset FD, path-beneath & net-port rules,no_new_privs/CAP_SYS_ADMINenforcement, immutable stackedLandlockDomaininherited acrossfork/clone/exec.lsm_get_self_attr(459),lsm_set_self_attr(460),lsm_list_modules(461)— reportsLSM_ID_CAPABILITYandLSM_ID_LANDLOCK.Memory Sealing & Security Primitives (6 syscalls)
mseal(462)— coalescedMmState.sealed_rangesenforced acrossmunmap,mprotect,mremap,MAP_FIXED, and destructivemadvise, inherited acrossfork().memfd_secret(447),map_shadow_stack(453)(CPUID CET_SS probe + fail-closedEOPNOTSUPP).userfaultfd(323)—UserfaultfdFile+UFFDIO_API/REGISTER/UNREGISTER/WAKE/COPY/ZEROPAGEioctls +UFFD_USER_MODE_ONLYcapability check.perf_event_open(298)—PerfEventFilesoftware counters (TASK_CLOCK,CPU_CLOCK,PAGE_FAULTS,CONTEXT_SWITCHES,CPU_MIGRATIONS,DUMMY) +read()+PERF_EVENT_IOC_*.bpf(321)—CAP_BPF/CAP_SYS_ADMINgate, boundedHASH/ARRAY/RINGBUFmaps (CREATE/LOOKUP/UPDATE/DELETE/GET_NEXT_KEY), DAG bytecode verifier +BpfProgFile, andBPF_OBJ_GET_INFO_BY_FD.Verification
make fmt-check,make lint,make clippy,make build— PASSbash scripts/tools/hosted_subcrate_tests.sh— PASS (986 unit tests)make test-strict-smp4— PASS (85/85 SMP4 strict kernel tests)make musl-check— PASS