tracing/stack-tracer: fix locking and refcounts
authorTörök Edwin <edwintorok@gmail.com>
Sun, 23 Nov 2008 10:39:07 +0000 (12:39 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 10:53:49 +0000 (11:53 +0100)
commitcffa10aecb6891f090a4d53a075bc40c082c45fc
tree825b264f70bc5c5aaa2882e8dfba75e366238b1e
parent8d7c6a96164651dbbab449ef0b5c20ae1f76a3a1
tracing/stack-tracer: fix locking and refcounts

Impact: fix refcounting/object-access bug

Hold mmap_sem while looking up/accessing vma.
Hold the RCU lock while using the task we looked up.

Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c