diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-04-10 19:08:58 -0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-04-13 23:21:53 -0700 |
| commit | a881fc56038a7baa5cb5074cdd52315d9ad9ee63 (patch) | |
| tree | 632640c314da244012ed679fddd706407f34eea2 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 4ba223016b0be7ec11aad63f480cd251cecad594 (diff) | |
perf header: Sanity check HEADER_MEM_TOPOLOGY
Add validation to process_mem_topology() to harden against malformed
perf.data files:
- Upper bound check on nr_nodes (reuses MAX_NUMA_NODES, 4096)
- Minimum section size check before allocating
This is particularly important here since nr is u64, making unbounded
values especially dangerous.
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Assisted-by: Claude Code:claude-opus-4-6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
