🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #855

Re: [PATCH net] net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()

#855
From: patchwork-bot+netdevbpf
Date: Thu, 08 Oct 2026 18:40
24 lines
6509 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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
Technical Details
Message-ID: <179148480528.386807.11659403908487908478.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343208-linux-kernel-netdev=dewy.ru
References: <20261007-b4-skb-copy-csum-stale-bytes-v1-1-adbbde033fb3@toxicpanda.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343208-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: skbuff: don't leave stale bytes in
 skb_copy_and_csum_bits()
Date: Thu, 08 Oct 2026 18:40:05 +0000
Organization: Usenet Network
Message-ID: <179148480528.386807.11659403908487908478.git-patchwork-notify@kernel.org>
References: <20261007-b4-skb-copy-csum-stale-bytes-v1-1-adbbde033fb3@toxicpanda.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="943914"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T+PIVWFAVRyGgeDSbQq7dEA/Iv0= sha256:ql7ql3lMJy2vFQ4gCs+8DCiR6rit02egwPLkICQ9iQY=
	sha1:2yo6JvbY9nDUPwqJqc7SRrNeD7k= sha256:jnfrW3A2LpPgyfMRfBuWkkf80mSdZx5TV5ADm0qtIvc=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 02EAD110029; Thu,  8 Oct 2026 21:40:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.341
X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id S2-HCyBTQbkj;
	Thu,  8 Oct 2026 21:40:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-343208-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 85414D2680; Thu,  8 Oct 2026 21:40:11 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 4DFEE29AF3; Thu,  8 Oct 2026 18:40:10 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id AD38E4D7D37;
	Thu,  8 Oct 2026 18:40:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XE8DO7r7"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 099EE449B16;
	Thu,  8 Oct 2026 18:40:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791484809; cv=none; b=XSmXLYhyKpgsgK3Xfm2TBegeYbvZFMsFGkj0qTT9WrRZh+B9CvjW1QxZtwjRdzpIIVgEmGQSY6Xb49LAbMAKIhC4bImkzlEwE16noh33vyKM9pRZsWRHgU6A0x91+66HGA4haDYI7yrKGPL0wJxpwFIgaAZUO1Bz9b4kEr8uhA0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791484809; c=relaxed/simple;
	bh=L2AGMIqzHDniFNjdXg8YiMT90fZg0cHwwcuphLPjdQE=;
	h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc; b=BxCt/KnZaKWCxg8b10Q09aHMafkFUENOEln/hCj0CVeTRavbhwhlVK5X3JS/zCkpWA1NgUwBOzfFUNMuU5hUU/4SUUis4atpR8wY8cNJvHaS2duvhSi8TCfGA2i77vqHxnBV63PHMC4MzW6b7sMxeAz+6CfflWvjIxw2UJI/t9A=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XE8DO7r7; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83D181F000FF;
	Thu,  8 Oct 2026 18:40:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791484806;
	bh=TGkfYgnaT/9Bwsykl5EbmNC1O7Vtif2NAmiMXr+tD/A=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=XE8DO7r71MFF9qx4BSmcjeFuWYXn8rs5WVIZHMmoMzSW352c7sOaKggjR66kv//ou
	 HunBejoasz67e0sIVFD0FFEAe7x2M7NfxCDGVlvk+k8Dj2mSe3hI0xrQ8hJRDqo9TZ
	 D34OsAfKbPeFz5+y2UEsxzxd0gPWB6OjaKFVtzEe4CFHJueRgZBop+GZWyfMnhnQQV
	 OCn10cLK1if4Q+A7aigqrzf8pz4tucW+xBMGBXI0pBZd5dfVDvVwe9B/Egal8Kp0wP
	 pkhB8inoF6fIjRPhGYeTWa/vL1wfQfgesBJWD9BzGSmu2XZU6WfWqVEXbJ6yef6isu
	 1Cr3Z3RovBBUA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 7755C380CEC8;
	Thu,  8 Oct 2026 18:40:06 +0000 (UTC)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To:  <20261007-b4-skb-copy-csum-stale-bytes-v1-1-adbbde033fb3@toxicpanda.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, willemb@google.com, kaiyuanz@google.com,
 almasrymina@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 stable@vger.kernel.org