]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/net: ensure expanded bundle send gets marked for cleanup
authorJens Axboe <axboe@kernel.dk>
Wed, 7 Aug 2024 21:08:17 +0000 (15:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:26 +0000 (15:34 +0200)
commit006cf6583310d39b058c286f633ddf3b6888fd2e
tree6bd72ee55c5046db962b8843f14f8d27371d4706
parent1f16fdd1fdc805b57a908e61096d152271edaea7
io_uring/net: ensure expanded bundle send gets marked for cleanup

commit 70ed519ed59da3a92c3acedeb84a30e5a66051ce upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/net.c