[PATCH 07/10] um: Should hold tasklist_lock while traversing processes

From
Richard Weinberger <richard@nod.at>
Date
2012-03-24 11:12:46
Also in
linux-mm, linux-sh, linux-um, linuxppc-dev, lkml
Reply to
Anton Vorontsov, 2012-03-24
Am 24.03.2012 11:30, schrieb Anton Vorontsov:
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.
os_kill_ptraced_process() calls a host function.
From UML's point of view nothing sleeps, so this is fine.
Acked-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120324/26ece3a9/attachment-0001.sig>
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