Files
erofs-linux/kernel
Oleg Nesterov a076e4bca2 freezer: fix kthread_create vs freezer theoretical race
kthread() sleeps in TASK_INTERRUPTIBLE state waiting for the first wakeup.  In
theory, this wakeup may come from freeze_process()->signal_wake_up(), so the
task can disappear even before kthread_create() sets its ->comm.

Change kthread() to use TASK_UNINTERRUPTIBLE.

[[email protected]: s/BUG_ON/WARN_ON+recover]
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Gautham R Shenoy <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-05-23 20:14:11 -07:00
..
2007-05-21 09:18:19 -07:00
…
2007-05-11 05:38:25 -04:00
2007-05-11 05:38:26 -04:00
…
2007-05-11 08:29:36 -07:00
…
2007-05-23 20:14:11 -07:00
2007-05-09 12:30:55 -07:00
2007-05-09 12:30:55 -07:00
…
…
…
2007-05-09 07:26:28 +02:00
2007-05-09 12:30:56 -07:00
…
…
2007-05-21 09:18:19 -07:00
2007-05-11 05:38:25 -04:00
2007-05-09 12:30:55 -07:00
2007-05-09 12:30:55 -07:00
…
…
…
2007-05-11 08:29:35 -07:00
2007-05-14 12:13:11 -07:00
…
…
2007-05-09 08:57:56 +02:00