]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: ensure that send/sendmsg and recv/recvmsg check sqe->ioprio
authorJens Axboe <axboe@kernel.dk>
Thu, 30 Jun 2022 20:42:05 +0000 (14:42 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:54:18 +0000 (10:54 +0200)
commitf55b8a5015c4f73ebe52de2dde3a6a6924c7a53d
treefce0fbaafa34cbbfae53e7dc2fd30ed06219318f
parent05941f172f4b129248344c92f220e86b09ac3bc8
io_uring: ensure that send/sendmsg and recv/recvmsg check sqe->ioprio

BugLink: https://bugs.launchpad.net/bugs/1986728
commit 73911426aaaadbae54fa72359b33a7b6a56947db upstream.

All other opcodes correctly check if this is set and -EINVAL if it is
and they don't support that field, for some reason the these were
forgotten.

This was unified a bit differently in the upstream tree, but had the
same effect as making sure we error on this field. Rather than have
a painful backport of the upstream commit, just fixup the mentioned
opcodes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/io_uring.c