[LTP] [PATCH v2 0/2] epoll_pwait2() timeout regression test
Martin Doucha
mdoucha@suse.cz
Tue Jun 3 17:22:40 CEST 2025
There seems to be a regression in kernel v6.14 where epoll_pwait2()
interprets very small timeout values (~1000ns) as infinity and waits
for events forever. This patchset adds regression test for this bug
and a necessary refactor for do_epoll_pwait() to allow high precision
timeouts.
Martin Doucha (2):
epoll_pwait: Refactor timeout to struct timespec
Add regression test for epoll_pwait2() timeout
runtest/syscalls | 1 +
.../kernel/syscalls/epoll_pwait/.gitignore | 1 +
.../syscalls/epoll_pwait/epoll_pwait01.c | 4 +-
.../syscalls/epoll_pwait/epoll_pwait02.c | 2 +-
.../syscalls/epoll_pwait/epoll_pwait03.c | 9 +-
.../syscalls/epoll_pwait/epoll_pwait04.c | 2 +-
.../syscalls/epoll_pwait/epoll_pwait06.c | 87 +++++++++++++++++++
.../syscalls/epoll_pwait/epoll_pwait_var.h | 22 ++---
8 files changed, 110 insertions(+), 18 deletions(-)
create mode 100644 testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
--
2.49.0
More information about the ltp
mailing list