summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-08-07 15:08:17 -0600
committerJens Axboe <axboe@kernel.dk>2024-08-07 15:08:17 -0600
commit70ed519ed59da3a92c3acedeb84a30e5a66051ce (patch)
tree834bd57c55cc3d3d5644e0a7a590fe5b3ece1e0e /io_uring
parent11893e144ed75be55d99349760513ca104781fc0 (diff)
downloadlwn-70ed519ed59da3a92c3acedeb84a30e5a66051ce.tar.gz
lwn-70ed519ed59da3a92c3acedeb84a30e5a66051ce.zip
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: a05d1f625c7a ("io_uring/net: support bundles for send") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/net.c b/io_uring/net.c
index 97a48408cec3..050bea5e7256 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -623,6 +623,7 @@ retry_bundle:
if (arg.iovs != &kmsg->fast_iov && arg.iovs != kmsg->free_iov) {
kmsg->free_iov_nr = ret;
kmsg->free_iov = arg.iovs;
+ req->flags |= REQ_F_NEED_CLEANUP;
}
}