Please sign in to comment.
backing-dev: fix wakeup timer races with bdi_unregister()
commit 2673b4c upstream. While 7a401a9 ("backing-dev: ensure wakeup_timer is deleted") addressed the problem of the bdi being freed with a queued wakeup timer, there are other races that could happen if the wakeup timer expires after/during bdi_unregister(), before bdi_destroy() is called. wakeup_timer_fn() could attempt to wakeup a task which has already has been freed, or could access a NULL bdi->dev via the wake_forker_thread tracepoint. Cc: Jens Axboe <firstname.lastname@example.org> Reported-by: Chanho Min <email@example.com> Reviewed-by: Namjae Jeon <firstname.lastname@example.org> Signed-off-by: Rabin Vincent <email@example.com> Signed-off-by: Wu Fengguang <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>
- Loading branch information...