Re: vhost_dev_cleanup() crash: BUG: unable to handle kernel NULLpointer dereference

From: Tejun Heo
Date: Tue Aug 31 2010 - 08:21:18 EST


On 08/31/2010 02:05 PM, Eric Dumazet wrote:
> Just in case, I resubmit the patch, clearing dev->worker, because I am
> not sure if vhost_dev_cleanup() can be run several times on same struct
> vhost_dev. Patch is needed even if you add this check in kthread_stop()
>
> [PATCH v2] vhost: stop worker only if created
>
> Its currently illegal to call kthread_stop(NULL)
>
> Reported-by: Ingo Molnar <mingo@xxxxxxx>
> Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/