um: should hold tasklist_lock while traversing processes
authorAnton Vorontsov <[email protected]>
Thu, 31 May 2012 23:26:25 +0000 (16:26 -0700)
committerLinus Torvalds <[email protected]>
Fri, 1 Jun 2012 00:49:30 +0000 (17:49 -0700)
commit9bd0a077122a6b15069aab7a59c8f50f736fa1dd
treef76eefc0b3bdb46a01e394cecbf9ac42935bc4cc
parentaf1be5a578a1ccc9961c55290f8c509a00a69036
um: should hold tasklist_lock while traversing processes

Traversing the tasks requires holding tasklist_lock, otherwise it is
unsafe.

p.s.  However, I'm not sure that calling os_kill_ptraced_process() in the
atomic context is correct.  It seem to work, but please take a closer
look.

Signed-off-by: Anton Vorontsov <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/um/kernel/reboot.c