[PATCH 4.9 049/206] USB: serial: io_ti: fix another NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 4f9785cc99feeb3673993b471f646b4dbaec2cc1 upstream. In case a device is left in "boot-mode" we must not register any port devices in order to avoid a NULL-pointer dereference

[PATCH 4.9 048/206] USB: serial: io_ti: fix NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit a323fefc6f5079844dc62ffeb54f491d0242ca35 upstream. Fix NULL-pointer dereference when clearing halt at open should a malicious device lack the expected endpoints when in down

[PATCH 4.9 052/206] USB: serial: garmin_gps: fix memory leak on failed URB submit

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit c4ac4496e835b78a45dfbf74f6173932217e4116 upstream. Make sure to free the URB transfer buffer in case submission fails (e.g. due to a disconnect). Fixes: 1da177e4c3f4 ("Linu

[PATCH 4.9 028/206] USB: gadgetfs: fix unbounded memory allocation bug

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit faab50984fe6636e616c7cc3d30308ba391d36fd upstream. Andrey Konovalov reports that fuzz testing with syzkaller causes a KASAN warning in gadgetfs: BUG: KASAN: slab-out-of-bound

[PATCH 4.9 047/206] USB: serial: spcp8x5: fix NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit cc0909248258f679c4bb4cd315565d40abaf6bc6 upstream. Fix NULL-pointer dereference in open() should the device lack the expected endpoints: Unable to handle kernel NULL pointe

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-10 Thread Christoph Hellwig
On Tue, Jan 10, 2017 at 03:47:25PM +0300, Nikita Yushchenko wrote: > With this direction, semantics of dma mask becomes even more > questionable. I'd say dma_mask is candidate for removal (or to move to > swiotlb's or iommu's local area) We need the dma mask so that the device can advertise what a

[PATCH v2 1/1] ARM: dts: add Armadeus Systems OPOS6UL and OPOS6ULDEV support

2017-01-10 Thread Sébastien Szymanski
OPOS6UL is an i.MX6UL based SoM. OPOS6ULDev is a carrier board for the OPOS6UL SoM. For more details see: http://www.opossom.com/english/products-processor_boards-opos6ul.html http://www.opossom.com/english/products-development_boards-opos6ul_dev.html Signed-off-by: Sébastien Szymanski --- Chang

[PATCH 4.9 044/206] USB: serial: quatech2: fix sleep-while-atomic in close

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit f09d1886a41e9063b43da493ef0e845ac8afd2fa upstream. The write URB was being killed using the synchronous interface while holding a spin lock in close(). Simply drop the lock

[PATCH 4.9 041/206] usb: xhci: hold lock over xhci_abort_cmd_ring()

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lu Baolu commit 4dea70778c0f48b4385c7720c363ec8d37a401b4 upstream. In command timer function, xhci_handle_command_timeout(), xhci->lock is unlocked before call into xhci_abort_cmd_ring(). This

[PATCH 4.9 040/206] xhci: Handle command completion and timeout race

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit a5a1b9514154437aa1ed35c291191f82fd3e941a upstream. If we get a command completion event at the same time as the command timeout work starts on another cpu we might end up a

[PATCH 4.9 043/206] USB: serial: omninet: fix NULL-derefs at open and disconnect

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit a5bc01949e3b19d8a23b5eabc6fc71bb50dc820e upstream. Fix NULL-pointer dereferences at open() and disconnect() should the device lack the expected bulk-out endpoints: Unable t

[PATCH 4.9 037/206] xhci: free xhci virtual devices with leaf nodes first

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit ee8665e28e8d90ce69d4abe5a469c14a8707ae0e upstream. the tt_info provided by a HS hub might be in use to by a child device Make sure we free the devices in the correct order.

[PATCH 4.9 038/206] usb: xhci: fix return value of xhci_setup_device()

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lu Baolu commit 90797aee5d6902b49a453c97d83c326408aeb5a8 upstream. xhci_setup_device() should return failure with correct error number when xhci host has died, removed or halted. During usb de

[PATCH 4.9 039/206] usb: host: xhci: Fix possible wild pointer when handling abort command

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Baolin Wang commit 2a7cfdf37b7c08ac29df4c62ea5ccb01474b6597 upstream. When current command was supposed to be aborted, host will free the command in handle_cmd_completion() function. But it mig

Re: [PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8

2017-01-10 Thread Boris Ostrovsky
On 01/10/2017 08:32 AM, Juergen Gross wrote: > The default for the number of tx/rx queues of one interface is the > number of vcpus of the system today. As each queue pair reserves 512 > grant pages this default consumes a ridiculous number of grants for > large guests. > > Limit the queue number t

[PATCH 4.9 027/206] usb: gadgetfs: restrict upper bound on device configuration size

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 0994b0a257557e18ee8f0b7c5f0f73fe2b54eec1 upstream. Andrey Konovalov reported that we were not properly checking the upper limit before of a device configuration size b

[PATCH 4.9 006/206] ALSA: hda - Apply asus-mode8 fixup to ASUS X71SL

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c7efff9284dfde95a11aaa811c9d8ec8167f0f6e upstream. Although the old quirk table showed ASUS X71SL with ALC663 codec being compatible with asus-mode3 fixup, the bugzilla repo

[PATCH 4.9 002/206] iio: max44000: correct value in illuminance_integration_time_available

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit b4e8a0eb718749455601fa7b283febc42cca8957 upstream. According to the datasheet, the shortest available integration time for ALS ADC conversion is 1.5625ms but illuminance_int

[PATCH 4.9 004/206] staging: octeon: Call SET_NETDEV_DEV()

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit e7c9a3d9e432200fd4c17855c2c23ac784d6e833 upstream. The Octeon driver calls into PHYLIB which now checks for net_device->dev.parent, so make sure we do set it before call

[PATCH 4.9 012/206] ARM: davinci: da850: dont add emac clock to lookup table twice

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bartosz Golaszewski commit ef37427ac5677331145ab27a17e6f5f1b43f0c11 upstream. Similarly to the aemif clock - this screws up the linked list of clock children. Create a separate clock for mdio i

[RESEND PATCH v14 0/2] New debugfs API for capturing CRC of frames

2017-01-10 Thread Tomeu Vizoso
Hi, here are the last two patches that remain to be merged in this series, rebased on today's drm-tip. Thanks, Tomeu Tomeu Vizoso (2): drm/i915: Use new CRC debugfs API drm/i915: Put "cooked" vlank counters in frame CRC lines drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/

[PATCH 4.9 025/206] usb: musb: dsps: implement clear_ep_rxintr() callback

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bin Liu commit c48400baa02155a5ddad63e8554602e48782278c upstream. During dma teardown for dequque urb, if musb load is high, musb might generate bogus rx ep interrupt even when the rx fifo is f

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-10 Thread Lorenzo Pieralisi
On Tue, Jan 10, 2017 at 09:39:39PM +0800, Hanjun Guo wrote: [...] > >What you can do is create a wrapper, say iort_node_map_platform_id() > >(whose signature is equivalent to iort_node_map_rid() minus rid_in) > >that carries out the two steps outlined above. > > > >To do that I suggest the follow

RE: [PATCH] ARM: imx: hide unused variable in #ifdef

2017-01-10 Thread Frank Li
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Tuesday, January 10, 2017 6:19 AM > To: Shawn Guo > Cc: Thomas Gleixner ; Arnd Bergmann > ; Sascha Hauer ; Fabio Estevam > ; Russell King ; Frank Li > ; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.ke

[PATCH 4.9 007/206] ALSA: usb-audio: Fix irq/process data synchronization

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ioan-Adrian Ratiu commit 1d0f953086f090a022f2c0e1448300c15372db46 upstream. Commit 16200948d83 ("ALSA: usb-audio: Fix race at stopping the stream") was incomplete causing another more severe ke

[PATCH 4.9 010/206] parisc: Mark cr16 clocksource unstable on SMP systems

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 41744213602a206f24adcb4a2b7551db3c700e72 upstream. The cr16 interval timer of each CPU is not syncronized to other cr16 timers in other CPUs in a SMP system. So, delay the r

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-10 Thread Christoph Hellwig
On Tue, Jan 10, 2017 at 01:25:12PM +, Robin Murphy wrote: > We still need a way for drivers to communicate a device's probed > addressing capability to SWIOTLB, so there's always going to have to be > *some* sort of public interface. Personally, the change in semantics I'd > like to see is to m

[RESEND PATCH v14 2/2] drm/i915: Put "cooked" vlank counters in frame CRC lines

2017-01-10 Thread Tomeu Vizoso
Use drm_accurate_vblank_count so we have the full 32 bit to represent the frame counter and userspace has a simpler way of knowing when the counter wraps around. Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov Reviewed-by: Robert Foss --- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 1 fi

[PATCH 4.4 089/101] crypto: arm64/aes-neon - fix for big endian

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit a2c435cc99862fd3d165e1b66bf48ac72c839c62 upstream. The AES implementation using pure NEON instructions relies on the generic AES key schedule generation routines, which st

[PATCH 4.9 011/206] HID: sensor-hub: Move the memset to sensor_hub_get_feature()

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Srinivas Pandruvada commit 143fca77cce906d35f7a60ccef648e888df589f2 upstream. While applying patch d443a0aa3a29: "HID: hid-sensor-hub: clear memory to avoid random data", there was some issues

[RESEND PATCH v14 1/2] drm/i915: Use new CRC debugfs API

2017-01-10 Thread Tomeu Vizoso
The core provides now an ABI to userspace for generation of frame CRCs, so implement the ->set_crc_source() callback and reuse as much code as possible with the previous ABI implementation. When handling the pageflip interrupt, we skip 1 or 2 frames depending on the HW because they contain wrong v

[PATCH 4.4 090/101] crypto: arm64/sha1-ce - fix for big endian

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit ee71e5f1e7d25543ee63a80451871f8985b8d431 upstream. The SHA1 digest is an array of 5 32-bit quantities, so we should refer to them as such in order for this code to work co

[PATCH 4.4 092/101] crypto: arm64/aes-ce - fix for big endian

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 1803b9a52c4e5a5dbb8a27126f6bc06939359753 upstream. The core AES cipher implementation that uses ARMv8 Crypto Extensions instructions erroneously loads the round keys as 64

[PATCH 4.4 087/101] crypto: arm/aes-ce - fix for big endian

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 58010fa6f71c9577922b22e46014b95a4ec80fa0 upstream. The AES key schedule generation is mostly endian agnostic, with the exception of the rotation and the incorporation of t

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-10 Thread Christoph Hellwig
On Tue, Jan 10, 2017 at 02:42:23PM +0100, Arnd Bergmann wrote: > It's a much rarer problem for the IOMMU case though, because it only > impacts devices that are restricted to addressing of less than 32-bits. > > If you have an IOMMU enabled, the dma-mapping interface does not care > if the device

Re: [PATCH v2 0/4] hv_util: adjust system time smoothly

2017-01-10 Thread Thomas Gleixner
Vitaly, On Tue, 10 Jan 2017, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: > > 1) do_adjtimex() is assuming that there is a single client connected which > >is responsible for the updates. So I seriously doubt that a NTP client > >running in the guest will cooperate nicely with that t

[PATCH 4.4 099/101] [media] cx23885-dvb: move initialization of a8293_pdata

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Mauro Carvalho Chehab commit f0b0faff78c2c2e8efe843de55405a1f0470b8c4 upstream. Smatch complains about where the au8293_data is placed: drivers/media/pci/cx23885/cx23885-dvb.c:2174 dvb_registe

[PATCH 4.4 085/101] crypto: arm64/sha2-ce - fix for big endian

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 174122c39c369ed924d2608fc0be0171997ce800 upstream. The SHA256 digest is an array of 8 32-bit quantities, so we should refer to them as such in order for this code to work

[PATCH 4.9 001/206] iio: common: st_sensors: fix channel data parsing

2017-01-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lorenzo Bianconi commit 65c8aea07de11b6507efa175edb44bd8b4488218 upstream. Using realbits as i2c/spi read len, when that value is not byte aligned (e.g 12 bits), lead to skip msb part of out da

[PATCH 4.4 098/101] net: vxge: avoid unused function warnings

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 57e7c8cef224af166b8ec932b5e383641418c005 upstream. When CONFIG_PCI_MSI is disabled, we get warnings about unused functions in the vxge driver: drivers/net/ethernet/neterio

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-10 Thread Arnd Bergmann
On Tuesday, January 10, 2017 1:25:12 PM CET Robin Murphy wrote: > On 10/01/17 12:47, Nikita Yushchenko wrote: > >> The point here is that an IOMMU doesn't solve your issue, and the > >> IOMMU-backed DMA ops need the same treatment. In light of that, it really > >> feels to me like the DMA masks sho

[PATCH 4.4 082/101] PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren commit bed570307ed78f21b77cb04a1df781dee4a8f05a upstream. I noticed some wakeirq flakeyness with consumer drivers not using autosuspend. For drivers not using autosuspend, the wak

Re: [PATCH] checkpatch: don't warn on every struct without const_structs file

2017-01-10 Thread Joe Perches
On Tue, 2017-01-10 at 15:03 +0100, Johannes Berg wrote: > From: Johannes Berg > > The script says that it won't warn: > "No structs that should be const will be found [...]" > > but then that doesn't work and it warns on every single struct > instead, since the regular expression ends up empty.

[PATCH 4.4 048/101] xhci: Use delayed_work instead of timer for command timeout

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: OGAWA Hirofumi commit cb4d5ce588c5ff68e0fdd30370a0e6bc2c0a736b upstream. This is preparation to fix abort operation race (See "xhci: Fix race related to abort operation"). To make timeout sleep

[PATCH 4.4 084/101] s390/crypto: unlock on error in prng_tdes_read()

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 9e6e7c74315095fd40f41003850690c711e44420 upstream. We added some new locking but forgot to unlock on error. Fixes: 57127645d79d ("s390/zcrypt: Introduce new SHA-512 based

Re: [PATCH 1/2] xen/netfront: set default upper limit of tx/rx queues to 8

2017-01-10 Thread Juergen Gross
On 10/01/17 15:53, Boris Ostrovsky wrote: > On 01/10/2017 08:32 AM, Juergen Gross wrote: >> The default for the number of tx/rx queues of one interface is the >> number of vcpus of the system today. As each queue pair reserves 512 >> grant pages this default consumes a ridiculous number of grants f

Re: [PATCH 1/2] arm64: dma_mapping: allow PCI host driver to limit DMA mask

2017-01-10 Thread Arnd Bergmann
On Tuesday, January 10, 2017 3:44:53 PM CET Christoph Hellwig wrote: > On Tue, Jan 10, 2017 at 11:47:42AM +0100, Arnd Bergmann wrote: > > I see that we have CONFIG_ARCH_PHYS_ADDR_T_64BIT on a couple of > > 32-bit architectures without swiotlb (arc, arm, some mips32), and > > there are several 64-bi

[PATCH 4.4 081/101] irqchip/bcm7038-l1: Implement irq_cpu_offline() callback

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 34c535793bcbf9263cf22f8a52101f796cdfab8e upstream. We did not implement an irq_cpu_offline callback for our irqchip, yet we support setting a given IRQ's affinity. This

[PATCH 4.4 041/101] USB: serial: kobil_sct: fix NULL-deref in write

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 21ce57840243c7b70fbc1ebd3dceeb70bb6e9e09 upstream. Fix NULL-pointer dereference in write() should the device lack the expected interrupt-out endpoint: Unable to handle kern

[PATCH 4.4 095/101] staging: comedi: dt282x: tidy up register bit defines

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: H Hartley Sweeten commit f6b1160eb27f990cc1c48b67a5f83cb63115284e upstream. Arnd Bergmann pointed out that gcc-6 warns about passing negative signed integer into swab16() due to the macro expan

[PATCH 4.4 049/101] xhci: Fix race related to abort operation

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: OGAWA Hirofumi commit 1c111b6c3844a142e03bcfc2fa17bfbdea08e9dc upstream. Current abort operation has race. xhci_handle_command_timeout() xhci_abort_cmd_ring() xhci_write_64(C

[PATCH 4.4 044/101] USB: serial: mos7720: fix use-after-free on probe errors

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 91a1ff4d53c5184d383d0baeeaeab6f9736f2ff3 upstream. The interrupt URB was submitted on probe but never stopped on probe errors. This can lead to use-after-free issues in the

[PATCH 4.4 079/101] scsi: mvsas: fix command_active typo

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit af15769ffab13d777e55fdef09d0762bf0c249c4 upstream. gcc-7 notices that the condition in mvs_94xx_command_active looks suspicious: drivers/scsi/mvsas/mv_94xx.c: In function

[PATCH 4.4 045/101] USB: serial: mos7720: fix parport use-after-free on probe errors

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 75dd211e773afcbc264677b0749d1cf7d937ab2d upstream. Do not submit the interrupt URB until after the parport has been successfully registered to avoid another use-after-free i

[PATCH 4.4 072/101] clk: clk-wm831x: fix a logic error

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Pan Bian commit 20979202ee6e4c68dab7bcf408787225a656d18e upstream. Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188561. Function wm831x_clkout_is_prepared() returns "true" when it fails

[PATCH 4.4 076/101] iommu/vt-d: Fix pasid table size encoding

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jacob Pan commit 65ca7f5f7d1cdde6c25172fe6107cd16902f826f upstream. Different encodings are used to represent supported PASID bits and number of PASID table entries. The current code assigns ec

Re: [PATCH v2] arm64: do not set dma masks that device connection can't handle

2017-01-10 Thread Arnd Bergmann
On Tuesday, January 10, 2017 2:16:57 PM CET Robin Murphy wrote: > On 10/01/17 13:42, Arnd Bergmann wrote: > > On Tuesday, January 10, 2017 1:25:12 PM CET Robin Murphy wrote: > >> On 10/01/17 12:47, Nikita Yushchenko wrote: > The point here is that an IOMMU doesn't solve your issue, and the > >

[PATCH 4.4 077/101] iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Xunlei Pang commit aec0e86172a79eb5e44aff1055bb953fe4d47c59 upstream. We met the DMAR fault both on hpsa P420i and P421 SmartArray controllers under kdump, it can be steadily reproduced on seve

[PATCH 4.4 074/101] iommu/amd: Missing error code in amd_iommu_init_device()

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 24c790fbf5d8f54c8c82979db11edea8855b74bf upstream. We should set "ret" to -EINVAL if iommu_group_get() fails. Fixes: 55c99a4dc50f ("iommu/amd: Use iommu_attach_group()") S

[PATCH 4.4 071/101] hwmon: (g762) Fix overflows and crash seen when writing limit attributes

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 4fccd4a1e8944033bcd7693ea4e8fb478cd2059a upstream. Fix overflows seen when writing into fan speed limit attributes. Also fix crash due to division by zero, seen when certai

[PATCH 4.4 075/101] iommu/amd: Fix the left value check of cmd buffer

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Huang Rui commit 432abf68a79332282329286d190e21fe3ac02a31 upstream. The generic command buffer entry is 128 bits (16 bytes), so the offset of tail and head pointer should be 16 bytes aligned an

[PATCH 4.4 069/101] hwmon: (ds620) Fix overflows seen when writing temperature limits

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit e36ce99ee0815d7919a7b589bfb66f3de50b6bc7 upstream. Module test reports: temp1_max: Suspected overflow: [16 vs. 0] temp1_min: Suspected overflow: [16 vs. 0] This i

Re: [PATCH] checkpatch: don't warn on every struct without const_structs file

2017-01-10 Thread Johannes Berg
On Tue, 2017-01-10 at 07:01 -0800, Joe Perches wrote: > On Tue, 2017-01-10 at 15:03 +0100, Johannes Berg wrote: > > From: Johannes Berg > > > > The script says that it won't warn: > > "No structs that should be const will be found [...]" > > > > but then that doesn't work and it warns on every s

[PATCH 4.4 093/101] md: MD_RECOVERY_NEEDED is set for mddev->recovery

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Shaohua Li commit 82a301cb0ea2df8a5c88213094a01660067c7fb4 upstream. Fixes: 90f5f7ad4f38("md: Wait for md_check_recovery before attempting device removal.") Reviewed-by: NeilBrown Signed-off-

[PATCH 1/2] ipmi: make ipmi_usr_hndl const

2017-01-10 Thread minyard
From: Corey Minyard It's only function pointers. Signed-off-by: Corey Minyard --- drivers/char/ipmi/ipmi_devintf.c| 2 +- drivers/char/ipmi/ipmi_msghandler.c | 4 ++-- drivers/char/ipmi/ipmi_watchdog.c | 2 +- include/linux/ipmi.h| 2 +- 4 files changed, 5 insertions(+),

Re: NVMe vs DMA addressing limitations

2017-01-10 Thread Arnd Bergmann
On Tuesday, January 10, 2017 3:48:39 PM CET Christoph Hellwig wrote: > On Tue, Jan 10, 2017 at 12:01:05PM +0100, Arnd Bergmann wrote: > > Another workaround me might need is to limit amount of concurrent DMA > > in the NVMe driver based on some platform quirk. The way that NVMe works, > > it can ha

[PATCH 4.4 061/101] usb: dwc3: gadget: always unmap EP0 requests

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felipe Balbi commit d62145929992f331fdde924d5963ab49588ccc7d upstream. commit 0416e494ce7d ("usb: dwc3: ep0: correct cache sync issue in case of ep0_bounced") introduced a bug where we would le

[PATCH 4.4 067/101] hwmon: (scpi) Fix module autoload

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 13edb767aa609b6efb7c0c2b57fbd72a6ded0eed upstream. If the driver is built as a module, autoload won't work because the module alias information is not filled. So

[PATCH 4.4 054/101] ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 4763601a56f155ddf94ef35fc2c41504a2de15f5 upstream. The function returns -EINVAL even if it builds the stream properly. The bogus error code sneaked in during the code refact

[PATCH 4.4 055/101] USB: serial: kl5kusb105: abort on open exception path

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Pan Bian commit 3c3dd1e058cb01e835dcade4b54a6f13ffaeaf7c upstream. Function klsi_105_open() calls usb_control_msg() (to "enable read") and checks its return value. When the return value is unex

Re: [PATCH] PCI: designware: fix asynchronous external abort in keystone PCIe h/w

2017-01-10 Thread Bjorn Helgaas
Hi Murali, On Wed, Jan 04, 2017 at 02:32:30PM -0500, Murali Karicheri wrote: > Recent fixes for iATU unroll support introduced a bug that causes > asynchronous external abort in Keystone PCIe h/w which doesn't have > ATU port and the corresponding register. So the check should be moved > below whe

[PATCH 0/2] ipmi: Make ipmi_usr_hndl const

2017-01-10 Thread minyard
This makes the handlers for IPMI users able to be const, then sets all the users const. Trivial, but I need an ack from the ACPI people on this. Thanks.

[PATCH] serial: 8250_port: Remove dangerous pr_debug()

2017-01-10 Thread Alexey Brodkin
With CONFIG_DYNAMIC_DEBUG if dyndbg enables debug output in 8250_port.c deadlock happens inevitably on UART IRQ handling. That's the problematic execution path: >8 UART IRQ: serial8250_interrupt() -> serial8250_handle_irq(): lock "port->loc

Re: [PATCH v2] vfio/pci: Support error recovery

2017-01-10 Thread Michael S. Tsirkin
On Tue, Jan 10, 2017 at 07:46:17PM +0800, Cao jin wrote: > > > On 01/10/2017 07:04 AM, Michael S. Tsirkin wrote: > > On Sat, Dec 31, 2016 at 05:15:36PM +0800, Cao jin wrote: > >> Support serious device error recovery > > > > serious? > > > > Sorry for my poor vocabulary if it confuses people. I

[PATCH 4.4 057/101] USB: phy: am335x-control: fix device and of_node leaks

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 015105b12183556771e111e93f5266851e7c5582 upstream. Make sure to drop the references taken by of_parse_phandle() and bus_find_device() before returning from am335x_get_phy_co

[PATCH 4.4 064/101] stable-fixup: hotplug: fix unused function warning

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann [resolves a messed up backport, so no matching upstream commit] The backport of upstream commit 777c6e0daebb ("hotplug: Make register and unregister notifier API symmetric") to li

[PATCH 4.4 043/101] USB: serial: mos7720: fix NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit b05aebc25fdc5aeeac3ee29f0dc9f58dd07c13cc upstream. Fix NULL-pointer dereference at port open if a device lacks the expected bulk in and out endpoints. Unable to handle kern

[PATCH 4.4 059/101] mei: bus: fix mei_cldev_enable KDoc

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Usyskin commit 5026c9cb0744a9cd40242743ca91a5d712f468c6 upstream. Adjust function name in KDoc. Fixes: d49dc5e76fc9 (mei: bus: use mei_cldev_ prefix for the API functions) Signed-off

[PATCH 4.4 058/101] USB: serial: io_ti: bind to interface after fw download

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit e35d6d7c4e6532a89732cf4bace0e910ee684c88 upstream. Bind to the interface, but do not register any ports, after having downloaded the firmware. The device will still disconne

[PATCH 4.4 065/101] ath10k: use the right length of "background"

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit 31b239824ece321c09bdb8e61e1d14814eaba38b upstream. The word "background" contains 10 characters so the third argument of strncmp() need to be 10 in order to match this pref

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-10 Thread Hanjun Guo
Hi Lorenzo, On 2017/1/5 23:15, Lorenzo Pieralisi wrote: On Thu, Jan 05, 2017 at 08:45:37PM +0800, Hanjun Guo wrote: Hi Lorenzo, On 2017/1/5 3:18, Lorenzo Pieralisi wrote: On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify it

[PATCH 4.4 036/101] USB: serial: garmin_gps: fix memory leak on failed URB submit

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit c4ac4496e835b78a45dfbf74f6173932217e4116 upstream. Make sure to free the URB transfer buffer in case submission fails (e.g. due to a disconnect). Fixes: 1da177e4c3f4 ("Linu

[PATCH 4.4 004/101] ARM: davinci: da850: dont add emac clock to lookup table twice

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bartosz Golaszewski commit ef37427ac5677331145ab27a17e6f5f1b43f0c11 upstream. Similarly to the aemif clock - this screws up the linked list of clock children. Create a separate clock for mdio i

[PATCH 4.4 038/101] USB: serial: io_edgeport: fix NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 0dd408425eb21ddf26a692b3c8044c9e7d1a7948 upstream. Fix NULL-pointer dereference when initialising URBs at open should a non-EPIC device lack a bulk-in or interrupt-in endpoi

Re: [PATCH] vhost: scsi: constify target_core_fabric_ops structures

2017-01-10 Thread Michael S. Tsirkin
On Tue, Jan 10, 2017 at 06:11:25PM +0530, Bhumika Goyal wrote: > On Tue, Jan 10, 2017 at 10:41 AM, Michael S. Tsirkin wrote: > > On Mon, Jan 09, 2017 at 08:51:02PM +0530, Bhumika Goyal wrote: > >> Declare target_core_fabric_ops strucrues as const as they are only > >> passed as an argument to the

[PATCH 4.4 000/101] 4.4.42-stable review

2017-01-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.42 release. There are 101 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Jan 12 13:15:04 UTC 2017. Anything receiv

Re: linux-next: build failure after merge of the net-next tree

2017-01-10 Thread Ursula Braun
ACK - smc_splice_read() is just a place holder at the moment. Its implementation for AF_SMC will follow. Regards, Ursula Braun On 01/10/2017 12:59 AM, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > n

[PATCH 4.4 028/101] USB: serial: quatech2: fix sleep-while-atomic in close

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit f09d1886a41e9063b43da493ef0e845ac8afd2fa upstream. The write URB was being killed using the synchronous interface while holding a spin lock in close(). Simply drop the lock

[PATCH 4.4 019/101] usb: xhci: fix possible wild pointer

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Lu Baolu commit 2b985467371a58ae44d76c7ba12b0951fee6ed98 upstream. handle_cmd_completion() frees a command structure which might be still referenced by xhci->current_cmd. This might cause probl

[PATCH 4.4 027/101] USB: serial: omninet: fix NULL-derefs at open and disconnect

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit a5bc01949e3b19d8a23b5eabc6fc71bb50dc820e upstream. Fix NULL-pointer dereferences at open() and disconnect() should the device lack the expected bulk-out endpoints: Unable t

[PATCH 4.4 020/101] xhci: workaround for hosts missing CAS bit

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 346e99736c3ce328fd42d678343b70243aca5f36 upstream. If a device is unplugged and replugged during Sx system suspend some Intel xHC hosts will overwrite the CAS (Cold attach

[GIT PULL] vtime: Delay cputime accounting to tick / context switch

2017-01-10 Thread Frederic Weisbecker
Ingo, Thomas, Please pull the vtime/accumulate-for-tip branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git vtime/accumulate-for-tip HEAD: 0fe66425659da25269280c106f39b333a0cfb9a9 --- The cputime accounting functions (account_system_time

[PATCH 4.4 018/101] usb: dwc3: core: avoid Overflow events

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felipe Balbi commit e71d363d9c611c99fb78f53bfee99616e7fe352c upstream. Now that we're handling so many transfers at a time and for some dwc3 revisions LPM events *must* be enabled, we can fall

[PATCH 4.4 031/101] USB: serial: spcp8x5: fix NULL-deref at open

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit cc0909248258f679c4bb4cd315565d40abaf6bc6 upstream. Fix NULL-pointer dereference in open() should the device lack the expected endpoints: Unable to handle kernel NULL pointe

[PATCH 4.4 003/101] ALSA: usb-audio: Fix irq/process data synchronization

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ioan-Adrian Ratiu commit 1d0f953086f090a022f2c0e1448300c15372db46 upstream. Commit 16200948d83 ("ALSA: usb-audio: Fix race at stopping the stream") was incomplete causing another more severe ke

Re: [PATCH v6 0/2] Support for Axentia TSE-850

2017-01-10 Thread Alexandre Belloni
On 10/01/2017 at 14:18:32 +0100, Peter Rosin wrote : > Hi! > > changes v5 -> v6 > - drop the &main clock-frequency > - add some text to the commit messages > - make config additions modules > > changes v4 -> v5 > - comment from Rob about the memory node made me look closer and > the memory size

[PATCH 4.4 024/101] usb: host: xhci: Fix possible wild pointer when handling abort command

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Baolin Wang commit 2a7cfdf37b7c08ac29df4c62ea5ccb01474b6597 upstream. When current command was supposed to be aborted, host will free the command in handle_cmd_completion() function. But it mig

[PATCH 4.4 001/101] ALSA: hda - Fix up GPIO for ASUS ROG Ranger

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 85bcf96caba8b4a7c080638629ba3c67ea0c upstream. ASUS ROG Ranger VIII with ALC1150 codec requires the extra GPIO pin to up for the front panel. Just use the existing fixu

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-10 Thread Dong Aisheng
On Fri, Jan 6, 2017 at 8:41 AM, Clemens Gruber wrote: > Hi, > > with the current mainline 4.10-rc2 kernel, I can no longer boot from > the eMMC on my i.MX6Q board. > > Details: > The eMMC is a Micron MTFC4GACAJCN-1M WT but as the i.MX6Q only supports > eMMC 4.41 features and we did not implement v

[PATCH 4.4 015/101] USB: fix problems with duplicate endpoint addresses

2017-01-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 0a8fd1346254974c3a852338508e4a4cddbb35f1 upstream. When checking a new device's descriptors, the USB core does not check for duplicate endpoint addresses. This can cause a pr

<    1   2   3   4   5   6   7   8   9   10   >