io_uring: check reserved fields for send/sendmsg
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 01:34:11 +0000 (19:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:38 +0000 (09:14 +0200)
commit79c10cb188155196db99bfb1c51ee67f8c587908
tree80104f07fa628b1b8f8a02b62c4270ab8c777ffd
parentee6d708520b784a97240560d9534210045af4c93
io_uring: check reserved fields for send/sendmsg

[ Upstream commit 588faa1ea5eecb351100ee5d187b9be99210f70d ]

We should check unused fields for non-zero and -EINVAL if they are set,
making it consistent with other opcodes.

Fixes: 0fa03c624d8f ("io_uring: add support for sendmsg()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c