Re: [PATCH] net: liquidio: fix overflow in octeon_init_instr_queue()
From: patchwork-bot+netdevbpf
Date: Thu Sep 18 2025 - 11:00:14 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 17 Sep 2025 15:30:58 +0000 you wrote:
> The expression `(conf->instr_type == 64) << iq_no` can overflow because
> `iq_no` may be as high as 64 (`CN23XX_MAX_RINGS_PER_PF`). Casting the
> operand to `u64` ensures correct 64-bit arithmetic.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Cc: stable@xxxxxxxxxxxxxxx # v4.2+
> Fixes: f21fb3ed364b ("Add support of Cavium Liquidio ethernet adapters")
> Signed-off-by: Alexey Nepomnyashih <sdl@xxxxxxxx>
>
> [...]
Here is the summary with links:
- net: liquidio: fix overflow in octeon_init_instr_queue()
https://git.kernel.org/netdev/net/c/cca7b1cfd7b8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html