From: Jens Axboe Date: Wed, 7 Aug 2024 21:08:17 +0000 (-0600) Subject: io_uring/net: ensure expanded bundle send gets marked for cleanup X-Git-Tag: v6.12~593^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70ed519ed59da3a92c3acedeb84a30e5a66051ce;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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; } }