]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: prevent opcode speculation
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 14 Feb 2025 22:48:15 +0000 (22:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:34:19 +0000 (04:34 -0800)
commitfdbfd52bd8b85ed6783365ff54c82ab7067bd61b
tree8689de00f88a605dc3fa0e963f3de46f60db041b
parentbc218366c6aa4251348fafcacdb1d4f1475047a1
io_uring: prevent opcode speculation

commit 1e988c3fe1264708f4f92109203ac5b1d65de50b upstream.

sqe->opcode is used for different tables, make sure we santitise it
against speculations.

Cc: stable@vger.kernel.org
Fixes: d3656344fea03 ("io_uring: add lookup table for various opcode needs")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/7eddbf31c8ca0a3947f8ed98271acc2b4349c016.1739568408.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c