Skip to contentSkip to conversation

arm64: Add cavium_erratum_23154_cpus missing sentinel

PATCH Applied Marc Zyngier 2 participants 2 messages Mar 9, 2022 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Add cavium_erratum_23154_cpus missing sentinel

Qian Cai reported that playing with CPU hotplug resulted in a out-of-bound access due to cavium_erratum_23154_cpus missing a sentinel indicating the end of the array.

Add it in order to restore peace and harmony in the world of broken HW.

Fixes 24a147bcef8c ("irqchip/gic-v3: Workaround Marvell erratum 38545 when reading IAR")
Cc Linu Cherian <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/kernel/cpu_errata.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/cpu_errata.c +1 -0
index 510f47055b91..6485d8e54cca 100644
@@ -225,6 +225,7 @@ const struct midr_range cavium_erratum_23154_cpus[] = {
 	MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXN),
 	MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXMM),
 	MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXO),
+	{},
 };
 #endif
 
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw
Quoted 8 lines · Marc Zyngier

Qian Cai reported that playing with CPU hotplug resulted in a out-of-bound access due to cavium_erratum_23154_cpus missing a sentinel indicating the end of the array.

Add it in order to restore peace and harmony in the world of broken HW.

[...]

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

[1/1] arm64: Add cavium_erratum_23154_cpus missing sentinel

      https://git.kernel.org/arm64/c/f90205b95368

Cheers,

Signature · 10 lines
Will

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

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel