Skip to content

usb: fix some memory allocation issues.

Gerd Hoffmann qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v15 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5usb/hid: avoid dynamic stack allocationhw/usb/dev-hid.c hw/usb/dev-wacom.c+2 -21 reply
2/5usb/redir: avoid dynamic stack allocation (CVE-2021-3527)hw/usb/redirect.c+3 -32 replies
3/5usb/mtp: avoid dynamic stack allocationhw/usb/dev-mtp.c+2 -11 reply
4/5usb/xhci: sanity check packet sizehw/usb/hcd-xhci.c+5 -00 replies
5/5usb: limit combined packets to 1 MiBhw/usb/combined-packet.c+3 -10 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/5R-b T-b
2/5R-b T-b
3/5R-b T-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] usb: fix some memory allocation issues.

v2: add one more fix (Philippe).

Gerd Hoffmann (5):
usb/hid: avoid dynamic stack allocation usb/redir: avoid dynamic stack allocation (CVE-2021-3527) usb/mtp: avoid dynamic stack allocation usb/xhci: sanity check packet size
usb: limit combined packets to 1 MiB

 hw/usb/combined-packet.c | 4 +++-
 hw/usb/dev-hid.c         | 2 +-
 hw/usb/dev-mtp.c         | 3 ++-
 hw/usb/dev-wacom.c       | 2 +-
 hw/usb/hcd-xhci.c        | 5 +++++
 hw/usb/redirect.c        | 6 +++---
 6 files changed, 15 insertions(+), 7 deletions(-)
Signature · 1 line
2.30.2