🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6905

Re: [PATCH net v2] tcp: reject devmem tx with fastopen and repair

#6905
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 19:30
31 lines
9182 bytes
Hello:

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

On Mon, 19 Oct 2026 17:45:22 +0000 you wrote:
> tcp_sendmsg_locked() enforces that devmem TX can only proceed if the
> zero-copy path is active and a valid dmabuf binding exists. However,
> subsequent branches in tcp_sendmsg_locked() can still intercept the
> message before it reaches the devmem zero-copy loop:
> 
> 1. TCP Fast Open (MSG_FASTOPEN or DEFER_CONNECT):
>    If TCP_FASTOPEN_CONNECT is set, the socket may have a valid dst with
>    NETIF_F_SG (so zc == MSG_ZEROCOPY and binding is present), but
>    tcp_sendmsg_fastopen() -> tcp_send_syn_data() will use
>    copy_page_from_iter() to byte-copy from the iterator. Since iov_base
>    represents dma-buf offsets rather than user virtual addresses, this
>    misinterprets offsets as user pointers and copies the caller's memory
>    at those addresses into the SYN packet.
> 
> [...]

Here is the summary with links:
  - [net,v2] tcp: reject devmem tx with fastopen and repair
    https://git.kernel.org/netdev/net/c/89b9db72918b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179278380806.1224496.471951523295951567.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-351195-linux-kernel-netdev=dewy.ru
References: <20261019174522.55644-1-kaifengw@google.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-351195-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] tcp: reject devmem tx with fastopen and repair
Date: Fri, 23 Oct 2026 19:30:08 +0000
Organization: Usenet Network
Message-ID: <179278380806.1224496.471951523295951567.git-patchwork-notify@kernel.org>
References: <20261019174522.55644-1-kaifengw@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="591767"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ebO4xZCrCtYqHHy17A914I7zkr8= sha256:+HUrumK0j5Za7O9pjsiAqYjrVMIY0SzTF6wDugook1c=
	sha1:2/Gosj/iJSHUjTiEWZ2g4r4y3vs= sha256:wa7fydFGlPTGVq1F+fChp7eN7e5scl5QKx/BYmV81uk=
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 53FB6111562; Fri, 23 Oct 2026 22:30:58 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 jezJatg38fUI;
	Fri, 23 Oct 2026 22:30:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351195-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 E299011152C; Fri, 23 Oct 2026 22:30:46 +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 0363C3A138; Fri, 23 Oct 2026 19:30:11 +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=1792783810;
	b=3jBM6fpionj6kzOpJEiJQYe/S8YmikPd7MjB4oIxveuHQyYgdNQtfmk8fJKQMN7BeUj0
	 89l2IHXs+NnzER5ulb1a9yM/aVxKLUnKMIae82GnfvJ09rHjsP/LtLyakkDgZdd0pgy6T
	 BLLA1K5z5iT/nnYQ83iR3BDwqi4c3hA3SjdCs9koByDSGxBeK3Y8SezsWE/ttP209qOQs
	 FD052hADnuyKbBfqAzPt9nudLKNsMNlCEE1Sdpq3HrSwhqjQiP3uvwNudTnN/9rTz3oUX
	 05lF4kdih249annLMT5fM9q0qSj+uphrWnkLyXGq4a2irIzi3yBh+jfhiPjZxnEp/Ig==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792783810;
	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=xfAgGsJ3OaY47WCXXcuFVA22hrvV+xSABATmtH7f0Ew=;
	b=SelLHq+QrhWH1kz9bTGgTeJKXH7KySwok24x6/r0YmZcnpXViCMM2ABZrQ4Ljk/YEys2
	 PQX2zTLwmNDWA8FiCSEpqjs3qf7aNBvk9BbFvfoei88DBn7TydWvVnAn4DyWUx31bNbHr
	 yKgznNZNbrmTn4UcYVCDmt2pZZzK9ZwzpTOwfhJZ9J/I46iCF+F89MvGrh1CYoGfSQ5fy
	 x3/EQhBxNOgG4AGzaK7HGodwsHCO6zMMdDKfvaMz45OgN8osMAHWyOZY4rDhXEPbekyPm
	 IwOtRS25imvBxmhLlt1ulGBxNaR5TZrYWiuaWVLF6NahQeliO6tS/BgHm4grYXIRrOQ==
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=YT4Don7O;
	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 CE6F9606A326;
	Fri, 23 Oct 2026 19:30:10 +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=YT4Don7O
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=1792783810;
	b=G2nSjSBC/G+xRvAYUmL7BUqVfuhLD0cVm9O3DGTZM97MDLSXiYf9jU50nuoe4dVpx2gj
	 siBwL0DVSoBL3q9HRJDJkf716yNQxBJgq5BHfEb4w2PUOvbRIlQwagyYa4Mm3lemrNWt6
	 xMgOfbAouOo62APa8q58vvZLISdVrW8ikiVdo4UXy4n7AJVZe3vtikPB7PdhJxMM/Ylbh
	 I4jw55J16ZYFms7oxzX8hsfc7rkjeBwe8rlxB3lAN6U1CxyvOkPzbJGVCI4Jhgp4ZQqCL
	 S/RQZDrpFOKiRNGLjkFC3No/p9ZsskZdq19NBDB3AOJyz9tAts24KmLJsHLTCOqVlSg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792783810;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=xfAgGsJ3OaY47WCXXcuFVA22hrvV+xSABATmtH7f0Ew=;
	b=jBcwphY/mh7f9GNDDfNRuiplYlPHfl2vuw5/e4b+6ao2EGjTg0SMN5d5qCd0x9qoT0t5
	 U4DxD8hDWI+oxdfgKOoXPDhOVHPqbu5FL2bjEQViwwV+yfrPEdRqhHkZCzBy8pfwoKJoC
	 8ctDmjW+aqunHiYpaMn4cgxnabjqPJFcjlO3pvqqDxZ/VPIhZ/pN9iG5BlS6uZLS5nvDh
	 3A+HgqNwWqvzLe1s8cv4nk24ut0XbPRGcXNqBQtMvHpkkPHfBOvNTl5psX5/AN0wQgZl9
	 gMoaEGNfuNgDEIoMJ2b1T4bXc/zDCMhXqZZtf26sTT35ykH6nhcb5aumHSiKyTsNhGA==
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=YT4Don7O;
	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))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2AC6606A31A;
	Fri, 23 Oct 2026 19:30:09 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BE8E1F01825;
	Fri, 23 Oct 2026 19:30:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792783809;
	bh=xfAgGsJ3OaY47WCXXcuFVA22hrvV+xSABATmtH7f0Ew=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=YT4Don7Of+/HnGWk3I3/YtHXYq44iny+ZRUExoAJ/4Gn0ghc/cjiKGNVx/hyEaWyo
	 mQxWB1/0+6yraG9F5TVjUu1xJpJ9KJXADB741V7RWIr3KHHA14b2qM4Hf0DwLfSlTO
	 MtQn6XxFZ3Lrluyu4rfjkXQaXSOdi004xyN5u1f0dilnXQ/VEziAB6vLkWJ+68Iufm
	 PjsENHvAQ/Wl9y4Fok/4PW1cToUoTw6VvhD1aYen3G10KKG1UU4rLA8v8GbIqigE9g
	 g3b8qBra9f7SiGBQj/7/4h0c0uacK1oZRuDCs8gmmjzvZBVaW/Fgn/Qwl/8VMJCzZh
	 JHicCWla7Wizg==
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 81569391B14F;
	Fri, 23 Oct 2026 19:30:09 +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: <20261019174522.55644-1-kaifengw@google.com>
X-Cc: netdev@vger.kernel.org, edumazet@google.com, ncardwell@google.com,
 kuniyu@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
 horms@kernel.org, asml.silence@gmail.com, almasrymina@google.com,
 willemb@google.com, kaiyuanz@google.com, sdf@fomichev.me,
 linux-kernel@vger.kernel.org