Re: [PATCH v4 08/13] irqchip/gic-v5: Invalidate ITS device cache before freeing ITT
From: Fuad Tabba
Date: Wed Dec 02 2026 - 08:05:37 EST
On Wed, 25 Nov 2026 at 14:40, Sascha Bischoff <sascha.bischoff@xxxxxxx> 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@xxxxxxx>
> Acked-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
Cheers,
/fuad