]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Merge patch series "poll_wait: add mb() to fix theoretical race between waitqueue_act...
authorChristian Brauner <brauner@kernel.org>
Fri, 10 Jan 2025 10:59:08 +0000 (11:59 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 10 Jan 2025 10:59:45 +0000 (11:59 +0100)
commit67cd2e23c0f353803f182ae790a7d5074d4c1a4d
tree21b4329a819a52e988be56b5faefd9a78255f896
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
parentf005bf18a57aadf3af1e85a0f0151cb3688ee606
Merge patch series "poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()"

Oleg Nesterov <oleg@redhat.com> says:

The waitqueue_active() helper can only be used if both waker and waiter
have memory barriers that pair with each other. But __pollwait() is
broken in this respect. Fix it.

* patches from https://lore.kernel.org/r/20250107162649.GA18886@redhat.com:
  poll: kill poll_does_not_wait()
  sock_poll_wait: kill the no longer necessary barrier after poll_wait()
  io_uring_poll: kill the no longer necessary barrier after poll_wait()
  poll_wait: kill the obsolete wait_address check
  poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()

Link: https://lore.kernel.org/r/20250107162649.GA18886@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>