aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorRichard Guy Briggs <[email protected]>2014-03-15 22:42:34 +0000
committerEric Paris <[email protected]>2014-09-23 20:37:56 +0000
commit9eab339b197a6903043d272295dcb716ff739b21 (patch)
tree4f8c204a04b59bc20e679f84f1d6b28f79fcce2c /tools/perf/scripts/python/futex-contention.py
parentaudit: remove open_arg() function that is never used (diff)
downloadkernel-9eab339b197a6903043d272295dcb716ff739b21.tar.gz
kernel-9eab339b197a6903043d272295dcb716ff739b21.zip
audit: get comm using lock to avoid race in string printing
When task->comm is passed directly to audit_log_untrustedstring() without getting a copy or using the task_lock, there is a race that could happen that would output a NULL (\0) in the output string that would effectively truncate the rest of the report text after the comm= field in the audit, losing fields. Use get_task_comm() to get a copy while acquiring the task_lock to prevent this and to prevent the result from being a mixture of old and new values of comm. Signed-off-by: Tetsuo Handa <[email protected]> Signed-off-by: Richard Guy Briggs <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions