]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: Fix use of XArray in __io_uring_files_cancel
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 9 Oct 2020 12:49:51 +0000 (13:49 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Oct 2020 14:52:26 +0000 (08:52 -0600)
commit48d3101f56bacf5d3983cf8901c4c42b05100860
treeae4b4eb1580c14976b6eda468029edcd0919b2e2
parentc19e73defb1e27e2676fba73f74da9fafc9a486f
io_uring: Fix use of XArray in __io_uring_files_cancel

We have to drop the lock during each iteration, so there's no advantage
to using the advanced API.  Convert this to a standard xa_for_each() loop.

Reported-by: syzbot+27c12725d8ff0bfe1a13@syzkaller.appspotmail.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c