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

From: Fuad Tabba

Date: Wed Dec 02 2026 - 06:21:49 EST


On Wed, 25 Nov 2026 at 14:40, Sascha Bischoff <sascha.bischoff@xxxxxxx> 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@xxxxxxx>
> Acked-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>

Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>

Cheers,
/fuad