io_uring: nospec index for tags on files update
BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit
34bb77184123ae401100a4d156584f12fa630e5c ]
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: c3bdad0271834 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit
50c981bd77900293c32f91b3d28344554a5f3c0b)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>