]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: check for valid register opcode earlier
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 13:37:08 +0000 (06:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:17 +0000 (11:59 +0100)
commitf9309dcaa9c0e0d0d7b1dc8d3651db460ae6117f
tree83f1c9f57e06151004c8884729e2a4a078c22434
parent4df413d46960f11c8c105238cfc3f5ff4c95c003
io_uring: check for valid register opcode earlier

[ Upstream commit 343190841a1f22b96996d9f8cfab902a4d1bfd0e ]

We only check the register opcode value inside the restricted ring
section, move it into the main io_uring_register() function instead
and check it up front.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c