diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-11-29 00:21:24 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-29 17:24:52 (GMT) |
commit | c895078355b6b6e05c60aa205892526dd3390f0a (patch) | |
tree | 922a0b9204b0cfcd5c59762f4d02e167d587ccd2 /drivers/char/tpm | |
parent | c2319540cd7330fa9066e5b9b84d357a2c8631a2 (diff) | |
download | linux-fsl-qoriq-c895078355b6b6e05c60aa205892526dd3390f0a.tar.xz |
wait_task_stopped(): don't use task_pid_nr_ns() lockless
wait_task_stopped(WNOWAIT) does task_pid_nr_ns() without tasklist/rcu lock,
we can read an already freed memory. Use the cached pid_t value.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Looks-good-to: Roland McGrath <roland@redhat.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tpm')
0 files changed, 0 insertions, 0 deletions