🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10828

Re: [PATCH] nfc: llcp: put the socket reference on a refused connection

#10828
From: Krzysztof Kozlowski
Date: Wed, 04 Nov 2026 07:11
59 lines
10083 bytes
On Wed, 04 Nov 2026 02:28:11 +0000, Wentao Liang wrote:
> nfc_llcp_recv_connect() finds the listening socket with
> nfc_llcp_sock_get(), which takes a socket reference.  A socket that has
> been bound but not yet put into listen state is also linked into
> local->sockets with dsap set to LLCP_SAP_SDP, so the lookup can return
> it.  In that case the state check fails and the function jumps to fail,
> which only sends a DM; the reference taken by the lookup is never
> dropped.
> 
> Put the reference before jumping to fail on that path.
> 
> Fixes: a69f32af86e3 ("NFC: Socket linked list")
> Cc: stable@vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
> ---
>  net/nfc/llcp_core.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 

Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.

2. You use multiple identities with this email address, thus I doubt that we
   speak with an actual person.

3. Your bot does not even bother running checkpatch, right?

4. Nothing of this was reproduced nor tested.

5. Finally, the same feedback:
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.

More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.

This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down.  Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.

Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.

Best regards,
Krzysztof
Technical Details
Message-ID: <20261104-colossal-witty-gerbil-1caad4@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356242-linux-kernel-netdev=dewy.ru
References: <20261104022811.1484216-1-vulab@iscas.ac.cn>

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-356242-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] nfc: llcp: put the socket reference on a refused
 connection
Date: Wed, 4 Nov 2026 08:11:44 +0100
Organization: Usenet Network
Message-ID: <20261104-colossal-witty-gerbil-1caad4@quoll>
References: <20261104022811.1484216-1-vulab@iscas.ac.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3345652"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1BU9pL+UiWwTBx213ITUEwOuwkA= sha256:eWAp1YDBcDjFn/OQGrfAp5+R5UHPjPG4vvXsPTDqr4s=
	sha1:nKioL0GYkn1c/RkPj4xe0Kjr5iM= sha256:m77nEWOy8rFcZyXJqz8X32WBcS7cl91ytBp+jhVE3N0=
Content-Disposition: inline
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 2F0AE112B13; Wed,  4 Nov 2026 10:17:43 +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 3hIwoxLC75zb;
	Wed,  4 Nov 2026 10:17:41 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-356242-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 A3077112B0D; Wed,  4 Nov 2026 10:17:32 +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 BBFC42F3D6; Wed,  4 Nov 2026 07:11:53 +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=1793776308;
	b=K+J1a8ILsUz22KvY//uks7zT+CObWV872v8XD9fVUNQAZ3lsjtHzUaDhFk6y4tRqFMNb
	 ywY3cNk1qZ3labDtUMJHn0b42MlC09m1ipi7pdF9pJOFjSjIhk4w3lFCaEQNi33VKAoB8
	 llbGHBV8oKQxUyZdcJ9TQMVVEjJA7rQ+khX2xf82+DKAfh/ZmEX+7gwE+1rMTL9eXWo1F
	 lmYanjV8KFQOTJADRwcwJXwQ2Dz/+MyvXRUYuysIbdSTfAU7zBpoTbD+MLl7ys7S3FlBG
	 W7c+D/SkJAYmXX4O6bswW43rH3ChtahIfvS2/nnM7FeEelEm+lx6vosv1kDRjeCeHFw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793776308;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=BhyrL+gZPz2pormGcY9bduMW+6XwjaguNMO4upbxytE=;
	b=Fw9IwxOHnnoAxIA8n2Dw5uc+R560IjOU+3WPVyoCMVII0Kuj5QC88FbV3Bwhl+kEauXd
	 fA2vqfR3/nIVmzD3CmcF1NSuuh1rknMMEzY94mLwpMbr49PIVAaE5thhwH8zKaSaz3LME
	 Y2Cb8amKFh0IvzOSScmAvjGDuiorWqqXDpdhNSA0DwQI6r14VVcC+FLlO1CSQnFY5UjXK
	 F992qY7pkApGjzn/D4+FADgSlWN8ByQAffE30QspAx/OkKAD40nPDWSkczT/WWZGs73BN
	 2oKOblN/uznTd6YBOEDqJxs91hqPh7PzdQj4QlCHK51QJ9r0sN5DusnAj8WHU4cfpzA==
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="MCCZ1/2u";
	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 AD8B3606A338;
	Wed,  4 Nov 2026 07:11:48 +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=MCCZ1/2u
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=1793776307;
	b=oMez+1sF034aw9rJFeleBaJWaRFzl69MKQaGrlsGTeAhGrxXqRiXgplSWOBAs5MKlo4C
	 Cq1E4P2bDEmBMtMv54MbBkQsZi/Jj6xdiUAGOgVljoKzAbYRNn3Ad8ac4rg5OLAdIfyJm
	 L5Igr1PHGVpr2EgXk5Yiq3iACLUpg9f5sh199Cff29w/5q58xior/oHiyQZ/vTfC56Avh
	 oJjk1y5GeAJjN5t98+JfDcqeE53wX8ExN28m1JxN6eViOIX4afXqUQn4pKP0rn5sCpqGr
	 iA8mJsjQeglI1w1oJ04pHrvrorqWmOyV/OXtwWcRNbsZI8fbrjrQweqfuRcNHiWbelw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793776307;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=BhyrL+gZPz2pormGcY9bduMW+6XwjaguNMO4upbxytE=;
	b=ygi0JjMawwSVvd9pxIuq0oHkfg1+/+Uzlz2wHSe0IOw3AKzSa6Twts2Ktek2tGf8tGkf
	 e0QiOnNS2+lry55Btq53BMzv3o4KznhUFikv5jii1kUgabcElROCrIy8uS3YZ82nt+bZ8
	 ZqQqp5lIpbaGDIU/ibGstLuMLD1DAKwzGjiBROBFu/oVtRMSwCQXF4rV4MsGF1iM87ZWV
	 ASozrvcqDREGFCLN921lDbyh3vYSIsSiA3PXOYCEvCxubUvrBuwynsR4imEGDDDfHDLD8
	 uaeI18jBGOe3t8BiOOWl0IxDhfucPcZcMwDY/0HEj350TrmmUIiPJQfm7GMu+Pb7+EQ==
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="MCCZ1/2u";
	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 8B5FF606D804;
	Wed,  4 Nov 2026 07:11:47 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 946841F00919;
	Wed,  4 Nov 2026 07:11:46 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793776307;
	bh=BhyrL+gZPz2pormGcY9bduMW+6XwjaguNMO4upbxytE=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=MCCZ1/2u7usMXkzLabkYawkAc+KkLQRh8To1Fn9vaSkbVEyFHAymYWT4D8HPj3dtw
	 agC9MpD7BaD8o3YByj3BVKd+jm8cDFC7ogJ58zKldT3YrfJkbY0yYYkwECLdq2JDM3
	 OZEYZK6kc3jmA8JHMaSWBJgJYNWqSuW9VSMr/pbHZkkE6eahyaNKLkfpdL+PhDwa8f
	 fQ140+iPh1B3du8hSuBLdVeFooHEe8fa51zvf687sruoJMtijtGb4O8/JCvKjMuDDJ
	 TxV/Wr9+wiOIEGR9xtcEn6nBkp2pzLx25wzlUq4PS/KZVWt1nwet/vuH3kV/sWemPq
	 s2KbD+tBeDo1w==
X-Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>, 
	oe-linux-nfc@lists.linux.dev, Simon Horman <horms@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
	Eric Dumazet <edumazet@kernel.org>, David Heidelberg <david@ixit.cz>, 
	Jakub Kicinski <kuba@kernel.org>
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: <20261104022811.1484216-1-vulab@iscas.ac.cn>