from Chanho Min <chanho.min@xxxxxxx> System may crash in backing-dev.c when removal SCSI device is detached. bdi task is killed by bdi_unregister()/'khubd', but task's point remains. Shortly afterward, If 'wb->wakeup_timer' is expired before del_timer()/bdi_forker_thread, wakeup_timer_fn() may wake up the dead thread which cause the crash. 'bdi->wb.task' should be NULL as this patch. Signed-off-by: Chanho Min <chanho.min@xxxxxxx> --- mm/backing-dev.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 71034f4..4378a5e 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -607,6 +607,7 @@ static void bdi_wb_shutdown(struct backing_dev_info *bdi) if (bdi->wb.task) { thaw_process(bdi->wb.task); kthread_stop(bdi->wb.task); + bdi->wb.task = NULL; } } -- 1.7.0.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>