Re: [PATCH net v5] tcp: do not let tcp_collapse() drive sk_forward_alloc negative

From: patchwork-bot+netdevbpf

Date: Mon Nov 02 2026 - 05:32:26 EST


Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:

On Wed, 28 Oct 2026 19:08:20 +0000 you wrote:
> From: Eric Dumazet <edumazet@xxxxxxxxxx>
>
> tcp_collapse() charges each newly allocated skb with skb_set_owner_r()
> before the skbs it replaces are freed, without scheduling memory first.
>
> Since sk_mem_uncharge() reclaims eagerly, sk->sk_forward_alloc has no
> cushion and can become negative. This can be durable when the collapsed
> skbs had a high payload/truesize ratio or were partially read, because
> the new skbs can have a bigger total truesize than the old ones.
>
> [...]

Here is the summary with links:
- [net,v5] tcp: do not let tcp_collapse() drive sk_forward_alloc negative
https://git.kernel.org/netdev/net/c/031c403d13e5

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