diff options
author | 2019-07-30 10:58:41 -0300 | |
---|---|---|
committer | 2019-08-12 16:26:02 -0300 | |
commit | 57fc032ad643ffd018d66bd4c1bd3a91de4841e8 (patch) | |
tree | 71938498bb43106c0cf37f93f6dddcb118350df5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge remote-tracking branch 'torvalds/master' into perf/core (diff) | |
download | wireguard-linux-57fc032ad643ffd018d66bd4c1bd3a91de4841e8.tar.xz wireguard-linux-57fc032ad643ffd018d66bd4c1bd3a91de4841e8.zip |
perf session: Avoid infinite loop when seeing invalid header.size
Vince reported that when fuzzing the userland perf tool with a bogus
perf.data file he got into a infinite loop in 'perf report'.
Changing the return of fetch_mmaped_event() to ERR_PTR(-EINVAL) for that
case gets us out of that infinite loop.
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190726211415.GE24867@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions