Skip to content

Commit 11893e1

Browse files
committed
io_uring/net: ensure expanded bundle recv gets marked for cleanup
If the iovec inside the kmsg isn't already allocated AND one gets expanded beyond the fixed size, then the request may not already have been marked for cleanup. Ensure that it is. Cc: [email protected] Fixes: 2f9c951 ("io_uring/net: support bundles for recv") Signed-off-by: Jens Axboe <[email protected]>
1 parent c3fca4f commit 11893e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ static int io_recv_buf_select(struct io_kiocb *req, struct io_async_msghdr *kmsg
10941094
if (arg.iovs != &kmsg->fast_iov && arg.iovs != kmsg->free_iov) {
10951095
kmsg->free_iov_nr = ret;
10961096
kmsg->free_iov = arg.iovs;
1097+
req->flags |= REQ_F_NEED_CLEANUP;
10971098
}
10981099
} else {
10991100
void __user *buf;

0 commit comments

Comments
 (0)