Skip to content
Commit 4ca53085 authored by Steven Rostedt's avatar Steven Rostedt
Browse files

tracing: protect reader of cmdline output



Impact: fix to one cause of incorrect comm outputs in trace

The spinlock only protected the creation of a comm <=> pid pair.
But it was possible that a reader could look up a pid, and get the
wrong comm because it had no locking.

This also required changing trace_find_cmdline to copy the comm cache
and not just send back a pointer to it.

Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
parent 03303549
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment