android_kernel_samsung_msm8976/drivers/usb/host
Mathias Payer 5cdcc6e3d8 USB: check usb_get_extra_descriptor for proper size
When reading an extra descriptor, we need to properly check the minimum
and maximum size allowed, to prevent from invalid data being sent by a
device.

Change-Id: If4dd31307e0531261c9d9a21fbea5487732f7baa
Reported-by: Hui Peng <benquike@gmail.com>
Reported-by: Mathias Payer <mathias.payer@nebelwelt.net>
Co-developed-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Hui Peng <benquike@gmail.com>
Signed-off-by: Mathias Payer <mathias.payer@nebelwelt.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-11 19:44:53 +02:00
..
whci USB: whci-hcd: add check for dma mapping error 2016-01-22 19:47:54 -08:00
Kconfig
Makefile
bcma-hcd.c
ehci-atmel.c
ehci-dbg.c usb: host: fix incorrect updating of offset 2019-07-27 21:46:13 +02:00
ehci-fsl.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-fsl.h
ehci-grlib.c
ehci-hcd.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-hub.c
ehci-mem.c
ehci-msm-hsic.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-msm-uicc.c Merge "USB: UICC: Set Root HUB speed as USB2" 2016-10-28 08:10:28 -07:00
ehci-msm.c USB: phy-msm-usb: Don't exit from low power mode during PM resume 2015-07-13 03:22:36 -07:00
ehci-msm2.c usb: ehci-msm2: Fix HUB resume issue upon runtime resume 2015-05-20 16:55:23 -07:00
ehci-mv.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-mxc.c
ehci-octeon.c
ehci-omap.c
ehci-orion.c
ehci-pci.c
ehci-platform.c
ehci-pmcmsp.c
ehci-ppc-of.c
ehci-ps3.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-q.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-s5p.c
ehci-sched.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
ehci-sead3.c
ehci-sh.c
ehci-spear.c
ehci-sysfs.c usb: host: ehci-sys: delete useless bus_to_hcd conversion 2015-09-21 10:00:08 -07:00
ehci-tegra.c
ehci-tilegx.c
ehci-timer.c
ehci-w90x900.c
ehci-xilinx-of.c
ehci.h
fhci-dbg.c
fhci-hcd.c
fhci-hub.c
fhci-mem.c
fhci-q.c
fhci-sched.c
fhci-tds.c
fhci.h
fsl-mph-dr-of.c
hbm.c
hwa-hc.c USB: check usb_get_extra_descriptor for proper size 2019-09-11 19:44:53 +02:00
ice40-hcd.c
imx21-dbg.c
imx21-hcd.c
imx21-hcd.h
isp116x-hcd.c usb: host: isp116x: use new USB_RESUME_TIMEOUT 2015-05-06 21:56:23 +02:00
isp116x.h
isp1362-hcd.c
isp1362.h
isp1760-hcd.c
isp1760-hcd.h
isp1760-if.c
octeon2-common.c
ohci-at91.c
ohci-da8xx.c
ohci-dbg.c
ohci-ep93xx.c
ohci-exynos.c
ohci-hcd.c
ohci-hub.c
ohci-jz4740.c
ohci-mem.c
ohci-nxp.c
ohci-octeon.c
ohci-omap.c
ohci-omap3.c
ohci-pci.c
ohci-platform.c
ohci-ppc-of.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c
ohci-s3c2410.c
ohci-sa1111.c
ohci-sm501.c
ohci-spear.c
ohci-tilegx.c
ohci-tmio.c
ohci.h
oxu210hp-hcd.c usb: host: oxu210hp: use new USB_RESUME_TIMEOUT 2015-05-13 05:15:42 -07:00
oxu210hp.h
pci-quirks.c usb: pci-quirks.c: Corrected timeout values used in handshake 2019-07-27 21:45:28 +02:00
pci-quirks.h
r8a66597-hcd.c usb: host: r8a66597: use new USB_RESUME_TIMEOUT 2015-05-06 21:56:22 +02:00
r8a66597.h
sl811-hcd.c usb: host: sl811: use new USB_RESUME_TIMEOUT 2015-05-06 21:56:23 +02:00
sl811.h
sl811_cs.c
ssb-hcd.c
u132-hcd.c
uhci-debug.c
uhci-grlib.c
uhci-hcd.c
uhci-hcd.h
uhci-hub.c
uhci-pci.c
uhci-platform.c
uhci-q.c
xhci-dbg.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
xhci-ext-caps.h
xhci-hub.c xhci: Don't print a warning when setting link state for disabled ports 2019-07-27 21:52:35 +02:00
xhci-mem.c xhci: xhci-mem: off by one in xhci_stream_id_to_ring() 2019-07-27 21:52:55 +02:00
xhci-msm-hsic.c
xhci-pci.c xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers 2019-07-27 21:43:58 +02:00
xhci-plat.c usb: xhci-plat: Add runtime autosuspend delay 2015-06-24 13:22:27 -07:00
xhci-ring.c xhci: Fix port resume done detection for SS ports with LPM enabled 2019-07-27 22:09:01 +02:00
xhci.c xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers 2019-07-27 21:43:58 +02:00
xhci.h xhci: Fix port resume done detection for SS ports with LPM enabled 2019-07-27 22:09:01 +02:00