]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
io_uring: check reserved fields for send/sendmsg
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 01:34:11 +0000 (19:34 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:53 +0000 (14:22 +0200)
commit7cb4bf4c7736d1c7ba8c1b29d68ad087f086643f
treed0dcdf07a81be46a52c41480ccc2f699a3bae387
parent32e61b3c2691f163bcb5be75e9e963f91b9fd388
io_uring: check reserved fields for send/sendmsg

BugLink: https://bugs.launchpad.net/bugs/1978234
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/io_uring.c