]> www.infradead.org Git - users/dwmw2/linux.git/commit
io_uring: ensure that send/sendmsg and recv/recvmsg check sqe->ioprio
authorJens Axboe <axboe@kernel.dk>
Thu, 30 Jun 2022 20:44:16 +0000 (14:44 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:52:19 +0000 (17:52 +0200)
commitc9fc52c1739e1d3d69660e30498f99b2b525de8f
treee5a7f4b21588460e7c0f104d204a2f208fbfdab1
parentb8def021ac7086202f26fdce55471db4794ec76f
io_uring: ensure that send/sendmsg and recv/recvmsg check sqe->ioprio

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