]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/rsrc: unify nospec indexing for direct descriptors
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2026 19:14:54 +0000 (13:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Apr 2026 18:18:54 +0000 (12:18 -0600)
commit53262c91f7b81f96495ff24e9d1fa8b1632e69c8
tree71ec8df00937bd12a0f4e77b79db6d75cfe3be38
parent8e1f412b5bc690cb72b3303a1ae0d42955e5e2b3
io_uring/rsrc: unify nospec indexing for direct descriptors

For file updates, the node reset isn't capping the value via
array_index_nospec() like the other paths do. Ensure it's all sane and
have the update path do the proper capping as well.

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