]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix racy overflow count reporting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 30 Jul 2020 15:43:47 +0000 (18:43 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2020 17:42:21 +0000 (11:42 -0600)
commit4ae2a02968fef1f16515e6eef3470672f8b683a2
treedc16e00563bdc1880c78dddfa067d78e10e11cbe
parent615084d0e8082deb5cb9f36d187258bcc6804f01
io_uring: fix racy overflow count reporting

All ->cq_overflow modifications should be under completion_lock,
otherwise it can report a wrong number to the userspace. Fix it in
io_uring_cancel_files().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c