linux/io_uring
Jens Axboe ba86db02d4 io_uring/io-wq: only free worker if it was allocated for creation
commit e6db6f9398 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: af82425c6a ("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>
History 2023-01-18 11:48:58 +01:00
..
io-wq.c io_uring/io-wq: only free worker if it was allocated for creation 2023-01-18 11:48:58 +01:00
io-wq.h io_uring: move to separate directory 2022-12-14 11:37:31 +01:00
io_uring.c io_uring: lock overflowing for IOPOLL 2023-01-18 11:48:57 +01:00
Makefile io_uring: move to separate directory 2022-12-14 11:37:31 +01:00