linux-stable/drivers/usb
Greg Kroah-Hartman e7c8afee14 USB: gadget: detect too-big endpoint 0 requests
commit 153a2d7e33 upstream.

Sometimes USB hosts can ask for buffers that are too large from endpoint
0, which should not be allowed.  If this happens for OUT requests, stall
the endpoint, but for IN requests, trim the request size to the endpoint
buffer size.

Co-developed-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-14 10:16:56 +01:00
..
atm USB: atm: ueagle-atm: add missing endpoint check 2019-12-17 20:39:10 +01:00
c67x00 USB: c67x00: fix use after free in c67x00_giveback_urb 2020-07-22 09:22:26 +02:00
chipidea USB: chipidea: fix interrupt deadlock 2021-11-26 11:40:36 +01:00
class USB: cdc-acm: fix break reporting 2021-10-17 10:08:32 +02:00
common usb: otg-fsm: Fix hrtimer list corruption 2021-08-15 13:03:31 +02:00
core usb: hub: Fix locking issues with address0_mutex 2021-12-08 08:46:47 +01:00
dwc2 usb: dwc2: check return value after calling platform_get_resource() 2021-10-09 14:09:46 +02:00
dwc3 usb: dwc3: gadget: Stop EP0 transfers during pullup disable 2021-09-03 09:56:24 +02:00
early USB: early: Handle AMD's spec-compliant identifiers, too 2020-05-02 17:24:20 +02:00
gadget USB: gadget: detect too-big endpoint 0 requests 2021-12-14 10:16:56 +01:00
host xhci: Fix commad ring abort, write all 64 bits to CRCR register. 2021-12-08 08:46:56 +01:00
image
isp1760
misc USB: iowarrior: fix control-message timeouts 2021-11-26 11:40:26 +01:00
mon usb: mon: Fix a deadlock in usbmon between mmap and read 2019-12-17 20:39:12 +01:00
mtu3 usb: mtu3: fix panic in mtu3_gadget_stop() 2020-11-10 10:29:07 +01:00
musb usb: musb: tusb6010: check return value after calling platform_get_resource() 2021-11-26 11:40:37 +01:00
phy usb: phy: tahvo: add IRQ check 2021-09-22 11:45:21 +02:00
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 11:12:19 +02:00
serial USB: serial: option: add Fibocom FM101-GL variants 2021-12-08 08:46:47 +01:00
storage usb-storage: Add compatibility quirk flags for iODD 2531/2541 2021-11-12 14:28:24 +01:00
typec usb: typec: ucsi: Clear PPM capability data in ucsi_init() error path 2021-06-16 11:53:03 +02:00
usbip usbip:vhci_hcd USB port can get stuck in the disabled state 2021-09-22 11:45:31 +02:00
wusbcore
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-17 10:08:31 +02:00
Makefile
README
usb-skeleton.c

To understand all the Linux-USB framework, you'll use these resources:

    * This source code.  This is necessarily an evolving work, and
      includes kerneldoc that should help you get a current overview.
      ("make pdfdocs", and then look at "usb.pdf" for host side and
      "gadget.pdf" for peripheral side.)  Also, Documentation/usb has
      more information.

    * The USB 2.0 specification (from www.usb.org), with supplements
      such as those for USB OTG and the various device classes.
      The USB specification has a good overview chapter, and USB
      peripherals conform to the widely known "Chapter 9".

    * Chip specifications for USB controllers.  Examples include
      host controllers (on PCs, servers, and more); peripheral
      controllers (in devices with Linux firmware, like printers or
      cell phones); and hard-wired peripherals like Ethernet adapters.

    * Specifications for other protocols implemented by USB peripheral
      functions.  Some are vendor-specific; others are vendor-neutral
      but just standardized outside of the www.usb.org team.

Here is a list of what each subdirectory here is, and what is contained in
them.

core/		- This is for the core USB host code, including the
		  usbfs files and the hub class driver ("hub_wq").

host/		- This is for USB host controller drivers.  This
		  includes UHCI, OHCI, EHCI, and others that might
		  be used with more specialized "embedded" systems.

gadget/		- This is for USB peripheral controller drivers and
		  the various gadget drivers which talk to them.


Individual USB driver directories.  A new driver should be added to the
first subdirectory in the list below that it fits into.

image/		- This is for still image drivers, like scanners or
		  digital cameras.
../input/	- This is for any driver that uses the input subsystem,
		  like keyboard, mice, touchscreens, tablets, etc.
../media/	- This is for multimedia drivers, like video cameras,
		  radios, and any other drivers that talk to the v4l
		  subsystem.
../net/		- This is for network drivers.
serial/		- This is for USB to serial drivers.
storage/	- This is for USB mass-storage drivers.
class/		- This is for all USB device drivers that do not fit
		  into any of the above categories, and work for a range
		  of USB Class specified devices. 
misc/		- This is for all USB device drivers that do not fit
		  into any of the above categories.