Re: [PATCH net] octeontx2-af: CGX: add bounds check to cgx_speed_mbps index

From: patchwork-bot+netdevbpf

Date: Fri May 15 2026 - 20:30:10 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 13 May 2026 18:42:53 +0200 you wrote:
> From: Sam Daly <sam@xxxxxxxxxx>
>
> cgx_speed_mbps has 13 elements but RESP_LINKSTAT_SPEED can yield values
> 0-15. If it returns a value >= 13, this causes an out-of-bounds array
> access. Add a bounds check and default to speed 0 if the index is out of
> range.
>
> [...]

Here is the summary with links:
- [net] octeontx2-af: CGX: add bounds check to cgx_speed_mbps index
https://git.kernel.org/netdev/net/c/c0bf0a4f3f1f

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