public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] USB: dwc3: qcom: fix resource leaks on probe deferral
@ 2023-11-17 17:36 Johan Hovold
  2023-11-17 17:36 ` [PATCH 1/3] " Johan Hovold
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Johan Hovold @ 2023-11-17 17:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Thinh Nguyen,
	Krishna Kurapati PSSNV, linux-arm-msm, linux-usb, linux-kernel,
	Johan Hovold

When reviewing the recently submitted series which reworks the dwc3 qcom
glue implementation [1], I noticed that the driver's tear down handling
is currently broken, something which can lead to memory leaks and
potentially use-after-free issues on probe deferral and on driver
unbind.

Let's get this sorted before reworking driver.

Note that the last patch has only been compile tested as I don't have
access to a sdm845 device.

Johan

[1] https://lore.kernel.org/lkml/20231016-dwc3-refactor-v1-0-ab4a84165470@quicinc.com/


Johan Hovold (3):
  USB: dwc3: qcom: fix resource leaks on probe deferral
  USB: dwc3: qcom: fix software node leak on probe errors
  USB: dwc3: qcom: fix ACPI platform device leak

 drivers/usb/dwc3/dwc3-qcom.c | 57 +++++++++++++++++++++++++++---------
 1 file changed, 43 insertions(+), 14 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-11-21 18:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 17:36 [PATCH 0/3] USB: dwc3: qcom: fix resource leaks on probe deferral Johan Hovold
2023-11-17 17:36 ` [PATCH 1/3] " Johan Hovold
2023-11-17 19:03   ` Andrew Halaney
2023-11-17 17:36 ` [PATCH 2/3] USB: dwc3: qcom: fix software node leak on probe errors Johan Hovold
2023-11-17 19:09   ` Andrew Halaney
2023-11-21 14:20   ` Heikki Krogerus
2023-11-17 17:36 ` [PATCH 3/3] USB: dwc3: qcom: fix ACPI platform device leak Johan Hovold
2023-11-17 19:17   ` Andrew Halaney
2023-11-20  9:39   ` Shawn Guo
2023-11-17 23:47 ` [PATCH 0/3] USB: dwc3: qcom: fix resource leaks on probe deferral Konrad Dybcio
2023-11-20 15:22   ` Andrew Halaney
2023-11-20 16:53     ` Johan Hovold
2023-11-21 14:21       ` Greg Kroah-Hartman
2023-11-21 15:04         ` Johan Hovold
2023-11-21 18:03           ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox