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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:34:12 +0000 (09:34 +0200)
commit9947548d9cef58f6be28b7bb0be53138626ff319
treea3637459412a73eaf5e060a5d5eaf6cbd4fe468a
parent7a7c9f9de9616af339c0f59ccdcb43b996c0bf5c
io_uring: verify pad field is 0 in io_get_ext_arg

[ Upstream commit d2347b9695dafe5c388a5f9aeb70e27a7a4d29cf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c