aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorVince Weaver <[email protected]>2019-07-23 11:06:01 -0400
committerArnaldo Carvalho de Melo <[email protected]>2019-07-29 09:03:43 -0300
commit7622236ceb167aa3857395f9bdaf871442aa467e (patch)
tree993385e9e5ebb0725940784a5e4f34a07e0a0b9c /lib/mpi/mpi-internal.h
parente54599c93dbf487ef80ba2833c5760c22bd20c32 (diff)
perf header: Fix divide by zero error if f_header.attr_size==0
So I have been having lots of trouble with hand-crafted perf.data files causing segfaults and the like, so I have started fuzzing the perf tool. First issue found: If f_header.attr_size is 0 in the perf.data file, then perf will crash with a divide-by-zero error. Committer note: Added a pr_err() to tell the user why the command failed. Signed-off-by: Vince Weaver <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/alpine.DEB.2.21.1907231100440.14532@macbook-air Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions