This is a note to let you know that I've just added the patch titled io_uring/net: don't overflow multishot accept to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: io_uring-net-don-t-overflow-multishot-accept.patch and it can be found in the queue-6.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 1bfed23349716a7811645336a7ce42c4b8f250bc Mon Sep 17 00:00:00 2001 From: Pavel Begunkov <asml.silence@xxxxxxxxx> Date: Fri, 11 Aug 2023 13:53:41 +0100 Subject: io_uring/net: don't overflow multishot accept From: Pavel Begunkov <asml.silence@xxxxxxxxx> commit 1bfed23349716a7811645336a7ce42c4b8f250bc upstream. Don't allow overflowing multishot accept CQEs, we want to limit the grows of the overflow list. Cc: stable@xxxxxxxxxxxxxxx Fixes: 4e86a2c980137 ("io_uring: implement multishot mode for accept") Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> Link: https://lore.kernel.org/r/7d0d749649244873772623dd7747966f516fe6e2.1691757663.git.asml.silence@xxxxxxxxx Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- io_uring/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/io_uring/net.c +++ b/io_uring/net.c @@ -1367,7 +1367,7 @@ retry: if (ret < 0) return ret; if (io_aux_cqe(req, issue_flags & IO_URING_F_COMPLETE_DEFER, ret, - IORING_CQE_F_MORE, true)) + IORING_CQE_F_MORE, false)) goto retry; return -ECANCELED; Patches currently in stable-queue which might be from asml.silence@xxxxxxxxx are queue-6.5/io_uring-net-don-t-overflow-multishot-recv.patch queue-6.5/io_uring-net-don-t-overflow-multishot-accept.patch queue-6.5/io_uring-fix-drain-stalls-by-invalid-sqe.patch queue-6.5/io_uring-break-out-of-iowq-iopoll-on-teardown.patch queue-6.5/io_uring-fix-false-positive-kasan-warnings.patch queue-6.5/io_uring-break-iopolling-on-signal.patch