diff options
| author | 2026-09-21 21:36:28 +0100 | |
|---|---|---|
| committer | 2026-10-14 17:19:53 +0100 | |
| commit | 41a3f4bc3e4ae4722fd24743bf3f286cea14e3dc (patch) | |
| tree | e14cb34840fde2dc62743731033222ee2f733e6a /scripts/Makefile.thinlto | |
| parent | ARM: 9519/1: dma-mapping: Fix wrong free function in __iommu_alloc_simple() error path (diff) | |
ARM: 9520/1: cacheinfo: avoid out-of-bounds write in populate_cache_leaves()
populate_cache_leaves() advances its bounds-checking index once per
cache level, but split instruction/data caches consume two entries.
CLIDR-based allocation supplies enough entries. Early allocation from
the device tree can supply fewer and expose an out-of-bounds write.
Count each written leaf and stop before a split level that does not
fit. This prepares ARM for DT-based early allocation and matches
commit 875d742cf532 ("arm64: cacheinfo: Avoid out-of-bounds write to
cacheinfo array").
Assisted-by: LLM
Fixes: a9ff94477836 ("ARM: 9433/2: implement cacheinfo support")
Cc: stable@vger.kernel.org
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20260912195552.76673-2-kmehltretter@gmail.com/
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
