Skip to content

eventpoll: Fix epoll_wait() report false negative

Nam Cao linux-fsdevel linux-kselftest lkml 3 versions – Applied

Status from this message: Applied to the vfs-7.2.eventpoll branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 20 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2selftests/eventpoll: Add test for multiple waiterstools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c+45 -00 replies
2/2eventpoll: Fix epoll_wait() report false negativefs/eventpoll.c+19 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] eventpoll: Fix epoll_wait() report false negative

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.

v3: rebase onto vfs tree
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(-)
Signature · 1 line
2.47.3