[PATCH 0/5] poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()
From: Oleg Nesterov
Date: Tue Jan 07 2025 - 11:28:44 EST
Linus,
I misread fs/eventpoll.c, it has the same problem. And more __pollwait()-like
functions, for example p9_pollwait(). So 1/5 adds mb() into poll_wait(), not
into __pollwait().
WangYuli, after 1/5 we can reconsider your patch.
Oleg.
---
include/linux/poll.h | 26 ++++++++++++--------------
include/net/sock.h | 17 +++++++----------
io_uring/io_uring.c | 9 ++++-----
3 files changed, 23 insertions(+), 29 deletions(-)