Re: [PATCH 09/10] um: Properly check all process' threads for a live mm

From
Richard Weinberger <richard@nod.at>
Date
2012-03-24 11:12:33
Also in
linux-arm-kernel, linux-mm, linux-sh, linux-um, lkml
Reply to
Anton Vorontsov, 2012-03-24
Am 24.03.2012 11:31, schrieb Anton Vorontsov:
kill_off_processes() might miss a valid process, this is because
checking for process->mm is not enough. Process' main thread may
exit or detach its mm via use_mm(), but other threads may still
have a valid mm.

To catch this we use find_lock_task_mm(), which walks up all
threads and returns an appropriate task (with task lock held).

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Anton Vorontsov <redacted>
Acked-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard

Attachments

Thread (27 messages) 27 messages, 6 authors, last reply 2012-03-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help