mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
RAVENPLAT-199: CVE-2017-0605 vulnerability in kernel trace subsystem [1/1]
PD#SWPL-15901 Problem: Elevation of privilege vulnerability in kernel trace subsystem (device specific) Solution: use strlcpy instead of strcpy Platform: Raven Verify: Raven Change-Id: Ie0214a88c4194f892f8f7cda4965c1931e415bbc Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
This commit is contained in:
@@ -1864,7 +1864,7 @@ static void __trace_find_cmdline(int pid, char comm[])
|
||||
|
||||
map = savedcmd->map_pid_to_cmdline[pid];
|
||||
if (map != NO_CMDLINE_MAP)
|
||||
strcpy(comm, get_saved_cmdlines(map));
|
||||
strlcpy(comm, get_saved_cmdlines(map), TASK_COMM_LEN-1);
|
||||
else
|
||||
strcpy(comm, "<...>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user