[PATCH v4 08/13] irqchip/gic-v5: Invalidate ITS device cache before freeing ITT

Fuad Tabba fuad.tabba at linux.dev
Wed Dec 2 05:04:48 PST 2026


On Wed, 25 Nov 2026 at 14:40, Sascha Bischoff <sascha.bischoff at arm.com> wrote:
>
> A cached device table entry can still reference the ITT after its
> memory is freed via kfree(), even if the DTE has been marked as
> invalid. Once the memory has been released, it could be reallocated,
> and it would be unfortunate for the hardware to interpret this as a
> valid ITT.
>
> Invalidate the device cache and wait for completion before freeing the
> ITT during device teardown.
>
> Fixes: 57d72196dfc85 ("irqchip/gic-v5: Add GICv5 ITS support")
> Signed-off-by: Sascha Bischoff <sascha.bischoff at arm.com>
> Acked-by: Lorenzo Pieralisi <lpieralisi at kernel.org>
> Cc: stable at vger.kernel.org

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

Cheers,
/fuad



More information about the linux-arm-kernel mailing list