diff options
author | Radu Rendec <rrendec@redhat.com> | 2025-02-06 20:44:20 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-02-07 12:57:56 +0300 |
commit | 875d742cf5327c93cba1f11e12b08d3cce7a88d2 (patch) | |
tree | 2e32e154192573e7e7bfd7eee3c6e20b3ce123c5 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ca0f4fe7cf7183bfbdc67ca2de56ae1fc3a8db2b (diff) | |
download | linux-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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions