summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDapeng Mi <dapeng1.mi@linux.intel.com>2026-08-24 16:27:31 +0800
committerPeter Zijlstra <peterz@infradead.org>2026-09-02 13:10:47 +0200
commit68aca309e49c589f1922f4c5af2370e4df093175 (patch)
tree443d464e1c7a6c442a0c8d4722a2720cf6be193d /tools/perf/scripts/python/task-analyzer.py
parentc34db2f950940fe8732899a8cc9ba12942be3ba9 (diff)
perf/x86/intel: Add sanity check for PEBS record/fragment size
Prevent potential infinite loops by adding a sanity check for the corrupted PEBS record or fragment size which could happen in theory. If a corrupted PEBS fragment is detected, the entire PEBS record including the corrupted fragment and all subsequent records will be dropped and a NULL PEBS record is reported to user space. This ensures the integrity of PEBS data and prevents infinite loops in setup_arch_pebs_sample_data() again. Please note software has no way to figure out which events are impacted by the corrupted record, so the last record of each event would be discarded for all events if corrupted record is detected even though it may be a well-formed record for some events. Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260824082731.1013973-24-dapeng1.mi@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions