diff options
author | Sasha Levin | 2015-08-28 13:06:58 +0200 |
---|---|---|
committer | Steven Rostedt | 2015-08-31 16:47:14 +0200 |
commit | f0a515780393dffbb363e6d1567da46af6f3c5f3 (patch) | |
tree | cad3408ace5cb1542a4eca314eaa847436ab0ff3 /fs/nfs/nfs42proc.c | |
parent | tracing: Allow triggers to filter for CPU ids and process names (diff) | |
download | kernel-qcow2-linux-f0a515780393dffbb363e6d1567da46af6f3c5f3.tar.gz kernel-qcow2-linux-f0a515780393dffbb363e6d1567da46af6f3c5f3.tar.xz kernel-qcow2-linux-f0a515780393dffbb363e6d1567da46af6f3c5f3.zip |
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>
Diffstat (limited to 'fs/nfs/nfs42proc.c')
0 files changed, 0 insertions, 0 deletions