Skip to content

feat(syscall): Wave 11 — final 31 P3 syscalls (386/386 = 100% Linux x86-64 parity) - #216

Merged
YUZHEthefool merged 2 commits into
mainfrom
ao/syscall-parity/wave11-final-100pct
Dec 3, 2026
Merged

YUZHEthefool merged 2 commits into
mainfrom
ao/syscall-parity/wave11-final-100pct

Conversation

@YUZHEthefool

Copy link
Copy Markdown
Member

Summary

Completes the final 31 Linux x86-64 syscalls (355/386 -> 386/386, 100.0% Linux x86-64 syscall parity, Missing=0 against /usr/include/asm/unistd_64.h):

  • Linux Asynchronous I/O (6):
    • io_setup(206), io_destroy(207), io_getevents(208), io_submit(209), io_cancel(210), io_pgetevents(333)
    • Per-MmState aio_contexts table (shared across CLONE_VM threads, NOT inherited across fork(), automatically torn down on execve()/exit)
    • Exact Linux struct iocb (64B) & struct io_event (32B) wire ABI supporting PREAD/PWRITE/PREADV/PWRITEV/FSYNC/FDSYNC/NOOP, IOCB_FLAG_RESFD eventfd signaling, atomic EFAULT event restoration, and io_pgetevents temporary signal mask with shared-signal retargeting
  • LDT & Legacy 32-bit TLS (3):
    • modify_ldt(154) (reads empty 64-bit LDT -> 0; writes validate user_desc and fail closed EOPNOTSUPP)
    • set_thread_area(205), get_thread_area(211) (ENOSYS on native x86-64)
  • Kernel Modules, Kexec, Quota, Probes & Obsolete Linux 2.x (22):
    • init_module(175), finit_module(313), delete_module(176) (CAP_SYS_MODULE + arg validation -> fail closed EOPNOTSUPP/ENOENT)
    • kexec_load(246), kexec_file_load(320) (CAP_SYS_BOOT + arg validation -> fail closed EOPNOTSUPP)
    • quotactl(179), quotactl_fd(443) (CAP_SYS_ADMIN on mutating ops + fd/path validation -> ENOSYS)
    • uretprobe(335), uprobe(336), uselib(134), _sysctl(156), create_module(174), get_kernel_syms(177), query_module(178), nfsservctl(180), getpmsg(181), putpmsg(182), afs_syscall(183), tuxcall(184), security(185), lookup_dcookie(212), vserver(236) (exact upstream Linux x86-64 ENOSYS)

Validation

  • make fmt-check, make build, make lint (ABI oracle PASS), make clippy — PASS
  • scripts/tools/hosted_subcrate_tests.sh — ALL 990 unit tests PASS (including wave11_full_386_syscall_parity_and_abi_layouts asserting every syscall in 0..=336 and 424..=472)
  • make test-strict-smp4 (85/85), make musl-check — PASS
  • Verified against /usr/include/asm/unistd_64.h: Linux=386 Implemented=386 Missing=0.

@YUZHEthefool YUZHEthefool left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested on e4ad3a0. I inspected syscall dispatch, AIO context lifetime, submission, completion delivery, signal handling, and the accompanying tests. The inline findings cover writes executed with incorrect semantics, lost completions, and waits that can fail to make progress. This was a static review. I did not run tests, and CI job selection was still in progress when inspected.

Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave11_p3.rs Resolved
…ion, inflight destroy drain, RWF flags, WaitQueue blocking, io_pgetevents EINTR mask)
@YUZHEthefool
YUZHEthefool merged commit 0479f20 into main Dec 3, 2026
15 checks passed
@YUZHEthefool
YUZHEthefool deleted the ao/syscall-parity/wave11-final-100pct branch December 3, 2026 15:36
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.

1 participant