io_uring: check reserved fields for send/sendmsg
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 01:34:11 +0000 (19:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 02:48:31 +0000 (20:48 -0600)
commit588faa1ea5eecb351100ee5d187b9be99210f70d
tree276597da2d81c4818efa773b424a48391680bcfc
parentc0713540f6d55c53dca65baaead55a5a8b20552d
io_uring: check reserved fields for send/sendmsg

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