🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15362

Re: [PATCH net v2] tcp: fix request_sock use-after-free during Fast Open accept()

#15362
From: patchwork-bot+netdevbpf
Date: Thu, 12 Nov 2026 19:00
27 lines
8833 bytes
Hello:

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

On Wed, 11 Nov 2026 15:24:03 +0900 you wrote:
> Commit e3d95ad7da4f ("inet: avoid fastopen lock for regular accept()")
> made inet_csk_accept() check tfo_listener before taking fastopenq.lock
> to avoid taking the lock for connections that did not use Fast Open.
> 
> reqsk_fastopen_remove() clears tfo_listener while holding fastopenq.lock,
> then reads req->sk. If inet_csk_accept() concurrently observes
> tfo_listener after it has been cleared, it skips fastopenq.lock and
> drops the last reference to the request_sock. This can free the
> request_sock while reqsk_fastopen_remove() is still using it.
> 
> [...]

Here is the summary with links:
  - [net,v2] tcp: fix request_sock use-after-free during Fast Open accept()
    https://git.kernel.org/netdev/net/c/62754aad50d0

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179451001045.594620.10862327534856393811.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362142-linux-kernel-netdev=dewy.ru
References: <avQKA_YTAThtbsYU@v4bel>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362142-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] tcp: fix request_sock use-after-free during Fast
 Open
 accept()
Date: Thu, 12 Nov 2026 19:00:10 +0000
Organization: Usenet Network
Message-ID: <179451001045.594620.10862327534856393811.git-patchwork-notify@kernel.org>
References: <avQKA_YTAThtbsYU@v4bel>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1158873"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:97Iat0iRcbVTcrO6asyJcNMQrYc= sha256:MwCpXnrOR2P1Rxec6PpGIOcvYVKv3ZkQPyYvcZp9Ew8=
	sha1:wWttRaqTnoAGLK3AMS2F4LL8Cog= sha256:X2nS3jbDjKob1Mdoh+p65xSe4+20t9+wjE1Hn1CKB78=
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 20927114362; Thu, 12 Nov 2026 22:26:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, 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 Y9RcFGDAkcEJ;
	Thu, 12 Nov 2026 22:25:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-362142-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 064A611405D; Thu, 12 Nov 2026 22:25:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id D2F4B628803; Thu, 12 Nov 2026 19:02:07 +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=1794510013;
	b=vmRBU5hRy9JrEvykne8sQycAxsbbL/SkwZSCv+EB7IRfBeVWbuNuSmwJyIneI30xsXiZ
	 CsiGMyQfxyOpEx9YgrNEKRHB2Hj6xcnqJ9Dq90Gb1oOAugnx1mu/PVhCKvTKTBXPKSUlR
	 Cd5e8bY4tq7syIWN1DzdU9Xw14Q7AnwaSVKFOxdrj1XOvz89DcO/wyQnIsPrR001bxVm3
	 wjNbmpQBORrKaQuOHJO5Wg4TcwUjCMMEWAH5MHUAo0KEwk/Dx68nwcfmNFESap2NrHWlf
	 tG2s0LclfLzBW9EH6uqyfWYTHEc4uBtb3ScCG1vZr2nYXw5PzL1EqkijEzA/59Yzw+w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794510013;
	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=nU1s4hPKfhK1wmrH5ikzcYoaNf00CXdascWgsQAj/nQ=;
	b=1NeVVQRFsg21fjWfaehh9L+uwJgLwma1IOeDN4t13vhZs2qTXOSxDdooMdwzOmu3ixDk
	 PHt45qSMy8Z+pFwSS9sWaBzUABjmq3osZTSe1HGlmpAsyohCLyUFR5Nzk1usTIQVqe55x
	 EZuF9Qwn0ha9Jhi81RESu4vbqNU2BXGDBNzHDiaO+U18TFGwjdekjfha9GXpTOgeDGmmL
	 uH1pkGj/RrBWqb3uyOn6aJLeSeBJn487MTycMbW+Bn//6Lmk65Z74VcWGYPizFKW645Sl
	 HzWcvC+f9b/NIhSDOYvCTTyMw3J81QRiH+G/6WsgwoR5ToscrzOGFKdMr2MqGhXkYQA==
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="F/dRi0T8";
	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 6898260A5BFD;
	Thu, 12 Nov 2026 19:00:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F/dRi0T8
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=1794510012;
	b=w61sq7GU8Vyod/7PKn7YWipARAPy8fnx0YekQcnE1TjMmTayS+w+RfYGaHc8NGzkm6E0
	 3vxkKso9LWQeIDh1K3ue2iiPQhVxAD6VM4cEa5uex2Xz7M50PIOXZngN9a04SGipQM25+
	 +J/DP/nXwxp1y+a4ruOENTy60Y3Hy+zJ3Z/dKtBVTYoFDFPDMvd6M3vhgqUdxK4gPli0r
	 hqX0g8qEfRwiM4dRe0NPNFLzB5upds4NqakO5fRFF7HUrhXOn/M0Y2EB/jZDEqWOcMH2P
	 zmfdANL+YLF/ubUxJy1iC603D/HcUSxxPPnd70kU1uIlwivKuu6D68JtYnmX+qne//A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794510012;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=nU1s4hPKfhK1wmrH5ikzcYoaNf00CXdascWgsQAj/nQ=;
	b=dIeqtUlak2DDKKSzyYrsqqBaSIJO84CBPBfjBhT4jYGRriGjgDqe5ehvfhQVQkcuJpz8
	 h+cEHAW+r3tAE3dMsvyGEqWsN0f9ChQXOHv7TdGdBVsmilRWm9GxsbXH/IVSe+o8e8zAJ
	 jmtwGCHK3CFVlULiCq1SZB3xeBQ/o9Cjp87jpJlYBAkGcdIZtVW0NSFSAnXL+PSqfgzki
	 xRVrQafdm/Rr9HFM9J4E0y5I4tyLcE5M68NT+EHl+XhNXJT3u6wcFEqBOSOqgbyn4T1KP
	 OPwWlh3CZ02vzOp9EOj37b1N03XLQnUNbA8ryZSLX8/Onpl71esURYS8mLwlRgc4r+w==
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="F/dRi0T8";
	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 882CA60A5BE2
	for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 19:00:12 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03D1A1F000C4;
	Thu, 12 Nov 2026 19:00:12 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794510012;
	bh=nU1s4hPKfhK1wmrH5ikzcYoaNf00CXdascWgsQAj/nQ=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=F/dRi0T8IXe8qJbMSRzpgRT1PPEuTUT9z+JnBeQbXRzquR1P2uoZ2YozPVqxvth9v
	 Igy2ymUbQSZ3dm2y9XpeJUaOjNOKzZXuas/l+xduQGROy1g74mfNDJfxkkw2Vh3iSE
	 u6hJzMgM4DCVAiGRIFEYu0QDu0d0Jqm0+/5Lof9r9R0I4+FKgktOIx3NVS2dMtro9X
	 YZj9dFQm7aIndLEQRf8PLRdcdvP53uDqZ9mTbOXUXdIb92OTA0+pxzeHZSu7fCjhrf
	 MYHSm13VOB4wErcSzdGP/0X9ZgtyBlo7gIOgEnlb3w8VrW8vhDHLqkJvOnbpEdZVyd
	 udzMF2t5H1y+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 E72CE3924A5F;
	Thu, 12 Nov 2026 19:00:11 +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: <avQKA_YTAThtbsYU@v4bel>
X-Cc: edumazet@kernel.org, ncardwell@google.com, kuniyu@google.com,
 davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 netdev@vger.kernel.org