🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20300

Re: [PATCH net] net: initialize sk_peer_lock in cloned sockets

#20300
From: patchwork-bot+netdevbpf
Date: Sat, 21 Nov 2026 23:44
28 lines
8838 bytes
Hello:

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

On Wed, 18 Nov 2026 18:17:52 +0800 you wrote:
> sock_copy() clones a struct sock with two memcpys that both include
> sk_peer_lock.  sk_clone() re-initializes sk_lock, but nothing resets
> sk_peer_lock, so a clone created while the parent's sk_peer_lock is held
> inherits the lock in the locked state.
> 
> The first getsockopt(SO_PEERCRED) on such a child spins forever in
> queued_spin_lock_slowpath().  spin_lock() disables preemption, so the
> task never schedules and its CPU stops reporting quiescent states; RCU
> grace periods then stop and callers of synchronize_rcu(), such as
> expand_files() from accept(), hang.
> 
> [...]

Here is the summary with links:
  - [net] net: initialize sk_peer_lock in cloned sockets
    https://git.kernel.org/netdev/net/c/ff73a2bb558f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179530466152.1212208.3098530208274110712.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368534-linux-kernel-netdev=dewy.ru
References: <20261118101752.1989502-1-bsdhenrymartin@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368534-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: initialize sk_peer_lock in cloned sockets
Date: Sat, 21 Nov 2026 23:44:21 +0000
Organization: Usenet Network
Message-ID: <179530466152.1212208.3098530208274110712.git-patchwork-notify@kernel.org>
References: <20261118101752.1989502-1-bsdhenrymartin@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3524412"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:isXykqGca+zYo+HACgcFHBiDU90= sha256:EzonN0y9Hz2irLOlAWWIlZJp7yCUODH2rUdcNjd6XLU=
	sha1:2ZRroe4GeevFO10a5N3UNGlwIpE= sha256:9Ehll+RJF6abklC1PUJWrWCSBFLSBNgvstUdUIJvxWk=
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 BFF39115C44; Sun, 22 Nov 2026 02:44:50 +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 17E1q2HHpUIZ;
	Sun, 22 Nov 2026 02:44:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-368534-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 D1172115BD8; Sun, 22 Nov 2026 02:44:33 +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 D56116081AF; Sat, 21 Nov 2026 23:44:32 +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=1795304669;
	b=okGkSd6aWvZTRskbrrrJniGWskwfHDo2gBXJDyW6Y/8LAeNIHgMHoZI14+byXjw72J+/
	 DJcnmvcrASb9ykXJrTaI/y/F44Q0Kj3mETVvUPmabMAMwot7bbzW1ZYAa2XlkRKjN3HPd
	 VjA8/gksiOd/T2JrfVoi2OJLNdidrPQ/w4/etkuRn/vdmVOxEsibUkowy9K8vaKhB7c4p
	 xmkR1DL2m4NyadvUfpr2xKZniIqQjh9FZpI1INPqU9ht9qPEaSR6gKw1jH+foEGsw4ihb
	 u+85wI8VNxQr/H/PjUNAorXPt0muhVuN1DVMWZJBf07FcOQz9Sh24Ry5jb8TrBKB18w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795304669;
	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=bJv2CRi9uextI7SDskU+t+k/eig77lL331lPw8tX8+Y=;
	b=i/NQ1dMIVcvDu1YZU5sp43QhLIJR1VzeWDuKSgGn/mj4AVWBg4NkaSlzwVv5le29+O/9
	 yYU86bAGp6vlQNqL1/xi9sOUihtRre6UGykcZccvNy+ZeWkPukyluYPvNiOYTXK2pGTsw
	 Bwo6E0LmXKLIBQ+AfzB0hePUBU8KHp4DAdaBrgba8g/84BgBVyuyZdEFzEClnFs8qL5ke
	 CpoGxkly0AY4CzBBunU6vXkhs8WiCydima81By6qvnThMu4J1e9ckSEHiuzUVhDIHAZ6e
	 XqFx3nYXNctdAFD7QJIwvWBb4xrYs10h/gjuDys28rCqqtue/iR6huDtKiqCVyvcbdw==
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=Nbv8iWP4;
	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 0D14B606A6AD;
	Sat, 21 Nov 2026 23:44:29 +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=Nbv8iWP4
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=1795304663;
	b=D/GdYpAkxhPtEMyukeRj9FslQdvXxerowKdj/VtkYl5qWIoE680kwFYufMFlLe8by1XI
	 CWvraoOSSJPc06QUN0eIcggQOULSeh25TBLUA6+Y0wXUVHaoUWvPnEezWYhVrEoHf3Imt
	 TFpTa1pov+d+JxKKJXgMpfu2rqdwAhdOg9Kqyej9Ga6qz075lbfD9dFrtImZoc419itmh
	 93aWhp8NCUhgLnGci12oY1itA9GSpzJvu7GlzOqZvkpNr9LL/k1HrKyL7T8rUiaAsL4eN
	 NLEYhOgjE+3wGr/S8BKzyEpWy7MNawBbahGaT90tURTRDxd9qY5fJPkOZo4dnn6xYPQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795304663;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=bJv2CRi9uextI7SDskU+t+k/eig77lL331lPw8tX8+Y=;
	b=1I3KWwQWdCh7ROlJto9K8dAM/vlPDu81zRoQPtCMPjpdD2NTPqT57ci8vxn3LPKEa9iL
	 oZLNSAdlSF597cXpSV07IM+IDpMbWf2L5g8OtwdD+vY/6SWsqwfKmmGgis1Cm81DOrbqA
	 flKkq9Hhd89sPWihm0vWrrLGWLavUz+IijXZE5yjrhzTong1HtFXD4lvYAmzWPXmAXB/Q
	 y6wGJLj87zH40cTPRqphHZez6vPXqvWO/DNHpfzq5Xk9cV3wkdmpZ8a8FiBU0ZDV/Lkix
	 2G9o8kTxdNa9RBEZL0ac99P9YZSFcouftaN9QALrzl4ylMdwI9ADzrLDc/D7+hSFrPw==
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=Nbv8iWP4;
	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 2C8E4606A337;
	Sat, 21 Nov 2026 23:44:23 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 084531F000C0;
	Sat, 21 Nov 2026 23:44:23 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795304663;
	bh=bJv2CRi9uextI7SDskU+t+k/eig77lL331lPw8tX8+Y=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Nbv8iWP4eDIu7oYO4iAVCFUX/wOcOenIU8cUMWaTZezQZRRNPcPIirGaJpfk6OPjy
	 aXhzmCYIb/kMAmBKmYcD/pOqlMBSy08l73X80CpSw37mOVbsHuYhZOSoKq/sOiqhec
	 BHBYH7ahS5CwjhYrYr//gdhwPXbzlnsAoOPuYdAf04fDmYfmDsZG111IiFoK7Fn0Y5
	 y9F5ocZ5JHYkzjf2o7sqXGJiicrr6r+DkEW4nv8QA3HvSjyS/xsQVfsuS+V/vO4Cb7
	 8Jrmt0dp8gVz7QVpl+MF9bPFj9oHZ6Muo9pcJDFH2/ulB0+o7Gw9q8PZ0NM6Ol2320
	 KEwOKiE2HTJKw==
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 F15AF391B08F;
	Sat, 21 Nov 2026 23:44:22 +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: <20261118101752.1989502-1-bsdhenrymartin@gmail.com>
X-Cc: edumazet@kernel.org, kuniyu@google.com, pabeni@redhat.com,
 willemb@google.com, davem@davemloft.net, kuba@kernel.org, horms@kernel.org,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org