]> git.karo-electronics.de Git - karo-tx-linux.git/commit
um: should hold tasklist_lock while traversing processes
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 3 May 2012 05:44:46 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:58 +0000 (15:46 +1000)
commit3794fbb1267d1da7ea9703bf0aa76850cd94f5fe
tree5a4f289a4d7b805059d3a7590f4043b6f416934c
parentb08566c8c51d5562c8ffe64d4f1d2d6b8ec9b467
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 <anton.vorontsov@linaro.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/um/kernel/reboot.c