Re: [PATCH] dpaa2-switch: Fix interrupt storm after receiving bad if_id in IRQ handler
From: Ioana Ciornei
Date: Fri Feb 27 2026 - 07:45:36 EST
On Thu, Feb 26, 2026 at 09:58:12PM -0800, Guenter Roeck wrote:
> Commit 31a7a0bbeb00 ("dpaa2-switch: add bounds check for if_id in IRQ
> handler") introduces a range check for if_id to avoid an out-of-bounds
> access. If an out-of-bounds if_id is detected, the interrupt status is
> not cleared. This may result in an interrupt storm.
>
> Clear the interrupt status after detecting an out-of-bounds if_id to avoid
> the problem.
>
> Found by an experimental AI code review agent at Google.
>
> Fixes: 31a7a0bbeb00 ("dpaa2-switch: add bounds check for if_id in IRQ handler")
> Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
> Cc: Junrui Luo <moonafterrain@xxxxxxxxxxx>
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Reviewed-by: Ioana Ciornei <ioana.ciornei@xxxxxxx>