]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: track restrictions separately for IORING_OP and IORING_REGISTER
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 15:14:45 +0000 (08:14 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Jan 2026 17:31:48 +0000 (10:31 -0700)
commitd6406c45f14842019cfaaba19fe2a76ef9fa831c
tree4c066f5cfe4a251e6c5f8b49973840bcc35d1c50
parent991fb85a1d43f0d0237a405d5535024f78a873e5
io_uring: track restrictions separately for IORING_OP and IORING_REGISTER

It's quite likely that only register opcode restrictions exists, in
which case we'd never need to check the normal opcodes. Split
ctx->restricted into two separate fields, one for I/O opcodes, and one
for register opcodes.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/register.c