Skip to content

[SUBISSUE #2] Add Host ASan/UBSan and QEMU Shell Tests for signalfd4 and epoll_pwait2 #288

Todo

Description

@marcobuschini

Parent Issue / Epic

#280 (Epic #265)

Prerequisite Sub-Issue

#287

Atomic Deliverable & Implementation Details

Add comprehensive automated verification for Phase 2 event-loop syscalls:

  • tests/host/: Add Snitch ASan/UBSan tests covering signalfd4 creation, mask update, SFD_CLOEXEC/SFD_NONBLOCK, read of linux_signalfd_siginfo, epoll monitoring of signalfd4, epoll_pwait2 zero/sub-ms/invalid timeouts, sigmask swap, and zero VFS/heap/PFA leaks on teardown.
  • kernel/shell/tests/: Add EL0 QEMU verification exercising signalfd4 + epoll_pwait2 end-to-end with real signal delivery (kill/tgkill) and timer expiration.

Out of scope: core EventLoop.cpp implementation ([SUBISSUE #1]).

Acceptance Criteria & Edge Cases

  • Host Snitch suite covers all success, boundary, and negative-errno paths (EINVAL, EBADF, EFAULT, EAGAIN, EINTR) under ASan/UBSan
  • Repeated test runs restore PFA free pages, slab objects, and VFS/PCB counts to exact baseline
  • QEMU shell verification passes with failed=0
  • make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" quality passes with zero warnings

Metadata

Metadata

Assignees

Labels

ipcsubissue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions