Skip to content

[ISSUE] Phase 6: File Watching (inotify), Process Inspection (ptrace), and Microkernel ABI Boundary Audit #284

Todo
0 of 3 issues completed

Description

@marcobuschini

Parent Epic

#265

Blocked By / Dependencies

#280 (Phase 2 — epoll), #281 (Phase 3 — VFS mutation hooks), and #282 (Phase 4 — Process control)

Problem Statement & Context

The final phase of Epic #265 covers long-tail Linux developer and desktop-tooling syscalls (inotify_* for live file/config watching, process_vm_readv/writev and minimal ptrace for debuggers/inspectors) and establishes an explicit, tested, and documented -ENOSYS boundary policy for heavy Linux-specific subsystems (io_uring, bpf, perf_event_open, unshare/setns) that are intentionally out of microkernel scope.

Scope & Technical Touchpoints

In Scope

  • inotify_init1 (26), inotify_add_watch (27), inotify_rm_watch (28) with VFS mutation hooks and epoll readiness
  • process_vm_readv (270), process_vm_writev (271), and minimal ptrace (117) inspection/single-step support
  • Comprehensive syscall-table audit, -ENOSYS boundary regression tests (io_uring_*, bpf, perf_event_open, unshare/setns), and documentation of Milo's supported Linux AArch64 ABI matrix

Technical Touchpoints

  • kernel/uapi/event.hpp, kernel/ipc/, kernel/fs/Vfs.cpp
  • kernel/syscalls/ProcessSyscalls.cpp, kernel/syscalls/EventSyscalls.cpp, kernel/syscalls/SyscallDispatcher.cpp
  • kernel/hal/cpu.hpp, arch/aarch64-linux-gnu/ (for ptrace single-step / register-set access)
  • tests/host/, kernel/shell/tests/, user/test_milo.c, docs/

Out of Scope

  • Full eBPF JIT/verifier, full io_uring ring submission engine, or Linux cgroup/namespace container runtime

Split Verdict: SPLIT

Rationale: inotify touches VFS + IPC event queues, ptrace/process_vm_* touches HAL trap/register inspection + cross-AddressSpace memory copy, and the final ABI boundary audit + matrix spans documentation and full-table regression tests. Splitting into 3 subissues keeps each PR small and independently verifiable.

Subissues

Acceptance Criteria

  • inotify_* watches emit accurate linux_inotify_event records on file creation, modification, rename, and deletion and integrate with epoll
  • process_vm_readv/writev and minimal ptrace enforce process/permission boundaries with zero memory or refcount leaks
  • All out-of-scope Linux syscalls cleanly return -ENOSYS under automated regression tests and are documented in docs/
  • make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" quality passes with zero warnings

Sub-issues

Sub-issues

0 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions