[PATCH v2 0/2] eventpoll: Fix epoll_wait() report false negative

Nam Cao posted 2 patches 1 week, 1 day ago
There is a newer version of this series
fs/eventpoll.c                                | 20 ++++++++-
.../filesystems/epoll/epoll_wakeup_test.c     | 45 +++++++++++++++++++
2 files changed, 64 insertions(+), 1 deletion(-)
[PATCH v2 0/2] eventpoll: Fix epoll_wait() report false negative
Posted by Nam Cao 1 week, 1 day ago
Hi,

While staring at epoll, I noticed ep_events_available() looks wrong. I
wrote a small program to confirm, and yes it is definitely wrong.

This series adds a reproducer to kselftest, and fix the bug.

v2: Switch to seqlock solution

Nam Cao (2):
  selftests/eventpoll: Add test for multiple waiters
  eventpoll: Fix epoll_wait() report false negative

 fs/eventpoll.c                                | 20 ++++++++-
 .../filesystems/epoll/epoll_wakeup_test.c     | 45 +++++++++++++++++++
 2 files changed, 64 insertions(+), 1 deletion(-)

-- 
2.47.3
Re: [PATCH v2 0/2] eventpoll: Fix epoll_wait() report false negative
Posted by Christian Brauner 5 days, 19 hours ago
On Sat, May 30, 2026 at 11:37:30AM +0200, Nam Cao wrote:
> Hi,
> 
> While staring at epoll, I noticed ep_events_available() looks wrong. I
> wrote a small program to confirm, and yes it is definitely wrong.
> 
> This series adds a reproducer to kselftest, and fix the bug.

Please resend on top of vfs-7.2.eventpoll... :)