Re: [PATCH net] net/sched: cbs: Fix integer overflow in cbs_set_port_rate()

From: patchwork-bot+netdevbpf
Date: Tue Oct 15 2024 - 21:30:46 EST


Hello:

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

On Sun, 13 Oct 2024 15:45:29 +0300 you wrote:
> The subsequent calculation of port_rate = speed * 1000 * BYTES_PER_KBIT,
> where the BYTES_PER_KBIT is of type LL, may cause an overflow.
> At least when speed = SPEED_20000, the expression to the left of port_rate
> will be greater than INT_MAX.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> [...]

Here is the summary with links:
- [net] net/sched: cbs: Fix integer overflow in cbs_set_port_rate()
https://git.kernel.org/netdev/net-next/c/397006ba5d91

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