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

Nam Cao posted 2 patches 2 months, 2 weeks ago
fs/eventpoll.c                                | 16 +------
.../filesystems/epoll/epoll_wakeup_test.c     | 45 +++++++++++++++++++
2 files changed, 47 insertions(+), 14 deletions(-)
[PATCH 0/2] eventpoll: Fix epoll_wait() report false negative
Posted by Nam Cao 2 months, 2 weeks 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.

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

 fs/eventpoll.c                                | 16 +------
 .../filesystems/epoll/epoll_wakeup_test.c     | 45 +++++++++++++++++++
 2 files changed, 47 insertions(+), 14 deletions(-)

-- 
2.39.5
Re: [PATCH 0/2] eventpoll: Fix epoll_wait() report false negative
Posted by Nam Cao 2 weeks, 5 days ago
Nam Cao <namcao@linutronix.de> writes:
> 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.

Friendly reminder that this exists.

This probably only appears once in a blue moon, and the impact is
probably not significant. But it still should be fixed.

Nam