diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-04-10 19:08:56 -0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-04-13 23:21:53 -0700 |
| commit | 22a2e2b29217455cf337c765fc26ad2f55d7291a (patch) | |
| tree | 83ec51531e86dc5fef1f50d8d10f669b5ee8fa4f /include/net/phy/git@git.tavy.me:linux.git | |
| parent | 376ce5a9f706a75815c8281861b66060438798d1 (diff) | |
perf header: Sanity check HEADER_CPU_TOPOLOGY
Add validation to process_cpu_topology() to harden against malformed
perf.data files:
- Verify nr_cpus_avail was initialized (HEADER_NRCPUS processed first)
- Bounds check sibling counts (cores, threads, dies) against nr_cpus_avail
- Fix two bare 'return -1' that leaked env->cpu by using 'goto free_cpu'
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 'include/net/phy/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
