Commit Graph

637705 Commits

Author SHA1 Message Date
Sean Young
9ead931464 rc: raw decoder for keymap protocol is not loaded on register
am: 39df5977fd

Change-Id: I01431f5b64836454789cfb846c3a7c99a35cf771
2017-03-18 11:37:05 +00:00
Mikulas Patocka
04ab239838 dm: flush queued bios when process blocks to avoid deadlock
am: 21582cd0b6

Change-Id: I23e32d9f39d07a9a6178688aa78f7b0a10718408
2017-03-18 11:36:57 +00:00
Jintack Lim
f2b56a7662 KVM: arm/arm64: Let vcpu thread modify its own active state
am: d29e6215e5

Change-Id: Ie850ee7a02d3d66511b57b48eee7d80e03f630ad
2017-03-18 11:36:48 +00:00
Janosch Frank
8b551ea6ba KVM: s390: Fix guest migration for huge guests resulting in panic
am: 9d89c20f3b

Change-Id: I3a3b215e0e9254f87ccb05ee17a2bc7881fdd272
2017-03-18 11:36:38 +00:00
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
Sean Young
39df5977fd rc: raw decoder for keymap protocol is not loaded on register
commit 413808685d upstream.

When the protocol is set via the sysfs protocols attribute, the
decoder is loaded. However, when it is not when a device is first
plugged in or registered.

Fixes: acc1c3c ("[media] media: rc: load decoder modules on-demand")

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:34 +08:00
Mikulas Patocka
21582cd0b6 dm: flush queued bios when process blocks to avoid deadlock
commit d67a5f4b59 upstream.

Commit df2cb6daa4 ("block: Avoid deadlocks with bio allocation by
stacking drivers") created a workqueue for every bio set and code
in bio_alloc_bioset() that tries to resolve some low-memory deadlocks
by redirecting bios queued on current->bio_list to the workqueue if the
system is low on memory.  However other deadlocks (see below **) may
happen, without any low memory condition, because generic_make_request
is queuing bios to current->bio_list (rather than submitting them).

** the related dm-snapshot deadlock is detailed here:
https://www.redhat.com/archives/dm-devel/2016-July/msg00065.html

Fix this deadlock by redirecting any bios on current->bio_list to the
bio_set's rescue workqueue on every schedule() call.  Consequently,
when the process blocks on a mutex, the bios queued on
current->bio_list are dispatched to independent workqueus and they can
complete without waiting for the mutex to be available.

The structure blk_plug contains an entry cb_list and this list can contain
arbitrary callback functions that are called when the process blocks.
To implement this fix DM (ab)uses the onstack plug's cb_list interface
to get its flush_current_bio_list() called at schedule() time.

This fixes the snapshot deadlock - if the map method blocks,
flush_current_bio_list() will be called and it redirects bios waiting
on current->bio_list to appropriate workqueues.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1267650
Depends-on: df2cb6daa4 ("block: Avoid deadlocks with bio allocation by stacking drivers")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:34 +08:00
Jintack Lim
d29e6215e5 KVM: arm/arm64: Let vcpu thread modify its own active state
commit 370a0ec181 upstream.

Currently, if a vcpu thread tries to change the active state of an
interrupt which is already on the same vcpu's AP list, it will loop
forever. Since the VGIC mmio handler is called after a vcpu has
already synced back the LR state to the struct vgic_irq, we can just
let it proceed safely.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Jintack Lim <jintack@cs.columbia.edu>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:34 +08:00
Janosch Frank
9d89c20f3b KVM: s390: Fix guest migration for huge guests resulting in panic
commit 2e4d88009f upstream.

While we can technically not run huge page guests right now, we can
setup a guest with huge pages. Trying to migrate it will trigger a
VM_BUG_ON and, if the kernel is not configured to panic on a BUG, it
will happily try to work on non-existing page table entries.

With this patch, we always return "dirty" if we encounter a large page
when migrating. This at least fixes the immediate problem until we
have proper handling for both kind of pages.

Fixes: 15f36eb ("KVM: s390: Add proper dirty bitmap support to S390 kvm.")
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:34 +08: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