🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6858

Re: [PATCH] nfc: nci: drain rx_wq before cmd_wq on unregister

#6858
From: Simon Horman
Date: Fri, 23 Oct 2026 15:07
29 lines
9019 bytes
On Thu, Oct 08, 2026 at 01:31:56PM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 2 (1) · Medium: 0 · Low: 0
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [High] The new teardown order in nci_unregister_device() does not cover
>   a deferred producer of tx_work: the NCI-HCI msg_rx_work, which runs on…
> - [High] nci_recv_frame() (net/nfc/nci/core.c:1360-1368) tests
>   NCI_UP/NCI_INIT without a lock, then calls skb_queue_tail(&ndev->rx_q)…

I believe above issues are also pre-existing.

> 
> Pre-existing issues:
> - [High] This problem was not introduced by this patch, but
>   nxp_nci_i2c_remove() calls nxp_nci_remove() before…

There is always more to be done.
But this patch looks good to me.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261023150745.GM708417@horms.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-351127-linux-kernel-netdev=dewy.ru
References: <20261005102849.486-1-yogeshgaur.83@gmail.com> <179146631693.434549.10968955013781183787@kernel.org>

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-351127-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] nfc: nci: drain rx_wq before cmd_wq on unregister
Date: Fri, 23 Oct 2026 16:07:45 +0100
Organization: Usenet Network
Message-ID: <20261023150745.GM708417@horms.kernel.org>
References: <20261005102849.486-1-yogeshgaur.83@gmail.com>
 <179146631693.434549.10968955013781183787@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="531052"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fq1Ql422Q1HpffODU25nksOHN1g= sha256:yIbSwFF0RQ/HV++XTGSLu3UESfIAQ4nZcDosjDRLzOM=
	sha1:BwBjmKbvWYnSM0oaIilbzchjetg= sha256:incHBhHWojrNqzXLcGEbBfLMqVimVKfZckmEtsS7YVU=
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 B54B01114FC; Fri, 23 Oct 2026 18:08:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.839
X-Spam-Status: No, score=-3.839 tagged_above=-9999 required=6.31
	tests=[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 brEhzGP2OeDe;
	Fri, 23 Oct 2026 18:08:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-351127-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 633CA1114F9; Fri, 23 Oct 2026 18:08:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 4E01A2D5DD; Fri, 23 Oct 2026 15:07:58 +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=1792768077;
	b=Q1l9w1yOXUGGX3BCIk0CuNFSYnUI252211tJ2cxfZIOPk5re8MqcMrD/xxx3f+marG4G
	 P8iz3mr2WJNuQb6EEkhIeY3q5DXKJijOVm+tzIEFxlWvsdCLQexmdeIZvR+1tRFNlIJca
	 AFnIpZFF/H6eTOf0Ac7g3AOPMpuI5DBDtV8zHxXEWRGPTdEQbS6LCO9MP7tYxliqwuy/8
	 4pqPekwVoXMrMr9FbAJHRQUumT7k8v7oF2FRZ94zt/p8Td404TmI5fAlMBHB+L/Hkywpx
	 nyKFzT+oRU0waCuuFhc6AkspHuB8UL4qNPjDcL7V9IIgF7E8mHRmCNexi/Bph4/ayjg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792768077;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=HYU/VkZ1FqssN6MTPXobWxgICxr4ZfYF36w4a9XkZQU=;
	b=lBRqjXbqtS5ZKEzyetsK7i23MzuvvVkVJSCRYhSlWsNNe9zOjErKQjse6tQvZjmyJoNF
	 a4/63LqRYyV/9xvLPi7zdRLx7yo9pcdXaDGNCC+mNDT5DQzQokXhPHwjAV+Y43RMTZh/u
	 XYiVD9aprrt8rdjanLxgrx19EG2/QgznNMEQ3SXafaPxJPhFbxscdX1wBtcdNfdErmG/a
	 B3tPKt/NkY1hpd2rbiEA/dy3I49bMXnZAiljVTbTxLkkqwdsF8ivWujfMJHEIupHn602V
	 uHy43egwJkBVMhdzY1kJYa4oM7Q8UrM0fOA5+cIElAo+wEF/ZAhVDMo02IRImVFzSHw==
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="idUQ1Md/";
	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 07E12606A320;
	Fri, 23 Oct 2026 15:07:57 +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=idUQ1Md/
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=1792768071;
	b=RrQ96joAYO1Ed1qPYcscHotBb86Kp5Tk8nrDjQ0cTCGCPv9w3YQFi0/WEMVboNuTKahu
	 3t6TqFBetQlNV5lsfRTQV3IS656IBQUJZ+nd/W6unV/RXfFRqzLVzZeiCYgp+7Ko4FP5t
	 3GSG06T++aw4+5ryOO2mDP61nOoZu1TushEyZVT5WVamIYCtZrCLWW38QVawTuoz6QFq/
	 ecxIbPCJphDLvOWF/p4E/Nt2vp6AmdQlNwmHVK/1zWfz4YKRz95FAag1rQe9HDOOuHhKR
	 Jyc6Yl9T6mmxSiBtanHhC/hmvz+5BLqHa7SP7Bm4Zse8/uoIzZCVlG/9oqwsStH9k4Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792768071;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=HYU/VkZ1FqssN6MTPXobWxgICxr4ZfYF36w4a9XkZQU=;
	b=QzZnjCKG5ftsEK5FcaY5G3kya77qS8XBskagKhGPsNGuiwhRM3HNQhmZ3UvjB9P6ZZ6I
	 SvdYekhmeXliiOiGwZ4epfhksXmRjPwamh1EU0t5lwTAk94mCcPSucp44txso7G5xPazY
	 +5j0fpnl7yhdhlSpcXTqO0/dvBU7kuR0aU3+i2pQPF35RZqLqu7+APT2jAnSc298KGZPL
	 x8mzjC6J3xUICvYFKsCOYiRMZJcrxoPC5BMPrSw99zUSwt4PvMuGZzDENllQH+AIkjviN
	 MkqImGNEbXeWQDFOB/KXhmUOJqiHMcgF0gyQsbDjA8VwIghfQvdeWi7tYk4htqz628A==
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="idUQ1Md/";
	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 B06C6606A321;
	Fri, 23 Oct 2026 15:07:50 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 486D41F01825;
	Fri, 23 Oct 2026 15:07:48 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792768070;
	bh=HYU/VkZ1FqssN6MTPXobWxgICxr4ZfYF36w4a9XkZQU=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=idUQ1Md/oJ1KixO3jY+8e1oIz9nv2/UKTKzEvO2QelTje1NI4fAaoDpCMeh1i+0Wt
	 WNHPn5AsJlhzuqvP02GjsNi4afeQ7uGqx7QSshKfwZo8HFGHJcSeyquK0Ok5nj9wKH
	 FZAtxubPnsVfYiASUL5AwN+2vyu0bYcp9lV8r+RKDRiXt60l5A9uhrZPv2/Ryim+23
	 ryEShAVoYvZ+zv9j/nOZqFiJIN5eNkN7lk8dSn3IsYWAx2ORMTVePgjfpZpuBO8vqj
	 votsHjLBADiZA3BAa7IRY1yZFIbSn8KyGowM5dBd7yu/akKx2p76uKQeVjIuJYQxew
	 xQ4Cqd+huKjPg==
X-Cc: yogeshgaur.83@gmail.com, david@ixit.cz, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	ian.ray@gehealthcare.com, oe-linux-nfc@lists.linux.dev,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	syzbot+ebbbf06f152da8ea4716@syzkaller.appspotmail.com
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: <179146631693.434549.10968955013781183787@kernel.org>