From patchwork Wed Jun 7 10:05:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 13270477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 773BCC7EE2E for ; Wed, 7 Jun 2023 11:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239618AbjFGLRH (ORCPT ); Wed, 7 Jun 2023 07:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239459AbjFGLRF (ORCPT ); Wed, 7 Jun 2023 07:17:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8EFAE62; Wed, 7 Jun 2023 04:17:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BCD163DB0; Wed, 7 Jun 2023 11:17:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83DD1C433D2; Wed, 7 Jun 2023 11:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686136623; bh=8FGn7roe0ypJLHcbQ2uIfQnhmgbdqM4GY7q9Gx4ZKuk=; h=From:To:Cc:Subject:Date:From; b=a2X0ZIQpxsagDbxhmgnGmNaUc05kt63lVUMQHV5O47vDS7uaifFdAhZKtvlcWPrZK quUb5duTd884UDAj4rfiGEsQsYLpvDSNRyAPN0h2Ps/UxjfkXisuOKRf/oMqbVemvb OLDFF3rLCNpKHPtfMiyctYJwnre1c0nqswOZ4Ygvs8JgAANicQf7im+VTWRqSB9Yz/ iXTGtUvk9wKJtZeUyp4oN4a0/LpGCR/mLCNdPl/UB8SN/YfpoSBDKefKUeO1ZkEduK AHvHK+xrA7e7O9jbICklu7VY60CjngTMPJNqtpN3ayZ095zu3P1JrAb3S5moWl5SVM iOP1CQtEFJmqg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q6rAM-0008LQ-AV; Wed, 07 Jun 2023 13:17:26 +0200 From: Johan Hovold To: Thinh Nguyen Cc: Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krishna Kurapati , Manivannan Sadhasivam , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] USB: dwc3: qcom: fix NULL-deref on suspend Date: Wed, 7 Jun 2023 12:05:38 +0200 Message-Id: <20230607100540.31045-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Some dwc3 glue drivers are currently accessing the driver data of the child core device directly, which is clearly a bad idea as the child may not have probed yet or may have been unbound from its driver. This series fixes some of the symptoms of these layering violations as fixing the glue drivers properly is going to take a fair bit of work. Johan Johan Hovold (2): USB: dwc3: qcom: fix NULL-deref on suspend USB: dwc3: fix use-after-free on core driver unbind drivers/usb/dwc3/core.c | 5 +++++ drivers/usb/dwc3/dwc3-qcom.c | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-)