io_uring: verify pad field is 0 in io_get_ext_arg
authorDylan Yudaken <dylany@fb.com>
Tue, 12 Apr 2022 16:30:42 +0000 (09:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Apr 2022 16:46:54 +0000 (10:46 -0600)
commitd2347b9695dafe5c388a5f9aeb70e27a7a4d29cf
treef00b75b9025a4ac974cacfceaeb2dc149da19dbd
parent6fb53cf8ff2c4713247df523404d24f466b98f52
io_uring: verify pad field is 0 in io_get_ext_arg

Ensure that only 0 is passed for pad here.

Fixes: c73ebb685fb6 ("io_uring: add timeout support for io_uring_enter()")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220412163042.2788062-5-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c