]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: fix io_req_prep_async with provided buffers
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 10 Feb 2025 17:27:55 +0000 (17:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:53 +0000 (13:49 +0100)
commita1b17713b32c75a90132ea2f92b1257f3bbc20f3
tree2ba6575292b8f5e2cc17a14b29b75b3dbdba5501
parent233b210a678bddf8b49b02a070074a52b87e6d43
io_uring: fix io_req_prep_async with provided buffers

io_req_prep_async() can import provided buffers, commit the ring state
by giving up on that before, it'll be reimported later if needed.

Reported-by: Muhammad Ramdhan <ramdhan@starlabs.sg>
Reported-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
Reported-by: Jacob Soo <jacob.soo@starlabs.sg>
Fixes: c7fb19428d67d ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c