Commit 1e233324 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

io_uring: check for valid register opcode earlier

stable inclusion
from stable-v5.10.165
commit 78e8151f04f0aa0a5809aafea5de3719c2360033
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=78e8151f04f0aa0a5809aafea5de3719c2360033



--------------------------------

[ 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.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 4384b741
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment