Skip to content

feat(syscall): Wave 10 — 33 P3 compat, keyring, NUMA & pkey syscalls (355/386) - #215

Merged
YUZHEthefool merged 2 commits into
mainfrom
ao/syscall-parity/wave10-p3-compat-keyring-numa
Dec 3, 2026
Merged

YUZHEthefool merged 2 commits into
mainfrom
ao/syscall-parity/wave10-p3-compat-keyring-numa

Conversation

@YUZHEthefool

Copy link
Copy Markdown
Member

Summary

Implements 33 Linux x86-64 P3 syscalls (322/386 -> 355/386, 92.0% Linux x86-64 parity; only 31 P3 syscalls remain for Wave 11):

  • Classic POSIX / Linux Compat (21):
    • getdents(78) via legacy struct linux_dirent wire serializer in vfs/manager.rs (LSM checked, atomic cookie commit after copy_to_user_safe)
    • personality(135), ustat(136), sysfs(139), vhangup(153), adjtimex(159), clock_adjtime(305), acct(163), swapon(167), swapoff(168), iopl(172), ioperm(173), restart_syscall(219), remap_file_pages(216), epoll_ctl_old(214), epoll_wait_old(215)
    • ioprio_set(251), ioprio_get(252) (process, two-pass PGRP, and USER targets with inheritance on fork/clone/clone3)
    • kcmp(312) (obfuscated open-file-description identity via FileOps::open_file_identity(), hook_ptrace LSM wired — PARTIALLY_WIRED_HOOKS hook_ptrace absent list is now empty!)
    • name_to_handle_at(303), open_by_handle_at(304)
  • Protection Keys & Single-Node NUMA Policy (9):
    • pkey_mprotect(329), pkey_alloc(330), pkey_free(331)
    • mbind(237), set_mempolicy(238), get_mempolicy(239), migrate_pages(256), move_pages(279), set_mempolicy_home_node(450)
  • Kernel Key Retention Service (3):
    • add_key(248), request_key(249), keyctl(250) (GET_KEYRING_ID, JOIN_SESSION_KEYRING, UPDATE, REVOKE, DESCRIBE, CLEAR, LINK, UNLINK, SEARCH, READ, SET_TIMEOUT, INVALIDATE with user-namespace isolation, expiration, and bounded admission)

Validation

  • make fmt-check, make lint, make clippy — PASS
  • scripts/tools/hosted_subcrate_tests.sh — ALL suites PASS (kernel-core 324 tests, lsm_hook_census PASS)
  • make build, make test-strict-smp4 (85/85), make musl-check — PASS
  • Verified against /usr/include/asm/unistd_64.h: 355/386 implemented, 31 remaining.

@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 at 2503ae8. I traced the new compatibility syscalls, process targeting and authorization, NUMA queries, and keyring operations, and inspected the Wave 10 tests. The findings include incorrect process selection in PID namespaces, missing authorization on keyring writes, and successful returns for operations whose effects are missing. This was a static review. I did not run local tests. Hosted, build, and QEMU checks were queued or running when inspected.

Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
Comment thread kernel/kernel_core/syscall/wave10_p3.rs Resolved
…yring session/GC, mbind, move_pages residency)
@YUZHEthefool
YUZHEthefool merged commit 58a14ec into main Dec 3, 2026
15 checks passed
@YUZHEthefool
YUZHEthefool deleted the ao/syscall-parity/wave10-p3-compat-keyring-numa branch December 3, 2026 14:57
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