Repository navigation
Todo
0 / 60 of 6 issues completedLabels
epicUmbrella milestone or multi-issue epic
Description
Goal
Achieve comprehensive Linux AArch64 (asm-generic/unistd.h) syscall ABI parity in kernel/syscalls/ so unmodified AArch64 Linux binaries (both musl and glibc, CLI tools, Wayland stacks, and system utilities) run cleanly in EL0 on milo.
Current Baseline
- 98 syscalls are currently dispatched in
kernel/syscalls/SyscallDispatcher.cpp(updated from 84 after [ISSUE] Run a Precompiled AArch64 Linux bash Binary on Milo #263 / PR feat(user): run precompiled Debian arm64 dynamic bash on Milo #276 and [ISSUE] Bring Up Minimal Wayland Compositor and wl_shm Client on /dev/fb0 and evdev #264 / PR feat(ipc): bring up minimal Wayland compositor and wl_shm client on /dev/fb0 and evdev #278). - Already delivered and verified:
- Core file/VFS I/O,
AF_UNIXsockets +SCM_RIGHTS,mmap/mprotect/brk, signals,clone(fork +CLONE_THREADwithSharedProcessState),exitvsexit_group,gettid,tkill/tgkill,execve/wait4,gettimeofday,clock_gettime,nanosleep - Wayland/event-loop foundation ([ISSUE] Bring Up Minimal Wayland Compositor and wl_shm Client on /dev/fb0 and evdev #264 / PR feat(ipc): bring up minimal Wayland compositor and wl_shm client on /dev/fb0 and evdev #278):
epoll_create1,epoll_ctl,epoll_pwait,eventfd2,timerfd_create/settime/gettime,memfd_create+ cross-processMAP_SHAREDontmpfs+/dev/shm,set_robust_list, and basicfutex(FUTEX_WAIT/FUTEX_WAKE)
- Core file/VFS I/O,
- Unimplemented syscalls must cleanly return
-ENOSYSwithout crashing or leaking kernel state.
Architectural Guidelines & Invariants
- Follow freestanding C++20 rules (
-std=c++20 -ffreestanding -fno-exceptions -fno-rtti) with zero warnings under-Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wnull-dereference - Use
finalclasses,privatem_*members, and RAII guards (Kernel::Sync::IrqGuard,Kernel::FS::RefPtr, move-only handles) - Keep Linux UAPI structs in
kernel/uapi/as standard-layoutextern "C"types validated bystatic_assert - Keep all architecture-dependent code and inline assembly isolated under
arch/aarch64-linux-gnu/behindHAL::interfaces
Dependency Graph
flowchart LR
P1["#279 Phase 1: Multithreading & Signals"] --> P2["#280 Phase 2: signalfd4 & epoll_pwait2"]
P1 --> P4["#282 Phase 4: MM, Process & Timers"]
P2 --> P5["#283 Phase 5: Networking & Mounts"]
P3["#281 Phase 3: Extended VFS & I/O"] --> P5
P2 --> P6["#284 Phase 6: inotify, ptrace & Audit"]
P3 --> P6
P4 --> P6
Phased Issues & Subissues Roadmap
Completed Foundation
- [ISSUE] Support Precompiled AArch64 Linux Binaries (e.g., apt / arm64 Packages) in EL0 #235 — Distro AArch64 ABI foundation
- [ISSUE] Run a Precompiled AArch64 Linux bash Binary on Milo #263 — Precompiled AArch64 Linux
bashbinary (PR feat(user): run precompiled Debian arm64 dynamic bash on Milo #276) - [ISSUE] Bring Up Minimal Wayland Compositor and wl_shm Client on /dev/fb0 and evdev #264 — Minimal Wayland compositor &
wl_shmclient (SCM_RIGHTS,memfd_create,MAP_SHAREDontmpfs,epoll/eventfd/timerfd,CLONE_THREAD, basicfutex— PR feat(ipc): bring up minimal Wayland compositor and wl_shm client on /dev/fb0 and evdev #278)
Phase 1 — glibc Multithreading, Futex & Signal Completeness (#279) (Deps: None — ready to start)
- [ISSUE] Phase 1: Complete glibc Multithreading, Futex Operations, and Advanced Signal Syscalls #279 —
[ISSUE]Phase 1: Complete glibc Multithreading, Futex Operations, and Advanced Signal Syscalls- [SUBISSUE #1] Implement Extended Futex Ops, Robust List Cleanup, rseq, and clone3 #285 —
[SUBISSUE #1]Implement Extended Futex Ops, Robust List Cleanup, rseq, and clone3 (Deps: None) - [SUBISSUE #2] Implement sigaltstack, rt_sigsuspend, rt_sigtimedwait, rt_sigpending, and rt_sigqueueinfo #286 —
[SUBISSUE #2]Implement sigaltstack, rt_sigsuspend, rt_sigtimedwait, rt_sigpending, and rt_sigqueueinfo (Deps: [SUBISSUE #1] Implement Extended Futex Ops, Robust List Cleanup, rseq, and clone3 #285)
- [SUBISSUE #1] Implement Extended Futex Ops, Robust List Cleanup, rseq, and clone3 #285 —
Phase 2 — Remaining Event Loop Primitives (#280) (Deps: #279)
- [ISSUE] Phase 2: Complete Event Loop Syscalls (signalfd4 and epoll_pwait2) #280 —
[ISSUE]Phase 2: Complete Event Loop Syscalls (signalfd4 and epoll_pwait2)- [SUBISSUE #1] Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls #287 —
[SUBISSUE #1]Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls (Deps: [SUBISSUE #2] Implement sigaltstack, rt_sigsuspend, rt_sigtimedwait, rt_sigpending, and rt_sigqueueinfo #286) - [SUBISSUE #2] Add Host ASan/UBSan and QEMU Shell Tests for signalfd4 and epoll_pwait2 #288 —
[SUBISSUE #2]Add Host ASan/UBSan and QEMU Shell Tests for signalfd4 and epoll_pwait2 (Deps: [SUBISSUE #1] Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls #287)
- [SUBISSUE #1] Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls #287 —
Phase 3 — Extended VFS, Positional/Vectored I/O & Metadata (#281) (Deps: None — ready in parallel with Phase 1)
- [ISSUE] Phase 3: Extended VFS, Positional/Vectored I/O, and Filesystem Metadata Syscalls #281 —
[ISSUE]Phase 3: Extended VFS, Positional/Vectored I/O, and Filesystem Metadata Syscalls- [SUBISSUE #1] Implement Vectored and Positional I/O (readv, pread64, pwrite64, preadv, pwritev, preadv2, pwritev2) #289 —
[SUBISSUE #1]Implement Vectored and Positional I/O (readv, pread64, pwrite64, preadv, pwritev, preadv2, pwritev2) (Deps: None) - [SUBISSUE #2] Implement Extended Metadata and Namespace Operations (statx, statfs, fstatfs, symlinkat, linkat, mknodat) #290 —
[SUBISSUE #2]Implement Extended Metadata and Namespace Operations (statx, statfs, fstatfs, symlinkat, linkat, mknodat) (Deps: [SUBISSUE #1] Implement Vectored and Positional I/O (readv, pread64, pwrite64, preadv, pwritev, preadv2, pwritev2) #289) - [SUBISSUE #3] Implement File Transfer, Advisory Locking, Allocation, Sync, and xattr Boundaries #291 —
[SUBISSUE #3]Implement File Transfer, Advisory Locking, Allocation, Sync, and xattr Boundaries (Deps: [SUBISSUE #2] Implement Extended Metadata and Namespace Operations (statx, statfs, fstatfs, symlinkat, linkat, mknodat) #290)
- [SUBISSUE #1] Implement Vectored and Positional I/O (readv, pread64, pwrite64, preadv, pwritev, preadv2, pwritev2) #289 —
Phase 4 — Extended Memory, Process Control, Credentials & Clocks (#282) (Deps: #279)
- [ISSUE] Phase 4: Extended Memory Management, Process Control, Credentials, and POSIX Timers #282 —
[ISSUE]Phase 4: Extended Memory Management, Process Control, Credentials, and POSIX Timers- [SUBISSUE #1] Implement Extended Virtual Memory Syscalls (mremap, madvise, msync, mincore, mlock/munlock) #292 —
[SUBISSUE #1]Implement Extended Virtual Memory Syscalls (mremap, madvise, msync, mincore, mlock/munlock) (Deps: [SUBISSUE #1] Implement Extended Futex Ops, Robust List Cleanup, rseq, and clone3 #285) - [SUBISSUE #2] Implement Process Control, Scheduling Policy, Credentials, and prctl Syscalls #293 —
[SUBISSUE #2]Implement Process Control, Scheduling Policy, Credentials, and prctl Syscalls (Deps: [SUBISSUE #2] Implement sigaltstack, rt_sigsuspend, rt_sigtimedwait, rt_sigpending, and rt_sigqueueinfo #286) - [SUBISSUE #3] Implement POSIX Clocks, High-Resolution Sleep, and Interval/Per-Process Timers #294 —
[SUBISSUE #3]Implement POSIX Clocks, High-Resolution Sleep, and Interval/Per-Process Timers (Deps: [SUBISSUE #2] Implement sigaltstack, rt_sigsuspend, rt_sigtimedwait, rt_sigpending, and rt_sigqueueinfo #286)
- [SUBISSUE #1] Implement Extended Virtual Memory Syscalls (mremap, madvise, msync, mincore, mlock/munlock) #292 —
Phase 5 — Networking (AF_INET / AF_NETLINK) & Mount Management (#283) (Deps: #280, #281)
- [ISSUE] Phase 5: Networking (AF_INET / AF_NETLINK) and Mount Management Syscalls #283 —
[ISSUE]Phase 5: Networking (AF_INET / AF_NETLINK) and Mount Management Syscalls- [SUBISSUE #1] Implement Minimal IPv4/ARP/ICMP/UDP/TCP Stack and AF_INET Socket Syscalls over virtio-net #295 —
[SUBISSUE #1]Implement Minimal IPv4/ARP/ICMP/UDP/TCP Stack and AF_INET Socket Syscalls over virtio-net (Deps: [SUBISSUE #1] Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls #287) - [SUBISSUE #2] Implement AF_NETLINK Sockets (NETLINK_ROUTE and NETLINK_KOBJECT_UEVENT) #296 —
[SUBISSUE #2]Implement AF_NETLINK Sockets (NETLINK_ROUTE and NETLINK_KOBJECT_UEVENT) (Deps: [SUBISSUE #1] Implement Minimal IPv4/ARP/ICMP/UDP/TCP Stack and AF_INET Socket Syscalls over virtio-net #295) - [SUBISSUE #3] Implement Dynamic Mount Management and Root Switching (mount, umount2, chroot, pivot_root) #297 —
[SUBISSUE #3]Implement Dynamic Mount Management and Root Switching (mount, umount2, chroot, pivot_root) (Deps: [SUBISSUE #2] Implement Extended Metadata and Namespace Operations (statx, statfs, fstatfs, symlinkat, linkat, mknodat) #290)
- [SUBISSUE #1] Implement Minimal IPv4/ARP/ICMP/UDP/TCP Stack and AF_INET Socket Syscalls over virtio-net #295 —
Phase 6 — File Watching, Process Inspection & Microkernel ABI Audit (#284) (Deps: #280, #281, #282)
- [ISSUE] Phase 6: File Watching (inotify), Process Inspection (ptrace), and Microkernel ABI Boundary Audit #284 —
[ISSUE]Phase 6: File Watching (inotify), Process Inspection (ptrace), and Microkernel ABI Boundary Audit- [SUBISSUE #1] Implement inotify File Watching (inotify_init1, inotify_add_watch, inotify_rm_watch) #298 —
[SUBISSUE #1]Implement inotify File Watching (inotify_init1, inotify_add_watch, inotify_rm_watch) (Deps: [SUBISSUE #1] Implement signalfd4 and epoll_pwait2 Kernel Primitives and Syscalls #287, [SUBISSUE #2] Implement Extended Metadata and Namespace Operations (statx, statfs, fstatfs, symlinkat, linkat, mknodat) #290) - [SUBISSUE #2] Implement Process Inspection Syscalls (process_vm_readv/writev and Minimal ptrace) #299 —
[SUBISSUE #2]Implement Process Inspection Syscalls (process_vm_readv/writev and Minimal ptrace) (Deps: [SUBISSUE #2] Implement Process Control, Scheduling Policy, Credentials, and prctl Syscalls #293) - [SUBISSUE #3] Audit -ENOSYS Microkernel Boundaries and Publish Linux AArch64 Syscall ABI Matrix #300 —
[SUBISSUE #3]Audit -ENOSYS Microkernel Boundaries and Publish Linux AArch64 Syscall ABI Matrix (Deps: [SUBISSUE #1] Implement inotify File Watching (inotify_init1, inotify_add_watch, inotify_rm_watch) #298, [SUBISSUE #2] Implement Process Inspection Syscalls (process_vm_readv/writev and Minimal ptrace) #299)
- [SUBISSUE #1] Implement inotify File Watching (inotify_init1, inotify_add_watch, inotify_rm_watch) #298 —
Epic Verification & Quality Gates
- Every subissue includes Snitch ASan/UBSan host tests in
tests/host/with zero PFA/heap/VFS leaks - On-target QEMU shell tests (
kernel/shell/tests/anduser/test_milo.c) pass withfailed=0 -
make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" qualitypasses with zero warnings
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Labels
epicUmbrella milestone or multi-issue epic
Type
Projects
- StatusShow more project fieldsTodo
Activity
[-]Epic: Full Linux AArch64 Syscall ABI Parity[/-][+][EPIC] Full Linux AArch64 Syscall ABI Parity[/+]