Skip to content

Commit 1bfed23

Browse files
isilenceaxboe
authored andcommitted
io_uring/net: don't overflow multishot accept
Don't allow overflowing multishot accept CQEs, we want to limit the grows of the overflow list. Cc: stable@vger.kernel.org Fixes: 4e86a2c ("io_uring: implement multishot mode for accept") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/7d0d749649244873772623dd7747966f516fe6e2.1691757663.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 22f7fb8 commit 1bfed23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ int io_accept(struct io_kiocb *req, unsigned int issue_flags)
13671367
if (ret < 0)
13681368
return ret;
13691369
if (io_aux_cqe(req, issue_flags & IO_URING_F_COMPLETE_DEFER, ret,
1370-
IORING_CQE_F_MORE, true))
1370+
IORING_CQE_F_MORE, false))
13711371
goto retry;
13721372

13731373
return -ECANCELED;

0 commit comments

Comments
 (0)