Re: [PATCH v3] net/sched: cake: reject overhead values that underflow length

From: patchwork-bot+netdevbpf

Date: Wed Jul 08 2026 - 05:50:41 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 2 Jul 2026 00:07:59 +0000 you wrote:
> CAKE accepts signed overhead values and stores them in an s16, but the
> adjusted packet length calculation uses unsigned arithmetic. A negative
> effective length can therefore wrap to a large value.
>
> Such configurations make rate accounting depend on integer wraparound
> rather than on the packet size userspace intended to model. A static
> netlink lower bound is not enough because packets reaching CAKE can be
> smaller than any reasonable manual-overhead allowance.
>
> [...]

Here is the summary with links:
- [v3] net/sched: cake: reject overhead values that underflow length
https://git.kernel.org/netdev/net/c/b7f97cae7ec1

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