* [PATCH] arm64: Add cavium_erratum_23154_cpus missing sentinel
@ 2022-03-09 18:06 Marc Zyngier
2022-03-09 18:23 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2022-03-09 18:06 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: kernel-team, Qian Cai, Linu Cherian, Will Deacon
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.
Reported-by: Qian Cai <quic_qiancai@quicinc.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: 24a147bcef8c ("irqchip/gic-v3: Workaround Marvell erratum 38545 when reading IAR")
Link: https://lore.kernel.org/r/YijmkXp1VG7e8lDx@qian
Cc: Linu Cherian <lcherian@marvell.com>
Cc: Will Deacon <will@kernel.org>
---
arch/arm64/kernel/cpu_errata.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 510f47055b91..6485d8e54cca 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -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
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: Add cavium_erratum_23154_cpus missing sentinel
2022-03-09 18:06 [PATCH] arm64: Add cavium_erratum_23154_cpus missing sentinel Marc Zyngier
@ 2022-03-09 18:23 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2022-03-09 18:23 UTC (permalink / raw)
To: Marc Zyngier, linux-arm-kernel
Cc: catalin.marinas, kernel-team, Will Deacon, Qian Cai, Linu Cherian
On Wed, 9 Mar 2022 18:06:00 +0000, Marc Zyngier wrote:
> 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-09 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 18:06 [PATCH] arm64: Add cavium_erratum_23154_cpus missing sentinel Marc Zyngier
2022-03-09 18:23 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).