linux/io_uring
Jens Axboe e62e6258ab io_uring/io-wq: only free worker if it was allocated for creation
commit e6db6f9398dadcbc06318a133d4c44a2d3844e61 upstream.

We have two types of task_work based creation, one is using an existing
worker to setup a new one (eg when going to sleep and we have no free
workers), and the other is allocating a new worker. Only the latter
should be freed when we cancel task_work creation for a new worker.

Fixes: af82425c6a2d ("io_uring/io-wq: free worker if task_work creation is canceled")
Reported-by: syzbot+d56ec896af3637bdb7e4@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:58:33 +01:00
..
2022-08-12 17:01:00 -06:00
2022-12-31 13:33:12 +01:00
2022-09-21 13:15:02 -06:00
2022-10-16 17:07:12 -06:00
2022-10-16 17:07:12 -06:00
2023-01-18 11:58:33 +01:00
2022-10-07 12:25:30 -06:00
2022-09-01 17:39:05 -04:00