Thread (3 messages) 3 messages, 3 authors, 6d ago

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

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-07-08 09:50:26
Also in: lkml

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help