diff options
| author | Jens Axboe <[email protected]> | 2023-01-20 22:08:21 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-01-20 22:11:54 +0000 |
| commit | 8caa03f10bf92cb8657408a6ece6a8a73f96ce13 (patch) | |
| tree | 4966ad5c97201debcb18607e0c6feeafeaa202de /scripts/clang-tools/gen_compile_commands.py | |
| parent | io_uring/msg_ring: fix remote queue to disabled ring (diff) | |
| download | kernel-8caa03f10bf92cb8657408a6ece6a8a73f96ce13.tar.gz kernel-8caa03f10bf92cb8657408a6ece6a8a73f96ce13.zip | |
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: [email protected]
Fixes: 6e5aedb9324a ("io_uring/poll: attempt request issue after racy poll wakeup")
Reported-and-tested-by: Olivier Langlois <[email protected]>
Link: https://github.com/axboe/liburing/issues/778
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
