]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: nospec index for tags on files update
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 6 Apr 2022 11:43:57 +0000 (12:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Apr 2022 17:17:47 +0000 (11:17 -0600)
commit0b1d54a58c1d5c9d8d1898d930f034a3813ca595
tree07874f66d3d4c054d10dd9f47e34bc0a563971a4
parent939417793a09d3cb6c99b92dc71634548899a63f
io_uring: nospec index for tags on files update

Don't forget to array_index_nospec() for indexes before updating rsrc
tags in __io_sqe_files_update(), just use already safe and precalculated
index @i.

Fixes: e21cc2a576867 ("io_uring: add generic rsrc update with tags")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c