android_kernel_oneplus_msm8998/drivers/usb
Petr Vandrovec ab0867dd8b Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y
commit 2ce9d2272b98743b911196c49e7af5841381c206 upstream.

Some code (all error handling) submits CDBs that are allocated
on the stack.  This breaks with CB/CBI code that tries to create
URB directly from SCSI command buffer - which happens to be in
vmalloced memory with vmalloced kernel stacks.

Let's make copy of the command in usb_stor_CB_transport.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-12-02 09:09:00 +01:00
..
atm
c67x00
chipidea usb: chipidea: move the lock initialization to core file 2016-12-02 09:09:00 +01:00
class USB: cdc-acm: fix TIOCMIWAIT 2016-11-18 10:48:35 +01:00
common usb: define USB_SPEED_SUPER_PLUS speed for SuperSpeedPlus USB3.1 devices 2016-09-07 08:32:39 +02:00
core USB: change bInterval default to 10 ms 2016-09-24 10:07:39 +02:00
dwc2 usb: dwc2: fix regression on big-endian PowerPC/ARM systems 2016-07-27 09:47:28 -07:00
dwc3 usb: dwc3: Fix size used in dma_free_coherent() 2016-11-10 16:36:37 +01:00
early
gadget usb: gadget: u_ether: remove interrupt throttling 2016-11-18 10:48:35 +01:00
host xhci: add restart quirk for Intel Wildcatpoint PCH 2016-11-10 16:36:34 +01:00
image
isp1760
misc usb: misc: legousbtower: Fix NULL pointer deference 2016-10-07 15:23:47 +02:00
mon
musb usb: musb: fix DMA for host mode 2016-10-07 15:23:41 +02:00
phy usb: phy: msm: fix error handling in probe. 2016-02-17 12:31:01 -08:00
renesas_usbhs usb: renesas_usbhs: fix clearing the {BRDY,BEMP}STS condition 2016-09-24 10:07:39 +02:00
serial USB: serial: ftdi_sio: add support for TI CC3200 LaunchPad 2016-12-02 09:09:00 +01:00
storage Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y 2016-12-02 09:09:00 +01:00
usbip USB: usbip: fix potential out-of-bounds write 2016-05-04 14:48:50 -07:00
wusbcore
Kconfig
Makefile usb-host: Remove fusbh200 driver 2015-10-16 23:44:33 -07:00
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.