[PATCH v2] arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array

Will Deacon will at kernel.org
Fri Feb 7 03:37:40 PST 2025


On Thu, 06 Feb 2025 12:44:20 -0500, Radu Rendec wrote:
> 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")
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
      https://git.kernel.org/arm64/c/875d742cf532

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list