Skip to content

Commit 70ed519

Browse files
committed
io_uring/net: ensure expanded bundle send 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: stable@vger.kernel.org Fixes: a05d1f6 ("io_uring/net: support bundles for send") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 11893e1 commit 70ed519

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

io_uring/net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ int io_send(struct io_kiocb *req, unsigned int issue_flags)
623623
if (arg.iovs != &kmsg->fast_iov && arg.iovs != kmsg->free_iov) {
624624
kmsg->free_iov_nr = ret;
625625
kmsg->free_iov = arg.iovs;
626+
req->flags |= REQ_F_NEED_CLEANUP;
626627
}
627628
}
628629

0 commit comments

Comments
 (0)