linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usbip: Fix infinite loop in vhci rx
@ 2019-12-13  2:30 Suwan Kim
  2019-12-13  2:30 ` [PATCH v2 1/2] usbip: Fix receive error in vhci-hcd when using scatter-gather Suwan Kim
  2019-12-13  2:30 ` [PATCH v2 2/2] usbip: Fix error path of vhci_recv_ret_submit() Suwan Kim
  0 siblings, 2 replies; 5+ messages in thread
From: Suwan Kim @ 2019-12-13  2:30 UTC (permalink / raw)
  To: shuah, valentina.manea.m, gregkh, marmarek
  Cc: linux-usb, linux-kernel, stable, stern, Suwan Kim

https://lore.kernel.org/linux-usb/20191206032406.GE1208@mail-itl/T/#u
In this mail thread, it shows system hang when there is receive
error in vhci. There are two different causes in this bug.

[1] Wrong receive logic in vhci when using scatter-gather
[2] Wrong error path of vhci_recv_ret_submit()

[1] considers normal reception to be an error condition and closes
connection. And when [1] error situation occurs, wrong error path[2]
causes the system freeze. So each patch fixes this bugs.

---
Change log

Patch [1] - Add Tested-by tag
Patch [2] - Add Tested-by tag
          - Fix typo
          - Fix error code in urb->status (-EPIPE->-EPROTO)

Suwan Kim (2):
  usbip: Fix receive error in vhci-hcd when using scatter-gather
  usbip: Fix error path of vhci_recv_ret_submit()

 drivers/usb/usbip/usbip_common.c |  3 +++
 drivers/usb/usbip/vhci_rx.c      | 13 +++++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-12-17 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13  2:30 [PATCH v2 0/2] usbip: Fix infinite loop in vhci rx Suwan Kim
2019-12-13  2:30 ` [PATCH v2 1/2] usbip: Fix receive error in vhci-hcd when using scatter-gather Suwan Kim
2019-12-17 15:20   ` shuah
2019-12-13  2:30 ` [PATCH v2 2/2] usbip: Fix error path of vhci_recv_ret_submit() Suwan Kim
2019-12-17 15:23   ` shuah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).