[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<176974620486.3168593.12672784481432882393.git-patchwork-notify@kernel.org>
Date: Fri, 30 Jan 2026 04:10:04 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Junrui Luo <moonafterrain@...look.com>
Cc: ioana.ciornei@....com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org, danisjiang@...il.com
Subject: Re: [PATCH net] dpaa2-switch: add bounds check for if_id in IRQ
handler
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
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
Powered by blists - more mailing lists