aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorDenis Nikitin <[email protected]>2022-03-29 20:11:30 -0700
committerArnaldo Carvalho de Melo <[email protected]>2022-04-09 14:20:59 -0300
commitbc21e74d4775f883ae1f542c1f1dc7205b15d925 (patch)
tree8f572aefe11eeaead1e074a25437b0f8c37c37c9 /scripts/bpf_doc.py
parent299687e18a06aa648c8d4ebb025b322ac83fe7dd (diff)
perf session: Remap buf if there is no space for event
If a perf event doesn't fit into remaining buffer space return NULL to remap buf and fetch the event again. Keep the logic to error out on inadequate input from fuzzing. This fixes perf failing on ChromeOS (with 32b userspace): $ perf report -v -i perf.data ... prefetch_event: head=0x1fffff8 event->header_size=0x30, mmap_size=0x2000000: fuzzed or compressed perf.data? Error: failed to process sample Fixes: 57fc032ad643ffd0 ("perf session: Avoid infinite loop when seeing invalid header.size") Reviewed-by: James Clark <[email protected]> Signed-off-by: Denis Nikitin <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions