]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add cavium_erratum_23154_cpus missing sentinel
authorMarc Zyngier <maz@kernel.org>
Wed, 9 Mar 2022 18:06:00 +0000 (18:06 +0000)
committerWill Deacon <will@kernel.org>
Wed, 9 Mar 2022 18:13:57 +0000 (18:13 +0000)
commit13128ba2b64e5433508587c0dc427b86aff634d1
tree55cd62d1500e1b47c298839dfb10fe508528d266
parentf8b97a4791ad94db0fef2e996f8b9bb2d24128d7
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.

Reported-by: Qian Cai <quic_qiancai@quicinc.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: f8b97a4791ad ("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>
Link: https://lore.kernel.org/r/20220309180600.3990874-1-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpu_errata.c