diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-08-07 23:08:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-08-07 23:08:17 +0200 |
commit | 70ed519ed59da3a92c3acedeb84a30e5a66051ce (patch) | |
tree | 834bd57c55cc3d3d5644e0a7a590fe5b3ece1e0e /io_uring/net.c | |
parent | io_uring/net: ensure expanded bundle recv gets marked for cleanup (diff) | |
download | linux-70ed519ed59da3a92c3acedeb84a30e5a66051ce.tar.xz linux-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 '')
-rw-r--r-- | io_uring/net.c | 1 |
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; } } |