]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf header: Sanity check HEADER_PMU_MAPPINGS
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Apr 2026 22:08:59 +0000 (19:08 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 14 Apr 2026 06:21:53 +0000 (23:21 -0700)
commitf613a6d694aa499edb2a291ab2c2d906619585f2
tree04071765e4f0fc05d313202fe85514a9103cd7d8
parenta881fc56038a7baa5cb5074cdd52315d9ad9ee63
perf header: Sanity check HEADER_PMU_MAPPINGS

Add upper bound check on pmu_num in process_pmu_mappings() to harden
against malformed perf.data files (max 4096).

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>
tools/perf/util/header.c