Commit 075c0ce7 authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: io_uring: check for valid register opcode earlier



[ Upstream commit 34319084 ]

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.

Change-Id: I4b5f782dad48eb0e7f04d5956cc087494e02b2ec
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Bug: 268174392
(cherry picked from commit 78e8151f)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c7d73a24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment