Re: Module/kthread/printk question/problem

From: Dmitry Antipov
Date: Wed Feb 01 2012 - 11:35:15 EST

On 02/01/2012 08:31 PM, Eric Dumazet wrote:

Race is here :

Here you allow testmod_exit() to continue, while _this_ thread has not
yet exited.

And if this thread is preempted a litle bit, its code already was freed.
-> crash.

I realize this, but there was a second part of the question: what's the
better way to ensure that all test/X threads are really gone at some point of


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at