summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRadu Rendec <rrendec@redhat.com>2025-02-06 20:44:20 +0300
committerWill Deacon <will@kernel.org>2025-02-07 12:57:56 +0300
commit875d742cf5327c93cba1f11e12b08d3cce7a88d2 (patch)
tree2e32e154192573e7e7bfd7eee3c6e20b3ce123c5 /tools/perf/scripts/python
parentca0f4fe7cf7183bfbdc67ca2de56ae1fc3a8db2b (diff)
downloadlinux-875d742cf5327c93cba1f11e12b08d3cce7a88d2.tar.xz
arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
The loop that detects/populates cache information already has a bounds check on the array size but does not account for cache levels with separate data/instructions cache. Fix this by incrementing the index for any populated leaf (instead of any populated level). Fixes: 5d425c186537 ("arm64: kernel: add support for cpu cache information") Signed-off-by: Radu Rendec <rrendec@redhat.com> Link: https://lore.kernel.org/r/20250206174420.2178724-1-rrendec@redhat.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions