arm64: Add missing sentinel to erratum_1463225
PATCH 1/1 arm64: Add missing sentinel to erratum_1463225
When the erratum_1463225 array was introduced a sentinel at the end was missing thus causing a KASAN: global-out-of-bounds in is_affected_midr_range_list on arm64 error.
--- arch/arm64/kernel/cpu_errata.c | 1 + 1 file changed, 1 insertion(+)
arch/arm64/kernel/cpu_errata.c +1 -0
@@ -782,6 +782,7 @@ static const struct midr_range erratum_1463225[] = {MIDR_RANGE (MIDR_CORTEX_A76 ,0 ,0 ,3 ,1 ),/* Kryo4xx Gold (rcpe to rfpf) => (r0p0 to r3p1) */ MIDR_RANGE(MIDR_QCOM_KRYO_4XX_GOLD, 0xc, 0xe, 0xf, 0xf), + {}, };#endif
Signature · 1 line
2.17.1
Hi Florian,
Quoted 18 lines · Florian Fainelli
When the
erratum_1463225array was introduced a sentinel at the end was missing thus causing a KASAN: global-out-of-bounds inis_affected_midr_range_liston arm64 error.Fixes a9e821b89daa ("arm64: Add KRYO4XX gold CPU cores to erratumlist 1463225 and 1418040")
Signed-off-by Florian Fainelli <[email protected]>--- arch/arm64/kernel/cpu_errata.c | 1 + 1 file changed, 1 insertion(+)arch/arm64/kernel/cpu_errata.c +0
-0
arch/arm64/kernel/cpu_errata.c static const struct midr_range erratum_1463225[] = · line 788
Quoted 7 lines
arch/arm64/kernel/cpu_errata.c +1
-0@@ -782,6 +782,7 @@ static const struct midr_range erratum_1463225[] = { MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 1), /* Kryo4xx Gold (rcpe to rfpf) => (r0p0 to r3p1) */ MIDR_RANGE(MIDR_QCOM_KRYO_4XX_GOLD, 0xc, 0xe, 0xf, 0xf), + {}, }; #endif
My bad missing this, thanks for the fix.
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Quoted 3 lines · Florian Fainelli
When the
erratum_1463225array was introduced a sentinel at the end was missing thus causing a KASAN: global-out-of-bounds inis_affected_midr_range_liston arm64 error.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: Add missing sentinel to erratum_1463225
https://git.kernel.org/arm64/c/09c717c92b52
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev