From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796509483; b=nxQ2QRNa+UrIUzWCDUh7YThyoJTwMoOHoEO0b/8kf02mwVUL7Ar9783OMGi4rDgYH/as WA6bcFePStuPcW/6XE0uPEcmdg3O1v3TvCRR/RB7hFAm4HmvwaQFobclTyPtZ9uER5F5p 5F4SZC2a9JE1ENUtS2IshdZmYN2Os4darSHAyFsSoEN3oNGgnn/6YNs4QPKP9el0IY8j/ mykUuDJGKfYh3QbQFE5WgLwjBV1h3ZJN+0nQdCuRSciwbxwcq0cBVYBv01+VNABm6Rkgo wWGW1ybC2jlhnl54SRi3JGKQZCK4EBsOaqaYM52PPsfS7d4CPekrW4qCLegVGh18M8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796509483; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=FBwypXSjb0amNsfqLK+uufhPE56820Lwfkb6s6C3XXI=; b=IbtHa4VziQJwc6qmh0dT1kRbF2RF32R+3N9EmMU9w3fCsptdyp2S/yvlTJpzHsvRYEGc 2FfbsY2yb3S+wyX7M9Izll0wv8/NXlELW0vbVYgB22AEbySll6QEZa/kfiY5xKJBA2yDX ZLCpY+wVRc91qG6hp1dzdLGGFhoB5nwzcWPfm0u8L3iBrJ8/rG0nWHWTlH0CIVySqAV9l D5hnm/y12/1MBiOkEujZKhAgUTG0sWO6U3ByLqKw594yTaw6nzTyUlWG4EtA+RLN2XVr9 7crpNDo+/o8Bjd+da5kGtTFKukqJohAx8TOHmjQ8bz5/6H1etc1IBCxLsuGrT51oG4Q== 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=IuMJtUU3; arc=none smtp.remote-ip=100.103.45.18 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 E8A17606A31F for ; Sat, 5 Dec 2026 22:24:42 +0000 (UTC) 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=IuMJtUU3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A151A1F0092B; Sat, 5 Dec 2026 22:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796509482; bh=FBwypXSjb0amNsfqLK+uufhPE56820Lwfkb6s6C3XXI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IuMJtUU3kzf4g6a6hkaFtRkb1bjlmkMPXMT/W9JnGyw2X9VBlmbX2nVbEjG+2NXXi 1Sdc2o6pdIIVtJd9irFjbUpIvb/q2Ow4J8VDQbQvZ3RRy6irtH1ecc8ZpZepJsl9Gp /M6h98wF0Z91GnCVT9qpIRJuBDPPU1QJXJ6tCs/vnh0nzyvos8YsLdgeO72MeSuX5R 5TGSZFJr92yaWaMY+27KNIVXGfmwqKAmFXjeuExCFhRp5vnM9YNhn67Ib6C1lhSa8f gP/nl5udg4m76NMsmNhX7YN3dU1LWLzDmewTjewFITDlNxlAFnIZhpQtrSUj9YDCUC N/43ZvRzUK/3g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net: usb: qmi_wwan: unlink mux devices outside the RCU read-side section Reply-To: sashiko-reviews@lists.linux.dev To: "Praneeth Balasubramanian" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261204222419.1869694-1-praneethb2002@gmail.com> References: <20261204222419.1869694-1-praneethb2002@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 22:24:42 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: usb: qmi_wwan: qmi_wwan_disconnect() traverses core-internal unreg_list -- commit e9d2de058dd74fbc5a61bbf397e136f8a3d1961c Author: Praneeth Balasubramanian net: usb: qmi_wwan: unlink mux devices outside the RCU read-side section This commit defers unlinking QMAP mux upper devices in qmi_wwan_disconnect() until after rcu_read_unlock(), queuing them during the RCU walk and unlinki= ng them before calling unregister_netdevice_many(). > diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c > index e9873dc1d531e..3ca908885c9a1 100644 > --- a/drivers/net/usb/qmi_wwan.c > +++ b/drivers/net/usb/qmi_wwan.c [ ... ] > @@ -1598,10 +1602,13 @@ static void qmi_wwan_disconnect(struct usb_interf= ace *intf) > restart_syscall(); > return; > } > + /* Unlinking can sleep, so only collect the devices under RCU */ > rcu_read_lock(); > netdev_for_each_upper_dev_rcu(dev->net, ldev, iter) > - qmimux_unregister_device(ldev, &list); > + unregister_netdevice_queue(ldev, &list); > rcu_read_unlock(); > + list_for_each_entry(ldev, &list, unreg_list) > + qmimux_unlink_device(ldev); [Severity: Low] Should qmi_wwan_disconnect() iterate struct net_device::unreg_list directly? unreg_list is private to net/core/dev.c for unregister_netdevice_queue() and unregister_netdevice_many(), and no other driver accesses it directly. Reaching into it couples qmi_wwan to evolving core unregistration internals. Collecting the mux devices on a list_head in struct qmimux_priv would avoid depending on unreg_list. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204222419.1869= 694-1-praneethb2002@gmail.com?part=3D1