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=1795954502; b=rUgv33mqvnl3p5K+0hA+HRROGHKrRnvbbUsbWJMcuKMkdNUy0VkepUGxJUyB9RdQt1Mr 8m72TILdlHdAVqlFTswopDOmUyy4iNWJWLaR+vwBaRqByvC+XpOYlSFekJrQl8IRMBQ9o 6sqYL1hl2b/kfpBKtZrprf4+/cXfw1Bhxo/ZODO+4PR3ytyC8tZtQGwCSdDaw1GsMxIoG 4w/r6umbOiidRbaOOuGBvjL11vfbO52U5DtUqMFxyAb/MrGZs5VwhN1gLcRp6v13NL8XO yPG772LFxjZVwh02dqSkpIY3a9iLblCqsOCJwTN/j7Y1kLjAJ3aSjUMkciqVl6wRuEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795954502; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=sAkiT0FsXoHjMvVWTlcBoKa1zDcJiSPArYvlCf6P1KI=; b=WywYRzdQZ3qo7ReP6zJWrpMSJKn9r733vn3dJVVzRNUg0ExnqXdw4fIkNblRlsDkX0Kb ocA79W76amb4RblRS1NHdufcfchS2RcY5ayYwCWRiDlbit3qL9szkmEPfKRobP1SZUtRX 0kTC/x4u4mtPzMje762Ya9Ux6JtVyR4fxMsTvsHhR0gQXvh5QVmiC4mtfob7o3gE1joWh S0NXoQaofSR5A6MvJzMJU2fJJfZDZn5Oplj4ZFcfbxRe93w3L2UA5KN/st2hPcmJ+CK6q dl2mlRoZufBxsbd+mHoW4FcXW5uAUY0ZqO4GSQK/pN3bH2iXxM0Vq0GJ4N42lSRWNDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kW6Y4s8Y; 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 8C8AD606A334; Sun, 29 Nov 2026 12:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kW6Y4s8Y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DA671F00896; Sun, 29 Nov 2026 12:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795954502; bh=sAkiT0FsXoHjMvVWTlcBoKa1zDcJiSPArYvlCf6P1KI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kW6Y4s8Y/LC1lyV4IRE+MfNbv3dUSqDYiecjjMu+25oEP+Ft0eeLav+CHrvRlzakk szSkAr+VdBX1qmo3aDeklTq0wGsZ1HImAPpusvDZUAEhvWlHwxp7qG/UqZFBoyhON6 yh1Q1nD353Y43jEJs6WvL6NlME82AmuUKAmnbreA= Date: Sun, 29 Nov 2026 13:14:57 +0100 From: Greg Kroah-Hartman To: Felipe Infante de Castro Cc: Thinh Nguyen , Bjorn Andersson , Konrad Dybcio , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [NOTE] usb: dwc3: qcom: .shutdown = dwc3_qcom_remove double-remove hazard on guest unbind during shutdown Message-ID: <2026112907-slush-much-3aa2@gregkh> References: <179594958702.39790.7164177942155143370@gmail.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179594958702.39790.7164177942155143370@gmail.com> On Sun, Nov 29, 2026 at 05:53:07AM -0500, Felipe Infante de Castro wrote: > Hi Thinh, Greg, Bjorn, and Konrad, > > While bringing up an out-of-tree USB4 host router driver on a Snapdragon > X Elite laptop (Linux v7.3.6 arm64), we hit a reproducible (3/3) PID 1 > kernel panic on reboot with a USB4 dock attached. > > Scope note upfront: nothing in mainline Linux triggers this today. It > requires a second driver that unbinds a bound dwc3-qcom device during > system shutdown (which our USB4 host router driver initially did when > tearing down its guest USB3 session). We have already fixed our USB4 > driver to skip device_release_driver() during shutdown, so this is > purely a hardening note for dwc3-qcom in case it is useful upstream. Then send a patch for the issue when your out-of-tree code is submitted. We really don't care, nor could we even possibly consider, interactions with out-of-tree code like this as that would mean we would go crazy over time. thanks, greg k-h