Subject: Re: [PATCH net] dpaa2-switch: add bounds check for if_id in IRQ handler

From: [email-masked]
Date: Fri, 30 Jan 2026 04:10:04 +0000

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email-masked]>:

On Thu, 29 Jan 2026 00:55:13 +0800 you wrote:
> The IRQ handler extracts if_id from the upper 16 bits of the hardware
> status register and uses it to index into ethsw->ports[] without
> validation. Since if_id can be any 16-bit value (0-65535) but the ports
> array is only allocated with sw_attr.num_ifs elements, this can lead to
> an out-of-bounds read potentially.
> 
> Add a bounds check before accessing the array, consistent with the
> existing validation in dpaa2_switch_rx().
> 
> [...]

Here is the summary with links:
  - [net] dpaa2-switch: add bounds check for if_id in IRQ handler
    https://git.kernel.org/netdev/net/c/31a7a0bbeb00

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html