Re: [PATCH net] net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()
From: patchwork-bot+netdevbpf
Date: Thu Oct 08 2026 - 14:40:29 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 07 Oct 2026 17:29:34 +0000 you wrote:
> When skb_copy_and_csum_bits() reaches unreadable frags it returns 0
> after copying only the linear part, and the rest of the caller's buffer
> is left as it was. The callers copy into a buffer that is about to go
> out on the wire: an ICMP error quoting the offending packet, or a
> driver's TX bounce buffer in skb_copy_and_csum_dev(). Neither buffer
> is zeroed beforehand, so whatever was in memory there gets sent.
>
> [...]
Here is the summary with links:
- [net] net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()
https://git.kernel.org/netdev/net/c/ab9414ed70bd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html