From: Hillf Danton Date: Wed, 1 Apr 2020 09:19:33 +0000 (+0800) Subject: io_uring: add missing finish_wait() in io_sq_thread() X-Git-Tag: v5.7-rc1~28^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10bea96dcc13ad841d53bdcc9d8e731e9e0ad58f;p=thirdparty%2Fkernel%2Flinux.git io_uring: add missing finish_wait() in io_sq_thread() Add it to pair with prepare_to_wait() in an attempt to avoid anything weird in the field. Fixes: b41e98524e42 ("io_uring: add per-task callback handler") Reported-by: syzbot+0c3370f235b74b3cfd97@syzkaller.appspotmail.com Signed-off-by: Hillf Danton Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 7b50879046405..10645077d6b4a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5968,6 +5968,7 @@ static int io_sq_thread(void *data) } if (current->task_works) { task_work_run(); + finish_wait(&ctx->sqo_wait, &wait); continue; } if (signal_pending(current))