io_uring: verify that resv2 is 0 in io_uring_rsrc_update2
authorDylan Yudaken <dylany@fb.com>
Tue, 12 Apr 2022 16:30:40 +0000 (09:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:34:12 +0000 (09:34 +0200)
commit7a7c9f9de9616af339c0f59ccdcb43b996c0bf5c
tree9557624075f0509d29590977613d74e0eea65698
parent22aa1597f462d2a917d1c6124cb33f520949936d
io_uring: verify that resv2 is 0 in io_uring_rsrc_update2

[ Upstream commit d8a3ba9c143bf89c032deced8a686ffa53b46098 ]

Verify that the user does not pass in anything but 0 for this field.

Fixes: 992da01aa932 ("io_uring: change registration/upd/rsrc tagging ABI")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220412163042.2788062-3-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c