Patch "io_uring/io-wq: free worker if task_work creation is canceled" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    io_uring/io-wq: free worker if task_work creation is canceled

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     io_uring-io-wq-free-worker-if-task_work-creation-is-canceled.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From af82425c6a2d2f347c79b63ce74fca6dc6be157f Mon Sep 17 00:00:00 2001
From: Jens Axboe <axboe@xxxxxxxxx>
Date: Mon, 2 Jan 2023 16:49:46 -0700
Subject: io_uring/io-wq: free worker if task_work creation is canceled
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Jens Axboe <axboe@xxxxxxxxx>

commit af82425c6a2d2f347c79b63ce74fca6dc6be157f upstream.

If we cancel the task_work, the worker will never come into existance.
As this is the last reference to it, ensure that we get it freed
appropriately.

Cc: stable@xxxxxxxxxxxxxxx
Reported-by: 진호 <wnwlsgh98@xxxxxxxxx>
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 io_uring/io-wq.c |    1 +
 1 file changed, 1 insertion(+)

--- a/io_uring/io-wq.c
+++ b/io_uring/io-wq.c
@@ -1230,6 +1230,7 @@ static void io_wq_cancel_tw_create(struc
 
 		worker = container_of(cb, struct io_worker, create_work);
 		io_worker_cancel_cb(worker);
+		kfree(worker);
 	}
 }
 


Patches currently in stable-queue which might be from axboe@xxxxxxxxx are

queue-6.1/io_uring-cancel-re-grab-ctx-mutex-after-finishing-wa.patch
queue-6.1/io_uring-check-for-valid-register-opcode-earlier.patch
queue-6.1/arm-renumber-bits-related-to-_tif_work_mask.patch
queue-6.1/io_uring-pin-context-while-queueing-deferred-tw.patch
queue-6.1/ublk-honor-io_uring_f_nonblock-for-handling-control-.patch
queue-6.1/io_uring-fix-cq-waiting-timeout-handling.patch
queue-6.1/block-don-t-allow-splitting-of-a-req_nowait-bio.patch
queue-6.1/io_uring-io-wq-free-worker-if-task_work-creation-is-canceled.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux