]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:10 +0000 (14:41 +0200)
commit1dc25797b931645e27a7505f722a5e59fae47275
treebd4b7f9ba37790a0c2e29ecc22a94f4dfda54546
parent024ce09d64900afdbe22d352da3455e28f1fe8f0
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>
fs/io_uring.c