[lvc-project] [PATCH net] net/sched: cbs: Fix integer overflow in cbs_set_port_rate()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Wed Oct 16 04:30:34 MSK 2024
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:
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
More information about the lvc-project
mailing list