[PATCH v4 01/13] irqchip/gic-v5: Reject SPIs not backed by an IRS

Fuad Tabba fuad.tabba at linux.dev
Wed Dec 2 03:20:17 PST 2026


On Wed, 25 Nov 2026 at 14:40, Sascha Bischoff <sascha.bischoff at arm.com> wrote:
>
> It is possible to build a multi-IRS GICv5 system where there are gaps
> in the global SPI range that are not backed by any IRS. In the current
> incarnation, this results in dereferencing a null pointer.
>
> Reject cases where the firmware attempts to use those SPIs during IRQ
> allocation by catching the case where there is no chip_data associated
> with the irq (meaning that there is no IRS to back it). Spit out a
> warning about broken firmware when this is encountered as it shouldn't
> be using non-existent SPIs in the first place.
>
> Fixes: 5cb1b6dab2def ("irqchip/gic-v5: Add GICv5 IRS/SPI support")
> Signed-off-by: Sascha Bischoff <sascha.bischoff at arm.com>
> Acked-by: Lorenzo Pieralisi <lpieralisi at kernel.org>

Reviewed-by: Fuad Tabba <fuad.tabba at linux.dev>

Cheers,
/fuad



More information about the linux-arm-kernel mailing list