Jens Axboe 8caa03f10b io_uring/poll: don't reissue in case of poll race on multishot request
A previous commit fixed a poll race that can occur, but it's only
applicable for multishot requests. For a multishot request, we can safely
ignore a spurious wakeup, as we never leave the waitqueue to begin with.

A blunt reissue of a multishot armed request can cause us to leak a
buffer, if they are ring provided. While this seems like a bug in itself,
it's not really defined behavior to reissue a multishot request directly.
It's less efficient to do so as well, and not required to rearm anything
like it is for singleshot poll requests.

Cc: stable@vger.kernel.org
Fixes: 6e5aedb9324a ("io_uring/poll: attempt request issue after racy poll wakeup")
Reported-and-tested-by: Olivier Langlois <olivier@trillion01.com>
Link: https://github.com/axboe/liburing/issues/778
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-01-20 15:11:54 -07:00
..
2022-08-12 17:01:00 -06:00
2022-12-07 06:47:13 -07:00
2022-12-19 08:28:28 -07:00
2022-09-21 13:15:02 -06:00
2022-07-24 18:39:11 -06:00
2022-12-07 06:47:13 -07:00
2022-07-24 18:39:14 -06:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2023-01-13 07:32:46 -07:00
2022-10-07 12:25:30 -06:00