]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Apr 2022 16:46:54 +0000 (10:46 -0600)
commitd8a3ba9c143bf89c032deced8a686ffa53b46098
treea27ecd001fffc8a6557e56f09c5167cbad545670
parent565c5e616e8061b40a2e1d786c418a7ac3503a8d
io_uring: verify that resv2 is 0 in io_uring_rsrc_update2

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>
fs/io_uring.c