Linux USB
 help / color / mirror / Atom feed
* [[RFT PATCH v2] 0/2] xhci: sideband: fix use-after-free of stale virt device pointer
@ 2026-11-19 21:48 Mathias Nyman
  2026-11-19 21:48 ` [[RFT PATCH v2] 1/2] xhci: sideband: avoid " Mathias Nyman
  2026-11-19 21:48 ` [[RFT PATCH v2] 2/2] xhci: sideband: check virt device under xhci lock when stopping endpoints Mathias Nyman
  0 siblings, 2 replies; 5+ messages in thread
From: Mathias Nyman @ 2026-11-19 21:48 UTC (permalink / raw)
  To: quic_wcheng, hulianqin, selvarasu.g; +Cc: linux-usb, Mathias Nyman

Hi

Second attempt.
These two patches attempt to improve the disappearing vdev issue
while sideband stays active.

I don't have real harware to test this on so all review comments and
feedback from testing is welcome.

There are still some gaps in how xhci driver uses locks when
disabling slots and freeing vdev that is not part of this series

changes since v1:

- add missing sideband_to_vdev() check to xhci_sideband_create_interrupter()
- fix ENOMEM return case in sideband_stop_endpoint_sync()
- always clear sb->eps[ep_index] when removing an endpoint.
- other minor changes

Thanks
Mathias


Mathias Nyman (2):
  xhci: sideband: avoid use-after-free of stale virt device pointer
  xhci: sideband: check virt device under xhci lock when stopping
    endpoints

 drivers/usb/host/xhci-sideband.c  | 151 ++++++++++++++++++++++--------
 drivers/usb/host/xhci.c           |  55 -----------
 drivers/usb/host/xhci.h           |   2 -
 include/linux/usb/xhci-sideband.h |   4 +-
 4 files changed, 113 insertions(+), 99 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-19 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 21:48 [[RFT PATCH v2] 0/2] xhci: sideband: fix use-after-free of stale virt device pointer Mathias Nyman
2026-11-19 21:48 ` [[RFT PATCH v2] 1/2] xhci: sideband: avoid " Mathias Nyman
2026-11-19 21:53   ` sashiko-bot
2026-11-19 21:48 ` [[RFT PATCH v2] 2/2] xhci: sideband: check virt device under xhci lock when stopping endpoints Mathias Nyman
2026-11-19 21:54   ` sashiko-bot

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