🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5796

Re: [PATCH net] net/smc: queue the copied chunk when smc_tx_sendmsg() faults

#5796
From: patchwork-bot+netdevbpf
Date: Wed, 21 Oct 2026 00:30
27 lines
9086 bytes
Hello:

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

On Tue, 13 Oct 2026 15:45:01 -0500 you wrote:
> From: Bryam Vargas <hexlabsecurity@proton.me>
> 
> When a send wraps the end of the send buffer, smc_tx_sendmsg() copies
> the data in two chunks. If memcpy_from_msg() faults on the second one,
> smc_tx_sendmsg() returns send_done, which already counts the first
> chunk, but leaves tx_curs_prep and sndbuf_space as they were. send()
> reports bytes the peer never receives, and the next send() overwrites
> them. Any caller can hit this on its own stream with a buffer whose
> tail is unreadable.
> 
> [...]

Here is the summary with links:
  - [net] net/smc: queue the copied chunk when smc_tx_sendmsg() faults
    https://git.kernel.org/netdev/net/c/c0703534b223

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179254260529.285569.7327576902059914467.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-349664-linux-kernel-netdev=dewy.ru
References: <20261013-b4-disp-872a3689-v1-1-2a4c63b04761@proton.me>

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-349664-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/smc: queue the copied chunk when smc_tx_sendmsg()
 faults
Date: Wed, 21 Oct 2026 00:30:05 +0000
Organization: Usenet Network
Message-ID: <179254260529.285569.7327576902059914467.git-patchwork-notify@kernel.org>
References: <20261013-b4-disp-872a3689-v1-1-2a4c63b04761@proton.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4003540"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tHz8UHork/7odVjsVH81NIdlh6A= sha256:cJH0N/RDYnPd7/YgJAb3Bv6nEi6vPM3hf1rvOF9FTBw=
	sha1:BEju6jZKT49FHTHOECNbUir2hc4= sha256:GwLBWC1IR1TKRa1YxvnPzMoylj8T+9FBemJK5/8Milk=
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 8AB36110EB5; Wed, 21 Oct 2026 03:31:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, 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 FS-R1MvFRXQH;
	Wed, 21 Oct 2026 03:31:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349664-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3745B110E87; Wed, 21 Oct 2026 03:30:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4F0B13706B; Wed, 21 Oct 2026 00:30:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792542623;
	b=SmrdXM8JloG+dYB165bR0iZKCV4j5ii5S35tskFwpN7A3Pz5jzZzU1tTEKTuiTCuqgTt
	 giQCCdJz5P8dZ88LoTYB8OqdYnqFsL9S/20VoAUY5BJUJxigWZ7oWLCnewzGqF4wBag02
	 4M84ZV8wR19hsMf6ZAkEy8a3vqOlJ0R6kPfRzYvUqLqW1blZnBG0JeFhNFoHETUKVOaaa
	 TRo7APSXAdSpGVDhmaSOarb3AnZn+azADtTP6AbxwOvPtmKqql0TVwMsR3vOiJ8rY7ATf
	 IlUooM7Dq7dCguYBTD7t5e8LTZOtjjIn4WpSmtNQbiXJNAzXL0qMjGI5In72xnkl62g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792542623;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=LKjCAiH5qiP3wJKkZahsAhQ/3u7L0s1+MefSYyAuKeA=;
	b=X+NWB19My3g1bS5y6P4eSXIaU5f+2wBUsFECkD5f92I/1We82A2+7PjbG0wokxY+rAtJ
	 65kxYwJtvjSJaszafKo0MLt3QSWd3b20/QAg3X1gaaiCH7tfveTn0cZdz+eRxVW/d0wAU
	 RmXrC0sMQI9XzhOTiTUxDY2bVBowUBcEDYCgpxT3QIEqfgQlZzmF2tVNqV5Qilu2ZKcfz
	 yiWG6P0nGeSLrW8XG7/lbk/APSPPlohkQf44/9UEakjG0sH4AtPcPh/hM+UI797uU1b+3
	 UZzQOZF7cxuY32PHVPrD2eWuSqtgjmt3PlIcGSpkta5gEck9hyWaqi4tIAykpsSD5Pw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aW1VVzET;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 24435606A31B;
	Wed, 21 Oct 2026 00:30:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aW1VVzET
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792542607;
	b=Ty5c9KmOUK1xhbPRBiy88qgVL4lFYD041qortwbMnRVGCX09GZUy6W1ll8prdMSjrDmB
	 is782XTO4/WXRvmyzGBuUuSzhbB8yawM6chvJOtl/1eNCQ+rk/+A3rhVwGM67FjQiwH7p
	 7QXvrJgJojggRBor6rPJ2z+FzW9otBD6Qd38q1vCD6HC5cYlHiauLMkm/qXv+cGXWdZc+
	 ZEIhL0pNTnYK0aaANshXcdHbp8OTGX1KeOuSPuFDDEfSMW7CfE799aadErMPwG+epZZt4
	 nbEA5TgFPD9HLO4nO0BzSXWU0F0Gu18QcwMw5zD33QX/3UozkKmlg4LdCstHuFL/NLA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792542607;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=LKjCAiH5qiP3wJKkZahsAhQ/3u7L0s1+MefSYyAuKeA=;
	b=TsE7mghCUlr5zKmxjG/HDEFh82Y3NV28tfMPOOnDOzt1AfZg6Or1M5VCETEiGzEkkBtu
	 3TrOjInrBGQDE0EDqVu7QONndkkEGbmWyWOk9T9VmgaoZivmMW16xw32nQB7lAHGpjaFb
	 KXfIWp0O90Uw9CPavJaZG7w7RATzmLcnzx/V+U2FLNM1/3x0DGN7loxJUJ2w/tPPhEyKK
	 LQv6Zs8Y797HcYsxbCSVnvRK5O1sJjym0TI3RmkFQKA+isPnz07/7XNBbV7FdW04mvySU
	 2DYuuyLTN0EBnkSgJR/nXVsS1UJygRukz+cWEfReF8ptLfGitJBx8DI1WM6dxJpiD+Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aW1VVzET;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED297606A31C;
	Wed, 21 Oct 2026 00:30:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 824AA1F000C9;
	Wed, 21 Oct 2026 00:30:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792542606;
	bh=LKjCAiH5qiP3wJKkZahsAhQ/3u7L0s1+MefSYyAuKeA=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=aW1VVzETW4tqKrP8ybUBa9+EpBv5C689mcPLyhd13+KDZPyPrJaWhmeC9HYkRICMv
	 GYRXOprxcJu0pRVgMCgfunWxAkTy42dhzBIa+Gq7JiKEdDWGSndJEMWo2hKuWD5pjH
	 GkLoK+LBJLyp4vYQf1BmbxGDtH/XE8K3Y9kYJuIMf4bEmpt2Ikn837lqA4CT4dQ8/d
	 xlFZ0iEmcHpDKTJWFQvhL4rT9oXO0EWVU0qFbFE5Lxwvo8ZedChd9MPFf4Nqlj/R2I
	 UrCQaBjyN9gwc0S1C/EFr0a7noe8C382sCfbVkN6Sw1FNrw2AWtkmZmS9Nb4vYF304
	 pF7Qg2Q434H+A==
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 773883809A0C;
	Wed, 21 Oct 2026 00:30:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261013-b4-disp-872a3689-v1-1-2a4c63b04761@proton.me>
X-Cc: kuba@kernel.org, dust.li@linux.alibaba.com, pabeni@redhat.com,
 edumazet@kernel.org, mjambigi@linux.ibm.com, davem@davemloft.net,
 sidraya@linux.ibm.com, alibuda@linux.alibaba.com, netdev@vger.kernel.org,
 ubraun@linux.ibm.com, linux-s390@vger.kernel.org, guwen@linux.alibaba.com,
 horms@kernel.org, linux-rdma@vger.kernel.org, hidayath@linux.ibm.com,
 tonylu@linux.alibaba.com, linux-kernel@vger.kernel.org, wenjia@linux.ibm.com