]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/io_uring.c
io_uring: fix 0-iov read buffer select
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 19 Dec 2020 03:15:43 +0000 (03:15 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:37:46 +0000 (16:37 +0100)
commit6968c2a0ea9aa401541c74e9eb9292deeca3b527
tree9dbba9f6b362184a6346c85b73f51c9e074006bd
parent374d67d97b3d0b03363c99b97aefb01ded35de3c
io_uring: fix 0-iov read buffer select

BugLink: https://bugs.launchpad.net/bugs/1910111
commit dd20166236953c8cd14f4c668bf972af32f0c6be upstream.

Doing vectored buf-select read with 0 iovec passed is meaningless and
utterly broken, forbid it.

Cc: <stable@vger.kernel.org> # 5.7+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io_uring.c