diff options
author | 2025-02-06 12:44:20 -0500 | |
---|---|---|
committer | 2025-02-07 09:57:56 +0000 | |
commit | 875d742cf5327c93cba1f11e12b08d3cce7a88d2 (patch) | |
tree | 2e32e154192573e7e7bfd7eee3c6e20b3ce123c5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arm64: Handle .ARM.attributes section in linker scripts (diff) | |
download | wireguard-linux-875d742cf5327c93cba1f11e12b08d3cce7a88d2.tar.xz wireguard-linux-875d742cf5327c93cba1f11e12b08d3cce7a88d2.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions