io_uring/io-wq: only free worker if it was allocated for creation
commit e6db6f93 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: af82425c ("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>
Loading
-
mentioned in commit f45e8d63
-
mentioned in commit 31068721
-
mentioned in commit 747b0198
-
mentioned in commit a12d2d82
-
mentioned in commit f644a556
-
mentioned in commit edd66c19
-
mentioned in commit ccf5ed5e
-
mentioned in commit eb07c1a0
-
mentioned in commit 75961411
-
mentioned in commit 95a85d74
-
mentioned in commit 60944bdd
-
mentioned in commit fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit 3b66f76c
-
mentioned in commit 74822bf3
-
mentioned in commit fb9be5fe
-
mentioned in commit a7125c16
-
mentioned in commit a989e0d7
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment