io_uring: check reserved fields for recv/recvmsg
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 01:34:57 +0000 (19:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:38 +0000 (09:14 +0200)
commit37811e46a2329f844cc78d817492586ed7b3598b
tree4a8962c524e8175c85abae69f183b83d832a4405
parent79c10cb188155196db99bfb1c51ee67f8c587908
io_uring: check reserved fields for recv/recvmsg

[ Upstream commit 5a1e99b61b0c81388cde0c808b3e4173907df19f ]

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

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