diff options
| author | Radu Rendec <rrendec@redhat.com> | 2025-02-06 12:44:20 -0500 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2025-02-07 09:57:56 +0000 |
| commit | 875d742cf5327c93cba1f11e12b08d3cce7a88d2 (patch) | |
| tree | 2e32e154192573e7e7bfd7eee3c6e20b3ce123c5 /lib/mpi/mpi-mod.c | |
| parent | ca0f4fe7cf7183bfbdc67ca2de56ae1fc3a8db2b (diff) | |
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 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
