Repository navigation
Todo
0 / 20 of 2 issues completedTodo
0 / 20 of 2 issues completed
Copy link
Labels
Description
Parent Epic
Blocked By / Dependencies
#279 (Phase 1 — signal masking/delivery completeness for signalfd4)
Problem Statement & Context
Issue #264 (PR #278) already delivered the core Wayland event-loop primitives (epoll_create1, epoll_ctl, epoll_pwait, eventfd2, timerfd_create, timerfd_settime, timerfd_gettime, memfd_create, MAP_SHARED on tmpfs, and SCM_RIGHTS). Two Phase 2 event-loop syscalls remain for full modern Linux event-loop parity: signalfd4 (74) for unified signal handling inside epoll, and epoll_pwait2 (441) for nanosecond struct timespec timeouts used by newer glibc/libuv/glib/wlroots runtimes.
Scope & Technical Touchpoints
In Scope
linux_signalfd_siginfo(128bytes, LP64static_asserted) inkernel/uapi/event.hppSignalFdkernel object inkernel/ipc/EventLoop.{hpp,cpp}wired into VFSFileOperations(read,poll,release)sys_signalfd4(74) andsys_epoll_pwait2(441) inkernel/syscalls/EventSyscalls.cpp&kernel/syscalls/SyscallDispatcher.cpp- Host ASan/UBSan and QEMU EL0 regression tests
Technical Touchpoints
kernel/uapi/event.hppkernel/ipc/EventLoop.hpp,kernel/ipc/EventLoop.cppkernel/process/Signal.hpp,kernel/process/Signal.cppkernel/syscalls/EventSyscalls.cpp,kernel/syscalls/SyscallInternal.hpp,kernel/syscalls/SyscallDispatcher.cpptests/host/,kernel/shell/tests/
Out of Scope
- Already implemented in [ISSUE] Bring Up Minimal Wayland Compositor and wl_shm Client on /dev/fb0 and evdev #264:
epoll_create1/ctl/pwait,eventfd2,timerfd_*,memfd_create,SCM_RIGHTS inotify_*(Phase 6)
Split Verdict: SPLIT
Rationale: Separating the UAPI + kernel SignalFd/epoll_pwait2 implementation from the comprehensive host & QEMU verification suite keeps the core IPC diff focused and easy to review.
Subissues
- [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)
Acceptance Criteria
-
signalfd4(SFD_NONBLOCK,SFD_CLOEXEC, mask updates on existing FD) dequeues pending masked signals and integrates cleanly withepoll_pwait/epoll_pwait2 -
epoll_pwait2honorsstruct timespectimeouts (null, zero, sub-millisecond, invalid negative ->-EINVAL) and atomic sigmask swaps - Host Snitch ASan/UBSan tests and QEMU shell tests verify zero VFS/heap/PFA leaks
-
make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" qualitypasses with zero warnings
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity