]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
io_uring: fix racy IOPOLL completions
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 6 Dec 2020 22:22:43 +0000 (22:22 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:37:46 +0000 (16:37 +0100)
commitd33c75901ddf79ec4c27c5c23cac194aa90c111e
tree1fdfb845bad5191edb9ead30a447b144372f75a8
parent94d612e0c9002a3e1dbc079724116460a04ad390
io_uring: fix racy IOPOLL completions

BugLink: https://bugs.launchpad.net/bugs/1910111
commit 31bff9a51b264df6d144931a6a5f1d6cc815ed4b upstream.

IOPOLL allows buffer remove/provide requests, but they doesn't
synchronise by rules of IOPOLL, namely it have to hold uring_lock.

Cc: <stable@vger.kernel.org> # 5.7+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io_uring.c