Skip to content
Snippets Groups Projects
Commit 47abea04 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: fix off-by-one in sync cancelation file check


The passed in index should be validated against the number of registered
files we have, it needs to be smaller than the index value to avoid going
one beyond the end.

Fixes: 78a861b9 ("io_uring: add sync cancelation API through io_uring_register()")
Reported-by: default avatarLuo Likang <luolikang@nsfocus.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e1d0c6d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment