All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] USB: serial: fix port tear down use-after-free
@ 2026-08-21 15:45 Johan Hovold
  2026-08-21 15:45 ` [PATCH v2 1/4] " Johan Hovold
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Johan Hovold @ 2026-08-21 15:45 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

When addressing a port probe ordering issue in digi_acceleport recently
I realised that we have a corresponding general problem during
disconnect, but I didn't have time to address it straight away.

Now syzbot has managed to trigger one of its symptoms and people have
already started submitting incomplete band-aids so here is a proper
fix.

When testing the fix I also noticed that we have an ordering issue when
deregistering drivers that can result in similar use-after-free.

Johan


Changes in v2:
 - fix dynamic id driver deregistration race (new)
 - remove "new_id" attributes before deregistering USB driver
 - use iterator for driver deregistration (new)


Johan Hovold (4):
  USB: serial: fix port tear down use-after-free
  USB: serial: fix dynamic id driver deregistration race
  USB: serial: fix driver deregistration order
  USB: serial: use iterator for driver deregistration

 drivers/usb/serial/bus.c        |  6 +++++-
 drivers/usb/serial/usb-serial.c | 32 ++++++++++++++++++++++++++------
 include/linux/usb/serial.h      |  1 +
 3 files changed, 32 insertions(+), 7 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-08-21 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21 15:45 [PATCH v2 0/4] USB: serial: fix port tear down use-after-free Johan Hovold
2026-08-21 15:45 ` [PATCH v2 1/4] " Johan Hovold
2026-08-21 15:45 ` [PATCH v2 2/4] USB: serial: fix dynamic id driver deregistration race Johan Hovold
2026-08-21 15:45 ` [PATCH v2 3/4] USB: serial: fix driver deregistration order Johan Hovold
2026-08-21 15:45 ` [PATCH v2 4/4] USB: serial: use iterator for driver deregistration Johan Hovold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.