Skip to content

USB: cdc-acm: handle broken union descriptors

Johan Hovold linux-usb stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 17 repliesIn review
  2. v14 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "cdc-acm: hardening against malicious devices"drivers/usb/class/cdc-acm.c+0 -50 replies
2/4USB: cdc-acm: handle broken union descriptorsdrivers/usb/class/cdc-acm.c+12 -01 reply
3/4USB: cdc-acm: use common data-class definedrivers/usb/class/cdc-acm.c drivers/usb/class/cdc-acm.h+2 -60 replies
4/4USB: cdc-acm: clean up no-union-descriptor handlingdrivers/usb/class/cdc-acm.c drivers/usb/class/cdc-acm.h+15 -2810 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Caujolle-BertOliver Neukum
SeriesA-b
1/4
2/4T-b
3/4
4/4

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/4] USB: cdc-acm: handle broken union descriptors

This series adds support for handling broken union descriptors by falling back to "combined-interface" probing.

The first patch drops some bogus altsetting sanity checks which would otherwise have had to be needlessly reproduced for consistency. The third patch drops the driver specific data class define in favour of the common one. The last one, cleans up the no-union-descriptor handling by probing for a "combined-interface" before falling back to the call-management descriptor.

Note that I changed my mind on the stable tag; we can't be overly paranoid about a theoretical risk of breaking some quirky devices. And if we do, we still want to know about it, right?

Daniel, would you mind giving these a spin as well?

Johan

v2
- add stable tag to 2/2 as it enables a new class of devices
- demote a broken-union warning to dev_dbg
- replace the fourth RFC patch with a clean up of the no-union-descriptor case only

Johan Hovold (4):
Revert "cdc-acm: hardening against malicious devices"
USB: cdc-acm: handle broken union descriptors
USB: cdc-acm: use common data-class define
USB: cdc-acm: clean up no-union-descriptor handling

 drivers/usb/class/cdc-acm.c | 55 ++++++++++++++++---------------------
 drivers/usb/class/cdc-acm.h | 13 ++++-----
 2 files changed, 29 insertions(+), 39 deletions(-)
Signature · 1 line
2.26.2