io_uring/poll: add hash if ready poll request can't complete inline
authorJens Axboe <axboe@kernel.dk>
Mon, 9 Jan 2023 21:46:10 +0000 (14:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jan 2023 22:46:57 +0000 (15:46 -0700)
commitfebb985c06cb6f5fac63598c0bffd4fd823d110d
tree16968444e582cd87e6d3a0bb95839f9f7f6132f4
parente6db6f9398dadcbc06318a133d4c44a2d3844e61
io_uring/poll: add hash if ready poll request can't complete inline

If we don't, then we may lose access to it completely, leading to a
request leak. This will eventually stall the ring exit process as
well.

Cc: stable@vger.kernel.org
Fixes: 49f1c68e048f ("io_uring: optimise submission side poll_refs")
Reported-and-tested-by: syzbot+6c95df01470a47fc3af4@syzkaller.appspotmail.com
Link: https://lore.kernel.org/io-uring/0000000000009f829805f1ce87b2@google.com/
Suggested-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c