]> git.baikalelectronics.ru Git - kernel.git/commit
perf traceevent: Ensure read cmdlines are null terminated.
authorIan Rogers <irogers@google.com>
Fri, 26 Feb 2021 22:14:31 +0000 (14:14 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Mar 2021 19:54:26 +0000 (16:54 -0300)
commit676bf0a117d5860658097c1b652fbd2a6a180c75
treedc4f8f724b8c8b3221b7571a4995174db3f55875
parent48a26970a873c118b7563eb946bddda8554d4b32
perf traceevent: Ensure read cmdlines are null terminated.

Issue detected by address sanitizer.

Fixes: 29c9775d320c50f3 ("perf util: Save pid-cmdline mapping into tracing header")
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210226221431.1985458-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/trace-event-read.c