]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:53:28 +0000 (17:53 +0200)
commita18d50a6655f9aeaca46d8360cc8faab2a66389d
tree3dd33657e8b9015b8e43f5bb533e4e6cd81abd3b
parent17d14187c3ac6bde3706c35eb905a8e8ce37331c
io_uring: ensure that send/sendmsg and recv/recvmsg check sqe->ioprio

commit df1e120925199ab9b282a6b6bb3db7da2d3b883c 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