Skip to content
Commit 6fb53cf8 authored by Dylan Yudaken's avatar Dylan Yudaken Committed by Jens Axboe
Browse files

io_uring: verify resv is 0 in ringfd register/unregister



Only allow resv field to be 0 in struct io_uring_rsrc_update user
arguments.

Fixes: e7a6c00d ("io_uring: add support for registering ring file descriptors")
Signed-off-by: default avatarDylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220412163042.2788062-4-dylany@fb.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d8a3ba9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment