Skip to content

usbip: fix device disconnect loop with isoc endpoints

Sascha Grunert linux-usb lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usbip: drain remaining PDU payload on rejected endpointdrivers/usb/usbip/stub_rx.c+59 -10 replies
2/2usbip: block SET_INTERFACE for isoc alt settingsdrivers/usb/usbip/stub_rx.c+36 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] usbip: fix device disconnect loop with isoc endpoints

Forwarding a USB device with isochronous endpoints over USB/IP causes a disconnect/reconnect loop. Hit this with a Turtle Beach Velocity One Flight yoke (10f5:7001) forwarded to a VM.

The first patch fixes a TCP stream desync: when get_pipe() returns -1, the remaining PDU payload stays on the socket and corrupts the next header parse. The second patch prevents activation of alt settings with isoc endpoints, since USB/IP cannot forward them and the failed transfers cascade into a device disconnect.

Sascha Grunert (2):
usbip: drain remaining PDU payload on rejected endpoint
usbip: block SET_INTERFACE for isoc alt settings

 drivers/usb/usbip/stub_rx.c | 96 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 95 insertions(+), 1 deletion(-)
Signature · 1 line
2.52.0