[PATCH 4.13 56/85] clockevents/drivers/cs5535: Improve resilience to spurious interrupts

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: David Kozub commit eb39a7c0355393c5a8d930f342ad7a6231b552c4 upstream. The interrupt handler mfgpt_tick() is not robust versus spurious interrupts which happen before the clock event device is

[PATCH 4.13 53/85] brcmsmac: make some local variables static const to reduce stack size

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit c503dd38f850be28867ef7a42d9abe5ade81a9bd upstream. With KASAN and a couple of other patches applied, this driver is one of the few remaining ones that actually use more th

[PATCH 4.13 54/85] ARM: dts: sun6i: Fix endpoint IDs in second display pipeline

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Chen-Yu Tsai commit a231d2783c332ef3e3ba238e82dbe599ff41ba14 upstream. When the second display pipeline device nodes for the A31/A31s were added, it was not known that the TCONs could (through

Re: [PATCH v7 0/5] generate full callchain cursor entries for inlined frames

2017-10-24 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 23, 2017 at 09:39:57PM +0200, Milian Wolff escreveu: > So to fix this all, I guess the suggested approach by Namhyung would be best, > i.e. fixup my initial match_addresses to take the map, and then if the map is > valid also take the dso into account when comparing the addresses: >

Re: [PATCH] staging: greybus: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
On Tue, Oct 24, 2017 at 5:52 AM, Bryan O'Donoghue wrote: > On 24/10/17 13:47, Kees Cook wrote: >> >> On Tue, Oct 24, 2017 at 2:40 AM, Bryan O'Donoghue >> wrote: >>> >>> On 24/10/17 10:35, Bryan O'Donoghue wrote: On 24/10/17 09:25, Kees Cook wrote: > > > In preparation f

[PATCH 4.13 10/85] scsi: qla2xxx: Fix uninitialized work element

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit a9e170e28636fd577249f39029d59e4e960a42b8 upstream. Fixes following stack trace kernel: Call Trace: kernel: dump_stack+0x63/0x84 kernel: __warn+0xd1/0xf0 kernel: warn_slowpat

[PATCH 4.13 03/85] USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 1c0edc3633b56000e18d82fc241e3995ca18a69e upstream. Andrey used the syzkaller fuzzer to find an out-of-bounds memory access in usb_get_bos_descriptor(). The code wasn't check

[PATCH 4.13 12/85] s390/cputime: fix guest/irq/softirq times after CPU hotplug

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit b7662eef14caf4f582d453d45395825b5a8f594c upstream. On CPU hotplug some cpu stats contain bogus values: $ cat /proc/stat cpu 0 0 49 1280 0 0 0 3 0 0 cpu0 0 0 49 61

Re: [PATCH] x86/mm/64: Rename the argument 'size' as 'nr_pages' in register_page_bootmem_memmap

2017-10-24 Thread Ingo Molnar
* Baoquan He wrote: > For register_page_bootmem_memmap(), the 3rd argument 'size' indicates > the number of pages which are inside the memory section, not a size. > > Signed-off-by: Baoquan He > --- > arch/x86/mm/init_64.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

[PATCH 4.13 08/85] ALSA: usb-audio: Add native DSD support for Pro-Ject Pre Box S2 Digital

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Jussi Laako commit 9bb201a5d5acc733943e8af7151cceab9d976a69 upstream. Add native DSD support quirk for Pro-Ject Pre Box S2 Digital USB id 2772:0230. Signed-off-by: Jussi Laako Signed-off-by:

Re: [PATCH] staging: greybus: Convert timers to use timer_setup()

2017-10-24 Thread Bryan O'Donoghue
On 24/10/17 14:14, Kees Cook wrote: On Tue, Oct 24, 2017 at 5:52 AM, Bryan O'Donoghue wrote: On 24/10/17 13:47, Kees Cook wrote: On Tue, Oct 24, 2017 at 2:40 AM, Bryan O'Donoghue wrote: On 24/10/17 10:35, Bryan O'Donoghue wrote: On 24/10/17 09:25, Kees Cook wrote: In preparation for

[PATCH 4.13 36/85] mmc: sdhci-pci: Fix default d3_retune for Intel host controllers

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit eb701ce16a45ed9880897c48f05ee608d77c72e3 upstream. The default for d3_retune is true, but that was not being set in all cases, which results in eMMC errors because re-tuni

[PATCH 4.13 34/85] can: flexcan: fix p1010 state transition issue

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: ZHU Yi (ST-FIR/ENG1-Zhu) commit fb5b91d61bebc24686ffc379138fd67808b1a1e6 upstream. Enable FLEXCAN_QUIRK_BROKEN_WERR_STATE and FLEXCAN_QUIRK_BROKEN_PERR_STATE for p1010 to report correct state

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-10-24 Thread Marek Szyprowski
Hi Huacai, On 2017-10-23 09:12, Huacai Chen wrote: Make dma_get_cache_alignment() to accept a 'dev' argument. As a result, it can return different alignments due to different devices' I/O cache coherency. Currently, ARM/ARM64 and MIPS support coherent & noncoherent devices co-exist. This may be

Re: [PATCH V3 0/6] event synthesization multithreading for perf record

2017-10-24 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 02:59:44PM +0200, Ingo Molnar escreveu: > > * Jiri Olsa wrote: > > > I recently made some changes on threaded record, which are based > > on Namhyungs time* API, which is needed to read/sort the data afterwards > > > > but I wasn't able to get any substantial and constan

[PATCH 4.13 18/85] USB: musb: fix late external abort on suspend

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 0c3aae9bd59978fb8c3557d7883380bef0f2cfa1 upstream. The musb delayed irq work was never flushed on suspend, something which since 4.9 can lead to an external abort if the wo

[PATCH 4.13 15/85] iio: dummy: events: Add missing break

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit be94a6f6d488b4767662e8949dc62361bd1d6311 upstream. Add missing break in iio_simple_dummy_write_event_config() for the voltage threshold event enable attribute. Withou

[PATCH 4.13 02/85] USB: devio: Revert "USB: devio: Dont corrupt user memory"

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 845d584f41eac3475c21e4a7d5e88d0f6e410cf7 upstream. Taking the uurb->buffer_length userspace passes in as a maximum for the actual urbs transfer_buffer_length causes 2 seri

[PATCH 4.13 04/85] USB: serial: metro-usb: add MS7820 device id

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 31dc3f819bac28a0990b36510197560258ab7421 upstream. Add device-id entry for (Honeywell) Metrologic MS7820 bar code scanner. The device has two interfaces (in this mode?); a

[PATCH 4.13 01/85] staging: bcm2835-audio: Fix memory corruption

2017-10-24 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Phil Elwell commit c97d96b4e612c7dc1b37d7afc61b598a9a25994d upstream. The previous commit (0adbfd46) fixed a memory leak but also freed a block in the success case, causing a stale pointer to

[PATCH 09/12] housekeeping: Handle nohz_full= parameter

2017-10-24 Thread Frederic Weisbecker
We want to centralize the isolation management from the housekeeping subsystem. Therefore we need to handle the nohz_full= parameter from there. Since nohz_full= so far has involved unbound timers, watchdog, RCU and tilegx NAPI isolation, we keep that default behaviour. nohz_full= is deemed to be

[PATCH 12/12] housekeeping: Document isolcpus flags

2017-10-24 Thread Frederic Weisbecker
Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Mike Galbraith Cc: Ingo Molnar Cc: Christoph Lameter Cc: Paul E. McKenney Cc: Wanpeng Li Cc: Luiz Capitulino --- Documentation/admin-guide/kernel-parameters.txt | 35

[PATCH 08/12] housekeeping: Introduce housekeeping flags

2017-10-24 Thread Frederic Weisbecker
Before we implement isolcpus under housekeeping, we need the isolation features to be more finegrained. For example some people want nohz_full without the full scheduler isolation, others want full scheduler isolation without nohz_full. So let's cut all these isolation features piecewise, at the r

[PATCH 03/12] housekeeping: Provide a dynamic off-case to housekeeping_any_cpu()

2017-10-24 Thread Frederic Weisbecker
housekeeping_any_cpu() doesn't handle correctly the case where CONFIG_NO_HZ_FULL=y and no CPU is in nohz_full mode. So far no caller needs this but let's prepare to avoid any future surprise. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gl

[PATCH 06/12] housekeeping: Rename is_housekeeping_cpu to housekeeping_cpu

2017-10-24 Thread Frederic Weisbecker
To keep a proper housekeeping namespace. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Mike Galbraith Cc: Ingo Molnar Cc: Christoph Lameter Cc: Paul E. McKenney Cc: Wanpeng Li Cc: Luiz Capitulino --- include/linux/house

[PATCH 02/12] watchdog: Use housekeeping_cpumask() instead of ad-hoc version

2017-10-24 Thread Frederic Weisbecker
While trying to disable the watchog on nohz_full CPUs, the watchdog implements an ad-hoc version of housekeeping_cpumask(). Lets replace those re-invented lines. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Mike Galbraith Cc

Re: [PATCH] x86/mm/64: Rename the argument 'size' as 'nr_pages' in register_page_bootmem_memmap

2017-10-24 Thread Baoquan He
Hi Ingo, On 10/24/17 at 03:29pm, Ingo Molnar wrote: > > diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c > > index 048fbe8fc274..f5aa0d7c4cd1 100644 > > --- a/arch/x86/mm/init_64.c > > +++ b/arch/x86/mm/init_64.c > > @@ -1426,10 +1426,10 @@ int __meminit vmemmap_populate(unsigned long st

Re: [RFC 1/3] perf tool: Introduce arch-specific supplemental perf open strerror capability

2017-10-24 Thread Will Deacon
On Tue, Oct 24, 2017 at 03:04:04AM -0500, Kim Phillips wrote: > Introduce new tools/perf/arch/*/util/evsel.c:perf_evsel__suppl_strerror() > so each arch can start to customize usability for its h/w PMU drivers. > > Signed-off-by: Kim Phillips > --- > tools/perf/arch/x86/util/Build | 1 + > to

Re: [RFC 3/3] perf tool: arm-ccn: add a supplemental strerror function

2017-10-24 Thread Will Deacon
On Tue, Oct 24, 2017 at 03:04:15AM -0500, Kim Phillips wrote: > Use the Arm CCN driver as an example of how to try to improve > upon its existing dmesg error output, and duplicate error string > generation logic in the perf tool. [...] > Comments? Is this really that much better than the existin

Re: [RFC 2/3] perf tool: stat: say more about why event is not supported by the kernel

2017-10-24 Thread Will Deacon
On Tue, Oct 24, 2017 at 03:04:08AM -0500, Kim Phillips wrote: > Call perf_evsel__open_strerror() to potentially expand upon why the > event was "not supported by the kernel." See the enhanced '-v' example > output messages in the next patch. Nit: it would be better if the commit message was self-

[PATCH 05/12] housekeeping: Use its own static key

2017-10-24 Thread Frederic Weisbecker
Housekeeping code still depends on nohz_full static key. Since we want to decouple housekeeping from nohz, let's create a housekeeping own static key. It's mostly relevant for calls to is_housekeeping_cpu() from the scheduler. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel

Re: [PATCH 01/12] housekeeping: Move housekeeping related code to its own file

2017-10-24 Thread Paul E. McKenney
On Tue, Oct 24, 2017 at 03:06:50PM +0200, Frederic Weisbecker wrote: > The housekeeping code is currently tied to the nohz code. As we are > planning to make housekeeping independant from it, start with moving > the relevant code to its own file. > > Signed-off-by: Frederic Weisbecker > Cc: Chris

[PATCH 01/12] housekeeping: Move housekeeping related code to its own file

2017-10-24 Thread Frederic Weisbecker
The housekeeping code is currently tied to the nohz code. As we are planning to make housekeeping independant from it, start with moving the relevant code to its own file. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Mike Gal

[PATCH 4.9 26/48] rtlwifi: rtl8821ae: Fix connection lost problem

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit b8b8b16352cd90c6083033fd4487f04fae935c18 upstream. In commit 40b368af4b75 ("rtlwifi: Fix alignment issues"), the read of REG_DBI_READ was changed from 16 to 8 bits. For unkn

[PATCH 04/12] housekeeping: Make housekeeping cpumask private

2017-10-24 Thread Frederic Weisbecker
Nobody needs to access this detail. housekeeping_cpumask() already takes care about it. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Rik van Riel Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Mike Galbraith Cc: Ingo Molnar Cc: Christoph Lameter Cc: Paul E. McKenney Cc: Wanpeng Li

[PATCH 4.9 34/48] xfs: evict CoW fork extents when performing finsert/fcollapse

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 3af423b03435c81036fa710623d3ae92fbe346a3 upstream. When we perform an finsert/fcollapse operation, cancel all the CoW extents for the affected file offset range so that t

[PATCH 4.9 31/48] pkcs7: Prevent NULL pointer dereference, since sinfo is not always set.

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sesterhenn commit 68a1fdbbf8bd3378325e45c19e167a165f9ffc3a upstream. The ASN.1 parser does not necessarily set the sinfo field, this patch prevents a NULL pointer dereference on broken inp

[GIT PULL] Introduce housekeeping subsystem v5

2017-10-24 Thread Frederic Weisbecker
(No significant change since v4, only a rebase against -rc6) Ingo, Please pull the core/isolation-v5 branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git core/isolation-v5 HEAD: 64b71f4e9bffef1d7c9ffd2fae9b688be6da95b5 Summary of change

[PATCH 4.9 30/48] KEYS: dont let add_key() update an uninstantiated key

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit 60ff5b2f547af3828aebafd54daded44cfb0807a upstream. Currently, when passed a key that already exists, add_key() will call the key's ->update() method if such exists. But th

[PATCH 4.9 32/48] vmbus: fix missing signaling in hv_signal_on_read()

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dexuan Cui [Fixes upstream in a much larger set of patches that are not worth backporting to 4.9 - gregkh] When the space available before start of reading (cached_write_sz) is the same as the

[PATCH 4.9 45/48] xfs: reinit btree pointer on attr tree inactivation walk

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Foster commit f35c5e10c6ed6ba52a8dd8573924a80b6a02f03f upstream. xfs_attr3_root_inactive() walks the attr fork tree to invalidate the associated blocks. xfs_attr3_node_inactive() recursiv

Re: [intel-sgx-kernel-dev] [PATCH v4 06/12] fs/pipe.c: export create_pipe_files() and replace_fd()

2017-10-24 Thread Jarkko Sakkinen
On Sun, Oct 22, 2017 at 10:09:16PM -0700, Dave Hansen wrote: > On 10/22/2017 07:55 PM, Jarkko Sakkinen wrote: > > On Fri, Oct 20, 2017 at 07:32:42AM -0700, Dave Hansen wrote: > >> I've always been curious, and the changelog and thread are curiously > >> oblique on this topic: what the heck does thi

[PATCH 4.9 41/48] xfs: handle racy AIO in xfs_reflink_end_cow

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit e12199f85d0ad1b04ce6c425ad93cd847fe930bb upstream. If we got two AIO writes into a COW area the second one might not have any COW extents left to convert. Handle that

[PATCH 4.9 39/48] xfs: Capture state of the right inode in xfs_iflush_done

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Carlos Maiolino commit 842f6e9f786226c58fcbd5ef80eadca72fdfe652 upstream. My previous patch: d3a304b6292168b83b45d624784f973fdc1ca674 check for XFS_LI_FAILED flag xfs_iflush done, so the failed

[PATCH 4.9 09/48] parisc: Fix double-word compare and exchange in LWS code on 32-bit kernels

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 374b3bf8e8b519f61eb9775888074c6e46b3bf0c upstream. As discussed on the debian-hppa list, double-wordcompare and exchange operations fail on 32-bit kernels. Looking at

[PATCH 4.9 37/48] xfs: update i_size after unwritten conversion in dio completion

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eryu Guan commit ee70daaba82d70766d0723b743d9fdeb3b06102a upstream. Since commit d531d91d6990 ("xfs: always use unwritten extents for direct I/O writes"), we start allocating unwritten extents

Re: [PATCH] PCI: designware: move dw_pcie_iatu_unroll_enabled to pcie-designware.c

2017-10-24 Thread Pankaj Dubey
On 20 October 2017 at 23:11, Bjorn Helgaas wrote: > > On Thu, Oct 12, 2017 at 10:11:08AM +0530, Pankaj Dubey wrote: > > IATU unroll feature can be enabled in EP mode as well, so we need to > > have this check in pcie-designware-ep.c, so instead of making this > > function as static in pcie-desigwa

[PATCH 4.9 06/48] usb: hub: Allow reset retry for USB2 devices on connect bounce

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 1ac7db6db1eeff901bfd6bbcd502b4634fa4 upstream. If the connect status change is set during reset signaling, but the status remains connected just retry port reset. This

[PATCH 4.9 03/48] USB: serial: metro-usb: add MS7820 device id

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 31dc3f819bac28a0990b36510197560258ab7421 upstream. Add device-id entry for (Honeywell) Metrologic MS7820 bar code scanner. The device has two interfaces (in this mode?); a

[PATCH 4.9 25/48] clockevents/drivers/cs5535: Improve resilience to spurious interrupts

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Kozub commit eb39a7c0355393c5a8d930f342ad7a6231b552c4 upstream. The interrupt handler mfgpt_tick() is not robust versus spurious interrupts which happen before the clock event device is r

[PATCH 4.9 19/48] ALSA: hda: Abort capability probe at invalid register read

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 098a0a62c1554f5a3813ef1b8539563214ada8f6 upstream. The loop in snd_hdac_bus_parse_capabilities() may go to nirvana when it hits an invalid register value read: BUG: unable

[PATCH 4.9 20/48] i2c: ismt: Separate I2C block read from SMBus block read

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Pontus Andersson commit c6ebcedbab7ca78984959386012a17b21183e1a3 upstream. Commit b6c159a9cb69 ("i2c: ismt: Don't duplicate the receive length for block reads") broke I2C block reads. It aimed

[PATCH 4.9 18/48] ALSA: hda: Remove superfluous - added by printk conversion

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6bf88a343db2b3c160edf9b82a74966b31cc80bd upstream. While converting the error messages to the standard macros in the commit 4e76a8833fac ("ALSA: hda - Replace with standard

[PATCH 4.9 17/48] ALSA: seq: Enable use locking in all configurations

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 8009d506a1dd00cf436b0c4cca0dcec130580a21 upstream. The 'use' locking macros are no-ops if neither SMP or SND_DEBUG is enabled. This might once have been OK in non-preempti

Re: [PATCH] device property: Track owner device of device property

2017-10-24 Thread Jarkko Nikula
On 10/20/2017 05:34 PM, Greg Kroah-Hartman wrote: @@ -938,6 +940,7 @@ int device_add_properties(struct device *dev, p->fwnode.ops = &pset_fwnode_ops; set_secondary_fwnode(dev, &p->fwnode); + p->dev = dev; Don't you also need to increment the reference counter here? Or how

[PATCH 4.9 15/48] drm/nouveau/bsp/g92: disable by default

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit 194d68dd051c2dd5ac2b522ae16100e774e8d869 upstream. G92's seem to require some additional bit of initialization before the BSP engine can work. It feels like clocks are not se

[PATCH 4.9 13/48] xhci: Identify USB 3.1 capable hosts by their port protocol capability

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit ea7d0d69426cab6747ed311c53f4142eb48b9454 upstream. Many USB 3.1 capable hosts never updated the Serial Bus Release Number (SBRN) register to USB 3.1 from USB 3.0 xhci driv

[PATCH 4.9 11/48] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Liu commit 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce upstream. This fixes a kernel oops when unloading the driver due to usb_put_phy being called after usb_phy_generic_unregister when t

[PATCH 4.9 01/48] USB: devio: Revert "USB: devio: Dont corrupt user memory"

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 845d584f41eac3475c21e4a7d5e88d0f6e410cf7 upstream. Taking the uurb->buffer_length userspace passes in as a maximum for the actual urbs transfer_buffer_length causes 2 serio

[PATCH 4.9 10/48] iio: dummy: events: Add missing break

2017-10-24 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit be94a6f6d488b4767662e8949dc62361bd1d6311 upstream. Add missing break in iio_simple_dummy_write_event_config() for the voltage threshold event enable attribute. Without

[PATCH 4.4 14/27] ALSA: seq: Enable use locking in all configurations

2017-10-24 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 8009d506a1dd00cf436b0c4cca0dcec130580a21 upstream. The 'use' locking macros are no-ops if neither SMP or SND_DEBUG is enabled. This might once have been OK in non-preempti

[PATCH 4.4 08/27] can: gs_usb: fix busy loop if no more TX context is available

2017-10-24 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfgang Grandegger commit 97819f943063b622eca44d3644067c190dc75039 upstream. If sending messages with no cable connected, it quickly happens that there is no more TX context available. Then "g

Re: [PATCH v4 1/4] tpm: move wait_for_tpm_stat() to respective driver files

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 07:02:18PM +0530, Nayna Jain wrote: > > > On 10/20/2017 02:26 PM, Jarkko Sakkinen wrote: > > On Thu, Oct 19, 2017 at 05:00:29PM +, alexander.stef...@infineon.com > > wrote: > > > > On Tue, Oct 17, 2017 at 04:32:29PM -0400, Nayna Jain wrote: > > > > > The function wait

[PATCH 4.4 02/27] USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()

2017-10-24 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 1c0edc3633b56000e18d82fc241e3995ca18a69e upstream. Andrey used the syzkaller fuzzer to find an out-of-bounds memory access in usb_get_bos_descriptor(). The code wasn't checki

Re: [PATCH] perf/tools : remove default system_wide in sched record

2017-10-24 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 03:45:34PM +0800, Cheng Jian escreveu: > When running perf sched record, there is a bug. > > It's system_wide when we specify a command line. Humm, isn't this because if you trace just a workload you will miss the sched-in events? Perhaps with PERF_RECORD_SWITCH we can so

Re: [PATCH V3 0/6] event synthesization multithreading for perf record

2017-10-24 Thread Ingo Molnar
* Jiri Olsa wrote: > I recently made some changes on threaded record, which are based > on Namhyungs time* API, which is needed to read/sort the data afterwards > > but I wasn't able to get any substantial and constant reduce of LOST events > and then I got sidetracked and did not finish, but i

[PATCH 3.18 06/20] usb: hub: Allow reset retry for USB2 devices on connect bounce

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 1ac7db6db1eeff901bfd6bbcd502b4634fa4 upstream. If the connect status change is set during reset signaling, but the status remains connected just retry port reset. Thi

[PATCH 3.18 18/20] parisc: Avoid trashing sr2 and sr3 in LWS code

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit f4125cfdb3008363137f744c101e5d76ead760ba upstream. There is no need to trash sr2 and sr3 in the Light-weight syscall (LWS). sr2 already points to kernel space (it's z

[PATCH 3.18 02/20] USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 1c0edc3633b56000e18d82fc241e3995ca18a69e upstream. Andrey used the syzkaller fuzzer to find an out-of-bounds memory access in usb_get_bos_descriptor(). The code wasn't check

[PATCH 3.18 16/20] KEYS: dont let add_key() update an uninstantiated key

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit 60ff5b2f547af3828aebafd54daded44cfb0807a upstream. Currently, when passed a key that already exists, add_key() will call the key's ->update() method if such exists. But t

[PATCH 3.18 12/20] brcmsmac: make some local variables static const to reduce stack size

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit c503dd38f850be28867ef7a42d9abe5ade81a9bd upstream. With KASAN and a couple of other patches applied, this driver is one of the few remaining ones that actually use more th

Re: [PATCH 09/19] net: average: Kill off ACCESS_ONCE()

2017-10-24 Thread Paul E. McKenney
On Tue, Oct 24, 2017 at 11:34:13AM +0200, Ingo Molnar wrote: > > * Johannes Berg wrote: > > > On Mon, 2017-10-23 at 21:07 +, Paul E. McKenney wrote: > > > From: Mark Rutland > > > > > > For several reasons, it is desirable to use {READ,WRITE}_ONCE() in > > > preference to ACCESS_ONCE(), an

[PATCH 3.18 10/20] ALSA: hda: Remove superfluous - added by printk conversion

2017-10-24 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6bf88a343db2b3c160edf9b82a74966b31cc80bd upstream. While converting the error messages to the standard macros in the commit 4e76a8833fac ("ALSA: hda - Replace with standard

[PATCH v2] dt-bindings: mtd: Add sst25vf016b to the list of supported chip names

2017-10-24 Thread Fabrizio Castro
There are a few DT files that make use of sst25vf016b in their compatible strings, and the driver supports this chip already. This patch improves the documentation and therefore the result of ./scripts/checkpatch.pl. Signed-off-by: Fabrizio Castro Signed-off-by: Chris Paterson Acked-by: Rob Herr

Re: [PATCH] buffer: Avoid setting buffer bits that are already set

2017-10-24 Thread Jens Axboe
On 10/23/2017 07:25 PM, kemi wrote: > > > On 2017年10月24日 09:21, Andi Kleen wrote: >> kemi writes: >>> >>> I'll see if I can find some time to implement the above in a nice way. >>> >>> Agree. Maybe something like test_and_set_bit() would be more suitable. >> >> test_and_set_bit is a very di

Re: [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-24 Thread Boris Ostrovsky
On 10/23/2017 07:03 PM, Stefano Stabellini wrote: > On Tue, 17 Oct 2017, Boris Ostrovsky wrote: >> On 10/06/2017 08:30 PM, Stefano Stabellini wrote: >>> + /* >>> +* Backend only supports 1 inflight accept request, will return >>> +* errors for the others >>> +*/ >>> + if (test_and_s

Re: [PATCH] drivers/firmware: psci: Convert timers to use timer_setup()

2017-10-24 Thread Lorenzo Pieralisi
Hi Kees, On Tue, Oct 24, 2017 at 03:13:31AM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > Also adds missing call to destr

Re: [PATCH 2/2] xen-tpmfront: Combine two condition checks into one statement in vtpm_send()

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 03:44:01PM +0200, Jarkko Sakkinen wrote: > On Sun, Oct 22, 2017 at 01:30:46PM +0200, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Sun, 22 Oct 2017 13:15:16 +0200 > > > > A return was performed with the same error code after two condition checks. > > Thus use

Re: [PATCH] clk: sunxi: fix build warning

2017-10-24 Thread Stephen Boyd
On 10/24, Corentin Labbe wrote: > On Tue, Oct 24, 2017 at 01:36:28AM -0700, Stephen Boyd wrote: > > On 10/20, Maxime Ripard wrote: > > > Hi Stephen, Mike, > > > > > > On Thu, Oct 19, 2017 at 09:09:48PM +0200, Corentin Labbe wrote: > > > > This patch fix the following build warning: > > > > drivers

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread Garry Hurley
Markus, I normally keep quiet on threads like this. I half agree with you. Yes, perhaps a reportError function would be a good idea, but it seems that what you are suggesting is trading an inline subroutine call for a spaghetti-code vondition. The goto is used only if you do not have any code

Re: [PATCH] tpm_tis_core: Use common error handling code in tpm_tis_send_data()

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 03:51:09PM +0200, SF Markus Elfring wrote: > >> @@ -315,6 +311,8 @@ static int tpm_tis_send_data(struct tpm_chip *chip, > >> const u8 *buf, size_t len) > >> > >>return 0; > >> > >> +report_timeout: > >> + rc = -ETIME; > >> out_err: > >>tpm_tis_ready(chip); > >

fix pblk testing leftover

2017-10-24 Thread Javier González
Hi Jens, I just noticed a testing leftover that made it in one of this window's patches. Can you pick this up (and eventually squash it)? Thanks, Javier Javier González (1): lightnvm: pblk: remove testing leftover drivers/lightnvm/pblk.h | 5 - 1 file changed, 5 deletions(-) -- 2.7.4

Re: [PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 03:57:30PM +0200, SF Markus Elfring wrote: > >> @@ -108,11 +106,14 @@ static int vtpm_send(struct tpm_chip *chip, u8 *buf, > >> size_t count) > >>if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration, > >>&priv->read_queue, true) < 0) { > >>

[PATCH] lightnvm: pblk: remove testing leftover

2017-10-24 Thread Javier González
fixes: 8bd400204bd5 ("lightnvm: pblk: cleanup unused and static functions") Signed-off-by: Javier González --- drivers/lightnvm/pblk.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 6b64288de6f7..90961033a79f 100644 --- a/drivers/li

[PATCH 0/2] GPU-DRM-i915-DP: Fine-tuning for two function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:54:32 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an unnecessary goto statement in intel_dp_sink_crc() Use common error handling code in intel_dp_sink_crc_stop() drivers/gpu

[PATCH 1/2] drm/i915/dp: Delete an unnecessary goto statement in intel_dp_sink_crc()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:15:20 +0200 A jump was specified for a location which was directly behind. Thus remove such an unnecessary goto statement. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/i915/intel_dp.c

Re: [PATCH] lightnvm: pblk: remove testing leftover

2017-10-24 Thread Jens Axboe
On 10/24/2017 07:56 AM, Javier González wrote: > fixes: 8bd400204bd5 ("lightnvm: pblk: cleanup unused and static functions") > Signed-off-by: Javier González Added, thanks. -- Jens Axboe

[PATCH 2/2] drm/i915/dp: Use common error handling code in intel_dp_sink_crc_stop()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 24 Oct 2017 15:40:47 +0200 Adjust jump targets so that a specific error code assignment will be in the implementation only at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/i

Re: [PATCH v5 11/13] xen/pvcalls: implement poll command

2017-10-24 Thread Boris Ostrovsky
On 10/23/2017 07:06 PM, Stefano Stabellini wrote: > On Tue, 17 Oct 2017, Boris Ostrovsky wrote: >>> +static unsigned int pvcalls_front_poll_passive(struct file *file, >>> + struct pvcalls_bedata *bedata, >>> + struct

Re: [PATCH v2 6/6] f2fs: give up CP_TRIMMED_FLAG if it drops discards

2017-10-24 Thread Chao Yu
On 2017/10/24 20:46, Jaegeuk Kim wrote: > On 10/24, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/10/4 9:08, Chao Yu wrote: >>> From: Chao Yu >>> >>> In ->umount, once we drop remained discard entries, we should not >>> set CP_TRIMMED_FLAG with another checkpoint. >>> >>> Signed-off-by: Chao Yu >>>

Re: [tpmdd-devel] [PATCH] tpm: remove chip_num parameter from in-kernel API

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 10:07:31AM -0400, Stefan Berger wrote: > I think every kernel internal TPM driver API should be called with the > tpm_chip as a parameter. This is in foresight of namespacing of IMA where we > want to provide the flexibility of passing a dedicated vTPM to each > namespace an

Re: [PATCH v9 05/12] RISC-V: Atomic and Locking Code

2017-10-24 Thread Will Deacon
Hi Palmer, Some late comments on this which you might want to address as you get the chance. On Tue, Sep 26, 2017 at 06:56:31PM -0700, Palmer Dabbelt wrote: > This contains all the code that directly interfaces with the RISC-V > memory model. While this code corforms to the current RISC-V ISA >

Re: [PATCH v5 12/13] xen/pvcalls: implement release command

2017-10-24 Thread Boris Ostrovsky
(I just noticed that I missed this patch, sorry) On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > Send PVCALLS_RELEASE to the backend and wait for a reply. Take both > in_mutex and out_mutex to avoid concurrent accesses. Then, free the > socket. > > For passive sockets, check whether we have al

[PATCH] rds: Fix inaccurate accounting of unsignaled wrs

2017-10-24 Thread Håkon Bugge
The number of unsignaled work-requests posted to the IB send queue is tracked by a counter in the rds_ib_connection struct. When it reaches zero, or the caller explicitly asks for it, the send-signaled bit is set in send_flags and the counter is reset. This is performed by the rds_ib_set_wr_signal_

[PATCH] Input: keyboard: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Dmitry Torokhov Cc: Rakesh Iyer Cc: Laxman Dewangan Cc: Thierry Reding Cc: Jonathan Hunter Cc: Guen

[PATCH] Input: Serio/hil_mlc: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Signed-off-by: Kees Cook --- drivers/input/serio/hil_

[PATCH] Input: touchscreen: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Michael Hennerich Cc: Dmitry Torokhov Cc: Ferruh Yigit Cc: Wan ZongShun Cc: Guenter Roeck Cc: linux

[PATCH] Input: serio: Convert timers to use timer_setup()

2017-10-24 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Dmitry Torokhov Cc: Al Viro Cc: Helge Deller Cc: linux-in...@vger.kernel.org Signed-off-by: Kees Cook

RE: [PATCH] usb: gadget: goku_udc: mark expected switch fall-throughs

2017-10-24 Thread David Laight
From: Gustavo A. R. Silva > Sent: 24 October 2017 04:46 > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 145713 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/usb/gadget/udc/goku_udc.c | 14 +

[RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-24 Thread Ravi Bangoria
Perf top is often crashing at very random locations on powerpc. After investigating, I found the crash only happens when sample is of zero length symbol. Powerpc kernel has many such symbols which does not contain length details in vmlinux binary and thus start and end addresses of such symbols are

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