]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/mips-gic: Prevent indirect access to clusters without CPU cores
authorGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 28 Oct 2024 17:59:35 +0000 (18:59 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 30 Oct 2024 14:41:32 +0000 (15:41 +0100)
commitd1cb1437b785f312d63f447e2e79ff768e7ccc29
treeab6b7504cdc0c532bf86dca091dbaaf4560614ee
parent322a9063876890895cb8308cc6f59de312e8aad5
irqchip/mips-gic: Prevent indirect access to clusters without CPU cores

It is possible to have zero CPU cores in a cluster; in such cases, it is
not possible to access the GIC, and any indirect access leads to an
exception.

Prevent access to such clusters by checking the number of cores in the
cluster at all places which issue indirect cluster access.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Aleksandar Rikalo <arikalo@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241028175935.51250-14-arikalo@gmail.com
drivers/irqchip/irq-mips-gic.c