]> Git Repo - linux.git/commit
perf: Fix perf_event_comm() vs. exec() assumption
authorPeter Zijlstra <[email protected]>
Wed, 21 May 2014 15:32:19 +0000 (17:32 +0200)
committerIngo Molnar <[email protected]>
Fri, 6 Jun 2014 05:54:02 +0000 (07:54 +0200)
commite041e328c4b41e1db79bfe5ba9992c2ed771ad19
tree88f8689160ae586c728e6ef665cc4c580c116ba9
parent22c91aa23547a4363fd2a9ffddde95c899ac8aa0
perf: Fix perf_event_comm() vs. exec() assumption

perf_event_comm() assumes that set_task_comm() is only called on
exec(), and in particular that its only called on current.

Neither are true, as Dave reported a WARN triggered by set_task_comm()
being called on !current.

Separate the exec() hook from the comm hook.

Reported-by: Dave Jones <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Build fix. ]
Signed-off-by: Ingo Molnar <[email protected]>
fs/exec.c
include/linux/perf_event.h
kernel/events/core.c
This page took 0.0719689999999999 seconds and 4 git commands to generate.