Skip to content
  • Steven Rostedt's avatar
    tracing: protect reader of cmdline output · 4ca53085
    Steven Rostedt authored
    
    
    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>
    4ca53085