linux/include/trace
Sasha Levin f0a5157803 tracing: Don't make assumptions about length of string on task rename
While the dest comm string size is assured to be at least TASK_COMM_LEN long,
doing a memcpy() also adds the assumption that the source is at least that
long as well, which isn't assured, and isn't true in cases such as:

	set_task_comm(worker->task, "kworker/dying");

This leads to accessing invalid memory.

Link: http://lkml.kernel.org/r/1440760018-1557-1-git-send-email-sasha.levin@oracle.com

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2015-08-31 10:47:14 -04:00
..
events tracing: Don't make assumptions about length of string on task rename 2015-08-31 10:47:14 -04:00
define_trace.h tracing: Move the perf code out of trace_event.h 2015-05-13 14:05:10 -04:00
perf.h tracing: Rename ftrace_get_offsets_##call() to trace_event_get_offsets_##call() 2015-05-13 21:49:01 -04:00
syscall.h tracing: Rename ftrace_event_{call,class} to trace_event_{call,class} 2015-05-13 14:06:10 -04:00
trace_events.h tracing: Rename ftrace_get_offsets_##call() to trace_event_get_offsets_##call() 2015-05-13 21:49:01 -04:00