🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14836

Re: [PATCH,net-next,v2] af_unix: Fix wrong socket tested in the symmetric half of unix_state_lock_cmp_fn().

#14836
From: patchwork-bot+netdevbpf
Date: Thu, 12 Nov 2026 02:00
24 lines
8715 bytes
Hello:

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

On Mon, 9 Nov 2026 17:20:16 +0800 you wrote:
> From: Li RongQing <lirongqing@baidu.com>
> 
> The second half of unix_state_lock_cmp_fn() mirrors the first with a and b
> swapped, but it tests b->sk.sk_state again.  Since b is already known to be
> TCP_LISTEN, the switch only hits default and always returns 0 ("no order
> known") instead of 1.  Test a's state instead, as the first half does.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] af_unix: Fix wrong socket tested in the symmetric half of unix_state_lock_cmp_fn().
    https://git.kernel.org/netdev/net-next/c/96750c67eda8

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179444880494.1768068.16134554554597594383.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361444-linux-kernel-netdev=dewy.ru
References: <20261109092016.2082-1-lirongqing@baidu.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361444-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH,net-next,v2] af_unix: Fix wrong socket tested in the
 symmetric
 half of unix_state_lock_cmp_fn().
Date: Thu, 12 Nov 2026 02:00:04 +0000
Organization: Usenet Network
Message-ID: <179444880494.1768068.16134554554597594383.git-patchwork-notify@kernel.org>
References: <20261109092016.2082-1-lirongqing@baidu.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="987208"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MIGb0maOdHDmkGXuxjNlIMno9P8= sha256:wJo+DJ3aFOrkDH64IU9unuFb6td4Zn4w1FU2p+lRaPc=
	sha1:xvZAeyhNjf3h/ToKFskzpiQejJQ= sha256:eU9ol/b4Ws2ub05vh62WjO3pvrdMLtgvrJtaVFJMIjA=
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 18A911140C6; Thu, 12 Nov 2026 05:08:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 pwNiTmLqM5Ub;
	Thu, 12 Nov 2026 05:08:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361444-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 3DDD21140C1; Thu, 12 Nov 2026 05:08:05 +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 82C84E8103; Thu, 12 Nov 2026 02:00:35 +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=1794448812;
	b=hxFT+E5SbYljAbtCRC6RaaYhCshbXFcfAoWOzmNg080QYPOPY9a2Tz6NKGUkqG2xkSSS
	 Ne28vJvwxIuXZAnaKre9YywmlviEjsd8od9r0Dh73vRcsFNyhWWHo80e9dcf/SqUKwkY9
	 8l6+zQBd92+rLKJ0ABsZjCQBeA6heOTAf9DCu7JXRFdTSVD3YxjnlABmQx52WIunEJZSD
	 VnsoZ7GRwJcweHEhkCNZYkQQRuK5dMrs6nk8nVm7Uq6CBNrdrhPbYdmNIumOilZHKUhGN
	 BBIP4kBosATtjL8b/4Evk+6p0/DryQ1Vy0EFd3c525ELrkY1Qm9r85blEiU5rbT82tw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794448812;
	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=CrFEoxXRWmp4QQvsClKG/2hu9QeByJV/faRb/ux4aRs=;
	b=yGhGTkvQ5pCbJlAtHeTwT35J/i6SiaTctkFODoBMg0JjUH/uWeg+TKJuL/BZRJSOktYo
	 Q1XeOakNc6r9mAQFaFYMMJhACt94892Yk+5Hb9YkMnim/ajjFXSG0A3Dis963bn86ugiX
	 fVW1kn+CyCucmXMLl4y8E6mx3rSow1jS4GdRQTQxPpsF1QeZkSmCOgh8MaWpqk8yPAdh7
	 6ZqN274bVK9FwSpcfvm3wGIPp0A1uPS9UK2QuRV84t/a1b81s2EHUMFeY4wewHljvvzNY
	 4/MwcRWeN/e5o4koD3RxjOZRLu64bW2pTMMiEsCgrnVrlTxVPXdKVT9b/yxDkFEz77Q==
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=OGtTVj90;
	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 BE432606A8A2;
	Thu, 12 Nov 2026 02:00:12 +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=OGtTVj90
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=1794448806;
	b=GLqbMEvjirB1nkIjKrJUQd67bPeTXjvQ2GTQr9oClJOzWPbB2LQde5mY2+JuFWFF+Ft3
	 d2agK6ODIho9gB1VjdFFuRsIWlOYdmyjh6OOb4PqWm8DBO8G5i7XIm3B5soHUbtQxHa2p
	 PI13EOv6XbrZx+uRzoSQzdu2aO5nIlPaVyN2iv+z7D23NrSAP51Z8P7lOXBYWDfz8xM7x
	 rVopy7j+L2uHUn0FQa36yjvKxvFgcnvwrYR0LUp7k9r2nAnGZFMxiJ9NhmRhokUkiw0uR
	 LCnsu45aIOHo4e0SA8czll8YZRiM8QDYVTki4yTZrrC/3fZppMemODbp6MYNEH1pzEA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794448806;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=CrFEoxXRWmp4QQvsClKG/2hu9QeByJV/faRb/ux4aRs=;
	b=sc+j5fX9GBxvqauveT1OXNFbZ8lDMEMPHEuXAstAaMz/ieyLnJoGsLwYPjrvPZQE447d
	 XYFTsjZAghB3HKHv742GNT87Bmjwrgys3pvSPdPcm4YB2u8tMcs04KSoHCHqlzPeSWOp9
	 VWKqhWr0mmWiBEzvqntkHQJBmcI/DrPWjib3Uu0QiYreVkzLy/ESc7s/RRiF8TF7w9MKG
	 CYPzwSYsMckXV6y+ACYHOR5bdma8TvyA2mcInxwwgS5ecTaJ00m0uw7ac6osSjplpUntt
	 /OMcQ+tvIC8u1sPQ4B5iBCBF6/OKQosWGUWcRL4hykDgVSq95rzJijrKVir9DL5kEMA==
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=OGtTVj90;
	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 D7C0C606A31C;
	Thu, 12 Nov 2026 02:00:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C8F71F00A05;
	Thu, 12 Nov 2026 02:00:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794448806;
	bh=CrFEoxXRWmp4QQvsClKG/2hu9QeByJV/faRb/ux4aRs=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=OGtTVj90eBjPUVgoWLZ8MyrGJ+ALXKTWj5onhkLzEuiBBMcDRO+07MWuHHSqCJV3Z
	 y+phMlBXgsoWv6QAo1i/jUwisqLD6eM/8qXW94XRG/kwMyo9QDxUe70C0lcJZSgmA+
	 LnOMjcdAf/1MA+oo7AR6FdLtodliy2lKrNfgMANY0hc60k8rGsml7YI1fs6O6Yn3QU
	 qGrTDbwFvdGzGsd5LXgcwImH/wfZtVibfJW/dVZJTRl9jKqrpu6udWAJdfuRimFog1
	 DPtTZG5qOe7F4nZ8x7K0WLCH0PNTub12enaqfc+mwsPuoi91PfIOhVRDt+Fgf2NHh/
	 4m8bpm60Px0QQ==
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 5E0EF391AFD2;
	Thu, 12 Nov 2026 02:00: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: <20261109092016.2082-1-lirongqing@baidu.com>
X-Cc: kuniyu@google.com, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org