Skip to content

[EPIC] Full Linux AArch64 Syscall ABI Parity #265

Todo
0 of 6 issues completed
Todo

Description

@marcobuschini

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

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 final classes, private m_* members, and RAII guards (Kernel::Sync::IrqGuard, Kernel::FS::RefPtr, move-only handles)
  • Keep Linux UAPI structs in kernel/uapi/ as standard-layout extern "C" types validated by static_assert
  • Keep all architecture-dependent code and inline assembly isolated under arch/aarch64-linux-gnu/ behind HAL:: 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
Loading

Phased Issues & Subissues Roadmap

Completed Foundation

Phase 1 — glibc Multithreading, Futex & Signal Completeness (#279) (Deps: None — ready to start)

Phase 2 — Remaining Event Loop Primitives (#280) (Deps: #279)

Phase 3 — Extended VFS, Positional/Vectored I/O & Metadata (#281) (Deps: None — ready in parallel with Phase 1)

Phase 4 — Extended Memory, Process Control, Credentials & Clocks (#282) (Deps: #279)

Phase 5 — Networking (AF_INET / AF_NETLINK) & Mount Management (#283) (Deps: #280, #281)

Phase 6 — File Watching, Process Inspection & Microkernel ABI Audit (#284) (Deps: #280, #281, #282)

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/ and user/test_milo.c) pass with failed=0
  • make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" quality passes with zero warnings

Sub-issues

Sub-issues

0 of 6 Issues completed
Loading 6 sub-issues

Metadata

Metadata

Assignees

Labels

epic

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions