Commit Graph

637697 Commits

Author SHA1 Message Date
Krzysztof Kozlowski
06e68c07cd serial: samsung: Continue to work if DMA request fails
am: ce8ab5f168

Change-Id: I2ac930cd8593ea523462b1a1634951275d112daf
2017-03-18 11:36:29 +00:00
Johan Hovold
a0dd42a283 USB: serial: io_ti: fix information leak in completion handler
am: d0ef6ecee8

Change-Id: I982f042fae1fc32c79f2e2df0260dba3eadb25ae
2017-03-18 11:36:21 +00:00
Johan Hovold
3c522b5860 USB: serial: io_ti: fix NULL-deref in interrupt callback
am: 449b0bb237

Change-Id: If2459faa559e8d5963e9d149ca148819cfdaee6a
2017-03-18 11:36:11 +00:00
Johan Hovold
e082896be7 USB: iowarrior: fix NULL-deref in write
am: f06b17020a

Change-Id: I2ba9bd81a176394bdf8b43e2e0fa77eca0e90ab2
2017-03-18 11:36:02 +00:00
Johan Hovold
6c0dcf8695 USB: iowarrior: fix NULL-deref at probe
am: 653418adaf

Change-Id: I1345deaf740389416299a5d772b8c313baa4ef6d
2017-03-18 11:35:53 +00:00
Johan Hovold
912a046e77 USB: serial: omninet: fix reference leaks at open
am: 6d6c5895f4

Change-Id: I305e7244ba3e9f6ad4519d38163be81938dc4a7a
2017-03-18 11:35:45 +00:00
Johan Hovold
6a85adbea5 USB: serial: safe_serial: fix information leak in completion handler
am: 0ab90ddba7

Change-Id: Id1d59a85bcec9ebc9a7307843c5cfd70179d9a59
2017-03-18 11:35:36 +00:00
Guenter Roeck
384a102db6 usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
am: 24db1c5a1c

Change-Id: I90e3e3aea8ae3d7a3e25067039815fe87c421a9b
2017-03-18 11:35:28 +00:00
Peter Chen
6aabbf668d usb: host: xhci-dbg: HCIVERSION should be a binary number
am: d863767907

Change-Id: I7d5c0b69905a4f53c9ab2a0001d5bb615d723ec0
2017-03-18 11:35:19 +00:00
Roger Quadros
bc1d6eb5d0 Revert "usb: gadget: uvc: Add missing call for additional setup data"
am: 03123df08e

Change-Id: Ica069c59aaddb9d6fe21218e873f9963cbeb57d0
2017-03-18 11:35:10 +00:00
Felipe Balbi
b35506702c usb: gadget: function: f_fs: pass companion descriptor along
am: 5ce2e4ce4a

Change-Id: Id9a3ad5a46abd4c67239369f79a7f3bef4a6124e
2017-03-18 11:35:01 +00:00
Jelle Martijn Kok
4e9e3bbf88 usb: ohci-at91: Do not drop unhandled USB suspend control requests
am: 40192c9666

Change-Id: I33901103122b32cfb69af983456ba1666e791d94
2017-03-18 11:34:52 +00:00
Roger Quadros
4709f3ee23 usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox()
am: accadd8164

Change-Id: Ifdb587bf137b1154495b47aebae8760aed2cf060
2017-03-18 11:34:42 +00:00
Felipe Balbi
b8faeb2d45 usb: dwc3: gadget: make Set Endpoint Configuration macros safe
am: 808ee146d7

Change-Id: I63d636f62f55d12407c8423c10b3924e52b62e62
2017-03-18 11:34:33 +00:00
Peter Chen
9234bb51d0 usb: gadget: dummy_hcd: clear usb_gadget region before registration
am: de90394b0c

Change-Id: I376b8c03eb0d948434745c667067549b44b9dde2
2017-03-18 11:34:23 +00:00
Ethan Zhao
7298ebf711 PCI: Prevent VPD access for QLogic ISP2722
am: ed99f5a09c

Change-Id: I58f0f9ec91795e325983ec5baecda4580459344a
2017-03-18 11:34:13 +00:00
Balbir Singh
9ba6c38ed4 powerpc/xics: Work around limitations of OPAL XICS priority handling
am: 1ced52ead2

Change-Id: I30f63b7a7acaec17a4207821bbee8e94ff45aa87
2017-03-18 11:34:04 +00:00
Ravi Bangoria
182cdba404 powerpc: Emulation support for load/store instructions on LE
am: bc8d2eefe6

Change-Id: I38716fa0ffafed7528028b6422e934b980b36762
2017-03-18 11:33:54 +00:00
Qi Hou
ff8d132f05 i2c: add missing of_node_put in i2c_mux_del_adapters
am: ac4666a7fd

Change-Id: Ie22e63b6caf80fea9a4e0c254d5fd026880d03b6
2017-03-18 11:33:43 +00:00
Jonathan McDowell
7d6d9cc3fe dw2102: don't do DMA on stack
am: 06996254a6

Change-Id: Icd8feef0a97b7f6e04ec3b11b6c6d60993576ee8
2017-03-18 11:33:32 +00:00
Ard Biesheuvel
aa41ab12bc efi/arm: Fix boot crash with CONFIG_CPUMASK_OFFSTACK=y
am: 56d91e106b

Change-Id: Icae9067f39868600db4e4af8f272f8cb281759d6
2017-03-18 11:33:19 +00:00
Eric W. Biederman
4ee06d54ee ucount: Remove the atomicity from ucount->count
am: ee6f7ee1e4

Change-Id: I222bf26458f918b2481e0c14ce2b0bf5fd3c85d8
2017-03-18 11:33:08 +00:00
Rik van Riel
86791b193d tracing: Add #undef to fix compile error
am: 8bb208d02a

Change-Id: I0843add52207bee4705ac543ea4dca0f6d9370a1
2017-03-18 11:32:56 +00:00
Arnd Bergmann
2196850046 cpmac: remove hopeless #warning
am: b72ae5ca7a

Change-Id: If2cb8eea83efff5ac55cfa2534343c166a961b3a
2017-03-18 11:32:44 +00:00
Arnd Bergmann
df53f11d30 bcm63xx_enet: avoid uninitialized variable warning
am: 04275d2a8a

Change-Id: Iaa44475569e8d1ac6c52ee5a430b50513ecd9860
2017-03-18 11:32:33 +00:00
Arnd Bergmann
fa52efea65 MIPS: ralink: Remove unused rt*_wdt_reset functions
am: b7e968da04

Change-Id: I2758abfd66aff5cbb8b83efd7273b2a73a7fd192
2017-03-18 11:32:21 +00:00
Arnd Bergmann
4cd1d6980e MIPS: ralink: Remove unused timer functions
am: dd2419e1ce

Change-Id: Ib164f449eb5dc589d8218a200f32e0b654ee1222
2017-03-18 11:32:10 +00:00
John Crispin
fc19565dfd MIPS: ralink: Cosmetic change to prom_init().
am: f34064186f

Change-Id: Ic7f53d3408caec9d5826c81a8b4f26a049eb747b
2017-03-18 11:31:58 +00:00
Arnd Bergmann
1e11f0b721 mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy
am: 7b767f6b51

Change-Id: I51e1de17cb27e46a91d8b5d973c7cf886fde8654
2017-03-18 11:31:45 +00:00
Arnd Bergmann
cc88525bcc MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change
am: 976e40d7f6

Change-Id: I0aef806afeb5903816cf34ed667755dcfebe3bee
2017-03-18 11:31:34 +00:00
Arnd Bergmann
562751500f MIPS: ip22: Fix ip28 build for modern gcc
am: dd2ef28eb7

Change-Id: I4d741866ee9e03dd8044b2da4a592e2adf791a0a
2017-03-18 11:31:23 +00:00
Arnd Bergmann
f5c4bd1df7 MIPS: Update ip27_defconfig for SCSI_DH change
am: aff853abd2

Change-Id: Ide9c94948cbb7867f76f64dfd83da842a40d028b
2017-03-18 11:31:14 +00:00
Arnd Bergmann
6e433e1f71 MIPS: ip27: Disable qlge driver in defconfig
am: 23096c5678

Change-Id: I8b45128c19e0dada1e32534e35794bee76f66538
2017-03-18 11:31:04 +00:00
Arnd Bergmann
896f07c5b6 MIPS: VDSO: avoid duplicate CAC_BASE definition
am: ad8387a602

Change-Id: Ieb60782ea6590b8f05ca915dc509b065498e6355
2017-03-18 11:30:55 +00:00
Arnd Bergmann
9168c2db20 MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change
am: 5841e3d37d

Change-Id: Iaab06dcfe392c4d296dd7a61aea10b634aedb70f
2017-03-18 11:30:45 +00:00
Arnd Bergmann
02d0497227 crypto: improve gcc optimization flags for serpent and wp512
am: 2c1820ea8d

Change-Id: I91eec6fce2134750bf74ed18ffb547951171e0f1
2017-03-18 11:30:36 +00:00
Johan Hovold
51b6cf1ce1 USB: serial: digi_acceleport: fix OOB-event processing
am: ce4d67cb3e

Change-Id: I00f223196bb6b2831ae13c1bbd497e7b032bb443
2017-03-18 11:30:26 +00:00
Johan Hovold
cbec225bcd USB: serial: digi_acceleport: fix OOB data sanity check
am: e1533c4615

Change-Id: I11a587042880ad2b13633b9a761e2ecf744225af
2017-03-18 11:30:17 +00:00
Krzysztof Kozlowski
ce8ab5f168 serial: samsung: Continue to work if DMA request fails
commit f98c7bce57 upstream.

If DMA is not available (even when configured in DeviceTree), the driver
will fail the startup procedure thus making serial console not
available.

For example this causes boot failure on QEMU ARMv7 (Exynos4210, SMDKC210):
    [    1.302575] OF: amba_device_add() failed (-19) for /amba/pdma@12680000
    ...
    [   11.435732] samsung-uart 13800000.serial: DMA request failed
    [   72.963893] samsung-uart 13800000.serial: DMA request failed
    [   73.143361] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

DMA is not necessary for serial to work, so continue with UART startup
after emitting a warning.

Fixes: 62c37eedb7 ("serial: samsung: add dma reqest/release functions")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:33 +08:00
Johan Hovold
d0ef6ecee8 USB: serial: io_ti: fix information leak in completion handler
commit 654b404f2a upstream.

Add missing sanity check to the bulk-in completion handler to avoid an
integer underflow that can be triggered by a malicious device.

This avoids leaking 128 kB of memory content from after the URB transfer
buffer to user space.

Fixes: 8c209e6782 ("USB: make actual_length in struct urb field u32")
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:33 +08:00
Johan Hovold
449b0bb237 USB: serial: io_ti: fix NULL-deref in interrupt callback
commit 0b1d250afb upstream.

Fix a NULL-pointer dereference in the interrupt callback should a
malicious device send data containing a bad port number by adding the
missing sanity check.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:33 +08:00
Johan Hovold
f06b17020a USB: iowarrior: fix NULL-deref in write
commit de46e56653 upstream.

Make sure to verify that we have the required interrupt-out endpoint for
IOWarrior56 devices to avoid dereferencing a NULL-pointer in write
should a malicious device lack such an endpoint.

Fixes: 946b960d13 ("USB: add driver for iowarrior devices.")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:33 +08:00
Johan Hovold
653418adaf USB: iowarrior: fix NULL-deref at probe
commit b7321e81fc upstream.

Make sure to check for the required interrupt-in endpoint to avoid
dereferencing a NULL-pointer should a malicious device lack such an
endpoint.

Note that a fairly recent change purported to fix this issue, but added
an insufficient test on the number of endpoints only, a test which can
now be removed.

Fixes: 4ec0ef3a82 ("USB: iowarrior: fix oops with malicious USB descriptors")
Fixes: 946b960d13 ("USB: add driver for iowarrior devices.")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:33 +08:00
Johan Hovold
6d6c5895f4 USB: serial: omninet: fix reference leaks at open
commit 30572418b4 upstream.

This driver needlessly took another reference to the tty on open, a
reference which was then never released on close. This lead to not just
a leak of the tty, but also a driver reference leak that prevented the
driver from being unloaded after a port had once been opened.

Fixes: 4a90f09b20 ("tty: usb-serial krefs")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:32 +08:00
Johan Hovold
0ab90ddba7 USB: serial: safe_serial: fix information leak in completion handler
commit 8c76d7cd52 upstream.

Add missing sanity check to the bulk-in completion handler to avoid an
integer underflow that could be triggered by a malicious device.

This avoids leaking up to 56 bytes from after the URB transfer buffer to
user space.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:32 +08:00
Guenter Roeck
24db1c5a1c usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
commit dcc7620cad upstream.

Upstream commit 98d74f9cea ("xhci: fix 10 second timeout on removal of
PCI hotpluggable xhci controllers") fixes a problem with hot pluggable PCI
xhci controllers which can result in excessive timeouts, to the point where
the system reports a deadlock.

The same problem is seen with hot pluggable xhci controllers using the
xhci-plat driver, such as the driver used for Type-C ports on rk3399.
Similar to hot-pluggable PCI controllers, the driver for this chip
removes the xhci controller from the system when the Type-C cable is
disconnected.

The solution for PCI devices works just as well for non-PCI devices
and avoids the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:32 +08:00
Peter Chen
d863767907 usb: host: xhci-dbg: HCIVERSION should be a binary number
commit f95e60a7db upstream.

According to xHCI spec, HCIVERSION containing a BCD encoding
of the xHCI specification revision number, 0100h corresponds
to xHCI version 1.0. Change "100" as "0x100".

Cc: Lu Baolu <baolu.lu@linux.intel.com>
Fixes: 04abb6de28 ("xhci: Read and parse new xhci 1.1 capability register")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:32 +08:00
Roger Quadros
03123df08e Revert "usb: gadget: uvc: Add missing call for additional setup data"
commit eb38d913c2 upstream.

This reverts commit 4fbac5206a.

This commit breaks g_webcam when used with uvc-gadget [1].

The user space application (e.g. uvc-gadget) is responsible for
sending response to UVC class specific requests on control endpoint
in uvc_send_response() in uvc_v4l2.c.

The bad commit was causing a duplicate response to be sent with
incorrect response data thus causing UVC probe to fail at the host
and broken control transfer endpoint at the gadget.

[1] - git://git.ideasonboard.org/uvc-gadget.git

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:32 +08:00
Felipe Balbi
5ce2e4ce4a usb: gadget: function: f_fs: pass companion descriptor along
commit 2bfa0719ac upstream.

If we're dealing with SuperSpeed endpoints, we need
to make sure to pass along the companion descriptor
and initialize fields needed by the Gadget
API. Eventually, f_fs.c should be converted to use
config_ep_by_speed() like all other functions,
though.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:31 +08:00
Jelle Martijn Kok
40192c9666 usb: ohci-at91: Do not drop unhandled USB suspend control requests
commit 85550f9148 upstream.

In patch 2e2aa1bc7eff90ecm, USB suspend and wakeup control requests are
passed to SFR_OHCIICR register. If a processor does not have such a
register, this hub control request will be dropped.

If no such a SFR register is available, all USB suspend control requests
will now be processed using ohci_hub_control()
(like before patch 2e2aa1bc7eff90ecm.)

Tested on an Atmel AT91SAM9G20 with an on-board TI TUSB2046B hub chip
If the last USB device is unplugged from the USB hub, the hub goes into
sleep and will not wakeup when an USB devices is inserted.

Fixes: 2e2aa1bc7e ("usb: ohci-at91: Forcibly suspend ports while USB suspend")
Signed-off-by: Jelle Martijn Kok <jmkok@youcom.nl>
Tested-by: Wenyou Yang <wenyou.yang@atmel.com>
Cc: Wenyou Yang <wenyou.yang@atmel.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:31 +08:00