[PATCH v3 2/3] can: simplify LED trigger handling

2018-05-08 Thread Uwe Kleine-König
The new function led_trigger_register_format allows one to simplify LED trigger handling considerably. Signed-off-by: Uwe Kleine-König --- drivers/net/can/led.c | 30 +++--- include/linux/can/dev.h | 3 --- 2 files changed, 7 insertions(+), 26 deletions(-) diff --git

Re: [PATCH 3/3] dma-debug: unexport dma_debug_resize_entries and debug_dma_dump_mappings

2018-05-08 Thread Robin Murphy
On 24/04/18 15:02, Christoph Hellwig wrote: Only used by the AMD GART driver, which must be built in. FWIW debug_dma_dump_mappings() is also called by the Intel VT-d driver, but the same reasoning still applies. This does rather beg the question of whether it's right to have bits of low-level

Re: [PATCH V2 2/5] backlight: qcom-wled: Add support for WLED4 peripheral

2018-05-08 Thread kgunda
On 2018-05-07 22:15, Rob Herring wrote: On Thu, May 03, 2018 at 03:42:29PM +0530, Kiran Gunda wrote: WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and also configurations are different. Add support for it. Signed-off-by: Kiran Gunda --- ...

Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily"

2018-05-08 Thread Quentin Perret
On Tuesday 08 May 2018 at 15:15:26 (+0530), Viresh Kumar wrote: > On 08-05-18, 11:09, Dietmar Eggemann wrote: > > This would make sure that the kthreads are bound to the correct set of cpus > > for platforms with those cpufreq drivers (cpufreq-dt (h960), scmi-cpufreq, > > scpi-cpufreq) but it will

Re: [PATCH v4 12/13] ALSA: hda/ca0132: add ca0132_alt_set_vipsource

2018-05-08 Thread kbuild test robot
/linux/commits/Connor-McAdams/ALSA-hda-ca0132-Patch-Series-for-Recon3Di-and-Sound-Blaster-Z-Support/20180508-144100 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next config: x86_64-randconfig-x012-201818 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0

Re: [PATCH 09/17] powerpc: make __ioremap_caller() common to PPC32 and PPC64

2018-05-08 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/book3s/64/pgtable.h | 1 + > arch/powerpc/mm/ioremap.c| 126 > +++ > 2 files changed, 34 insertions(+), 93 deletions(-) > > diff --git a/arch/powerpc/includ

Re: [PATCH 4/3] dma-debug: remove CONFIG_HAVE_DMA_API_DEBUG

2018-05-08 Thread Robin Murphy
On 27/04/18 16:53, Christoph Hellwig wrote: There is no arch specific code required for dma-debug, so there is no need to opt into the support either. Makes sense, and a purely negative diffstat is always pleasing :) Reviewed-by: Robin Murphy Signed-off-by: Christoph Hellwig --- .../io/d

Re: [PATCH V2 1/5] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-05-08 Thread kgunda
On 2018-05-08 14:06, Daniel Thompson wrote: On Mon, May 07, 2018 at 11:26:59AM +0530, kgu...@codeaurora.org wrote: Hi Jingoo Han, Thanks for the response. Thanks, Kiran On 2018-05-04 21:25, Jingoo Han wrote: > On Thursday, May 3, 2018 6:12 AM, Kiran Gunda wrote: > > If you really want someone t

Re: [PATCH v3] serial: sh-sci: Use spin_{try}lock_irqsave instead of open coding version

2018-05-08 Thread Geert Uytterhoeven
On Tue, May 8, 2018 at 10:55 AM, Daniel Wagner wrote: > From: Daniel Wagner > > Commit 40f70c03e33a ("serial: sh-sci: add locking to console write > function to avoid SMP lockup") copied the strategy to avoid locking > problems in conjuncture with the console from the UART8250 > driver. Instead u

Re: [RFC PATCH 2/3] arcnet: com20020: Fixup missing SLOWARB bit

2018-05-08 Thread Andrea Greco
On 05/07/2018 04:55 AM, Tobin C. Harding wrote: On Sat, May 05, 2018 at 11:37:54PM +0200, Andrea Greco wrote: From: Andrea Greco If com20020 clock is major of 40Mhz SLOWARB bit is requested. Signed-off-by: Andrea Greco --- drivers/net/arcnet/com20020.c | 4 1 file changed, 4 insertio

Re: [PATCH 2/3] dma-debug: simplify counting of preallocated requests

2018-05-08 Thread Robin Murphy
On 24/04/18 15:02, Christoph Hellwig wrote: Just keep a single variable with a descriptive name instead of two with confusing names. Reviewed-by: Robin Murphy Signed-off-by: Christoph Hellwig --- lib/dma-debug.c | 20 1 file changed, 4 insertions(+), 16 deletions(-)

Re: [PATCH 1/3] dma-debug: move initialization to common code

2018-05-08 Thread Robin Murphy
On 24/04/18 15:02, Christoph Hellwig wrote: Most mainstream architectures are using 65536 entries, so lets stick to that. If someone is really desperate to override it that can still be done through , but I'd rather see a really good rationale for that. dma_debug_init is now called as a core_in

Re: [PATCH v3 6/9] trace_uprobe: Support SDT markers having reference count (semaphore)

2018-05-08 Thread Naveen N. Rao
Masami Hiramatsu wrote: On Mon, 7 May 2018 13:51:21 +0530 Ravi Bangoria wrote: BTW, same issue exists for normal uprobe. If uprobe_mmap() fails, there is no feedback to trace_uprobe and no warnigns in dmesg as well !! There was a patch by Naveen to warn such failures in dmesg but that didn't g

Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily"

2018-05-08 Thread Viresh Kumar
On 08-05-18, 11:09, Dietmar Eggemann wrote: > This would make sure that the kthreads are bound to the correct set of cpus > for platforms with those cpufreq drivers (cpufreq-dt (h960), scmi-cpufreq, > scpi-cpufreq) but it will also change the logic (e.g. > sugov_should_update_freq() -> cpufreq_can_

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-08 Thread Tiwei Bie
On Tue, May 08, 2018 at 05:34:40PM +0800, Jason Wang wrote: > On 2018年05月08日 17:16, Tiwei Bie wrote: > > On Tue, May 08, 2018 at 03:16:53PM +0800, Jason Wang wrote: > > > On 2018年05月08日 14:44, Tiwei Bie wrote: > > > > On Tue, May 08, 2018 at 01:40:40PM +0800, Jason Wang wrote: > > > > > On 2018年05月

Re: [PATCH v3 1/4] ALSA: usb-audio: UAC3. Add support for mixer unit.

2018-05-08 Thread Jorge
On 04/05/18 01:57, Ruslan Bilovol wrote: On Fri, Apr 27, 2018 at 8:06 PM, Jorge Sanjuan wrote: This adds support for the MIXER UNIT in UAC3. All the information is obtained from the (HIGH CAPABILITY) Cluster's header. We don't read the rest of the logical cluster to obtain the channel config

Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily"

2018-05-08 Thread Quentin Perret
On Tuesday 08 May 2018 at 11:09:57 (+0200), Dietmar Eggemann wrote: > On 05/08/2018 10:22 AM, Viresh Kumar wrote: > > On 08-05-18, 08:33, Dietmar Eggemann wrote: > > > This reverts commit e2cabe48c20efb174ce0c01190f8b9c5f3ea1d13. > > > > > > Lifting the restriction that the sugov kthread is bound

[PATCH] hwmon: (aspeed-pwm-tacho) Use 24MHz clock

2018-05-08 Thread Lei YU
The clock source for aspeed pwm is set to 24MHz, so use the hard-coded clock frequency instead of the one in device tree. Otherwise, in case of the clock specified in device tree is not 24MHz, the fan speed will be incorrect. Signed-off-by: Lei YU --- drivers/hwmon/aspeed-pwm-tacho.c | 7 ++

RE: [PATCH v2] net: dsa: drop some VLAs in switch.c

2018-05-08 Thread David Laight
From: Salvatore Mesoraca > Sent: 07 May 2018 20:03 ... > This optimization will save us an allocation when number of ports is > less than 32 or 64 (depending on arch). > IMHO it's useful, if you consider that, right now, DSA works only with > 12-ports switches. Why not just error out if the number

Re: [PATCH] selftests/memfd: move common code into common.c

2018-05-08 Thread Anders Roxell
On 17 April 2018 at 10:59, Anders Roxell wrote: > Remove code duplication, in the current code, we move common code for > memfd to common.c. > > The duplicate functions got added in commit 87b2d44026e0 ("selftests: > add memfd/sealing page-pinning tests") > > Signed-off-by: Anders Roxell > --- >

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-08 Thread Andrea Greco
On 05/07/2018 04:55 AM, Tobin C. Harding wrote: On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: From: Andrea Greco Hi Andrea, Here are some (mostly stylistic) suggestions to help you get your driver merged. Add support for com20022I/com20020, memory mapped chip version. Suppo

Problem with global pages changeset and kvm

2018-05-08 Thread Thadeu Lima de Souza Cascardo
When running a 4.15 kernel on top of 4.17-rc3, I noticed a problem on the guest: [4.836637] BUG: unable to handle kernel NULL pointer dereference at [4.839290] IP: 0x8a00147e [4.840300] PGD 0 P4D 0 [4.840510] Oops: [#1] SMP PTI [4.840510] Modules

[PATCH] net/mlx4_en: Fix an error handling path in 'mlx4_en_init_netdev()'

2018-05-08 Thread Christophe JAILLET
If the 2nd memory allocation of the loop fails, we must undo the memory allocation done so far. Fixes: 67f8b1dcb9ee ("net/mlx4_en: Refactor the XDP forwarding rings scheme") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 2 +- 1 file changed, 1 insertion(+

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-08 Thread Jason Wang
On 2018年05月08日 17:16, Tiwei Bie wrote: On Tue, May 08, 2018 at 03:16:53PM +0800, Jason Wang wrote: On 2018年05月08日 14:44, Tiwei Bie wrote: On Tue, May 08, 2018 at 01:40:40PM +0800, Jason Wang wrote: On 2018年05月08日 11:05, Jason Wang wrote: Because in virtqueue_enable_cb_delayed(), we may set

Re: [PATCH] nvmem: properly handle returned value nvmem_reg_read

2018-05-08 Thread Srinivas Kandagatla
Thanks for the patch, On 05/05/18 21:24, Mathieu Malaterre wrote: Function nvmem_reg_read can return a non zero value indicating an error. This returned value must be read and error propagated to nvmem_cell_prepare_write_buffer. Silence the following gcc warning (W=1): drivers/nvmem/core.c:1

[PATCH 1/7] can: dev: increase bus-off message severity

2018-05-08 Thread Marc Kleine-Budde
From: Jakob Unterwurzacher bus-off is usually caused by hardware malfunction or configuration error (baud rate mismatch) and causes a complete loss of communication. Increase the "bus-off" message's severity from netdev_dbg() to netdev_info() to make it visible to the user. A can interface goin

Re: [PATCH v2] media: media-device: fix ioctl function types

2018-05-08 Thread Sakari Ailus
On Tue, May 08, 2018 at 10:08:41AM +0200, Hans Verkuil wrote: > Hi Sami, > > This is unchanged from the previous version, right? I've already added that > to a > pull request. Casting has been removed from the void pointers as I suggested. That's the difference. > > If this v2 has changes, the

Re: [PATCH v2] serial: 8250_of: Add IO space support

2018-05-08 Thread John Garry
On 27/04/2018 11:36, John Garry wrote: Currently the 8250_of driver only supports MEM IO type accesses. Some development boards (Huawei D03, specifically) require IO space access for 8250-compatible OF driver support, so add it. The modification is quite simple: just set the port iotype and ass

Re: [PATCH v2] media: v4l: Add new 10-bit packed grayscale format

2018-05-08 Thread Sakari Ailus
On Tue, May 08, 2018 at 11:46:17AM +0300, Todor Tomov wrote: > The new format will be called V4L2_PIX_FMT_Y10P. > It is similar to the V4L2_PIX_FMT_SBGGR10P family formats > but V4L2_PIX_FMT_Y10P is a grayscale format. > > Signed-off-by: Todor Tomov Thanks! Acked-by: Sakari Ailus -- Sakari A

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-08 Thread Tiwei Bie
On Tue, May 08, 2018 at 03:16:53PM +0800, Jason Wang wrote: > On 2018年05月08日 14:44, Tiwei Bie wrote: > > On Tue, May 08, 2018 at 01:40:40PM +0800, Jason Wang wrote: > > > On 2018年05月08日 11:05, Jason Wang wrote: > > > > > Because in virtqueue_enable_cb_delayed(), we may set an > > > > > event_off wh

[PATCH 2/2] tools/testing/selftests/x86: fix error: conflicting types for 'pkey_get|pkey_set'

2018-05-08 Thread Li Zhijian
pkey_get() and pkey_set() are implemented since glibc-2.27, here just rename pkey_get|pkey_set to _pkey_get|_pkey_set simply the compiling errors are like: protection_keys.c:399:5: error: conflicting types for 'pkey_get' u32 pkey_get(int pkey, unsigned long flags) ^ In file incl

Re: [PATCH 1/2] media: v4l: Add new 2X8 10-bit grayscale media bus code

2018-05-08 Thread Sakari Ailus
On Fri, Apr 27, 2018 at 02:40:38PM +0300, Todor Tomov wrote: > The code will be called MEDIA_BUS_FMT_Y10_2X8_PADHI_LE. > It is similar to MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE > but MEDIA_BUS_FMT_Y10_2X8_PADHI_LE describes grayscale > data. > > Signed-off-by: Todor Tomov Acked-by: Sakari Ailus --

[PATCH 1/2] tools/testing/selftests/x86: fix warning: "SEGV_PKUERR|SEGV_BNDERR" redefined

2018-05-08 Thread Li Zhijian
SEGV_PKUERR and SEGV_BNDERR are defined since glibc-2.27 fix the following issue: --- root@vm-lkp-nex04-4G-5 /usr/src/linux-selftests-x86_64-rhel-7.2-75bc37fefc4471e718ba8e651aa74673d4e0a9eb/tools/testing/selftests/x86# make gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-7

Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily"

2018-05-08 Thread Dietmar Eggemann
On 05/08/2018 10:22 AM, Viresh Kumar wrote: On 08-05-18, 08:33, Dietmar Eggemann wrote: This reverts commit e2cabe48c20efb174ce0c01190f8b9c5f3ea1d13. Lifting the restriction that the sugov kthread is bound to the policy->related_cpus for a system with a slow switching cpufreq driver, which is a

Re: [PATCH -mm] mm, pagemap: Hide swap entry for unprivileged users

2018-05-08 Thread Naoya Horiguchi
On Tue, May 08, 2018 at 09:27:45AM +0800, Huang, Ying wrote: > From: Huang Ying > > In ab676b7d6fbf ("pagemap: do not leak physical addresses to > non-privileged userspace"), the /proc/PID/pagemap is restricted to be > readable only by CAP_SYS_ADMIN to address some security issue. In > 1c90308e7

Re: [PATCH v3 2/2] mtd: rawnand: fsl_ifc: use bit-wise majority to recover the contents of ONFI parameter

2018-05-08 Thread Boris Brezillon
On Mon, 7 May 2018 09:34:15 -0700 Jane Wan wrote: > Per ONFI specification (Rev. 4.0), if all parameter pages have invalid > CRC values, the bit-wise majority may be used to recover the contents of > the parameter pages from the parameter page copies present. > > Signed-off-by: Jane Wan I nev

[PATCH] android: binder: Fix a possible data race in binder_alloc_mmap_handler

2018-05-08 Thread Jia-Ju Bai
The write operations to "alloc->buffer" are protected by the lock on line 679 and 730, but the read operation to this data on line 712 is not protected by the lock. Thus, there may exist a data race for "alloc->buffer". To fix this data race, the read operation to "alloc->buffer" should be also p

Re: [PATCH] mmc: tegra: remove redundant return statement

2018-05-08 Thread Ulf Hansson
On 4 May 2018 at 11:20, Aapo Vienamo wrote: > A redundant return statement is removed from > tegra_sdhci_set_uhs_signaling(). The function returns void and the > return does not affect the control flow of the function. > > Signed-off-by: Aapo Vienamo Thanks, applied for next! Kind regards Uffe

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-08 Thread Marek Szyprowski
Hi Frank and Vinod, On 2018-04-28 23:50, Frank Mori Hess wrote: > This reverts commit 88987d2c7534a0269f567fb101e6d71a08f0f01d. > > The pl330.c pause implementation violates the dmaengine requirement > for no data loss, since it relies on the DMAKILL > instruction. However, DMAKILL discards in-fl

Re: [PATCH v2 26/26] drm/bridge: establish a link between the bridge supplier and consumer

2018-05-08 Thread Andrzej Hajda
On 07.05.2018 15:43, Peter Rosin wrote: > On 2018-05-07 14:59, Andrzej Hajda wrote: >> On 04.05.2018 15:52, Peter Rosin wrote: >>> If the bridge supplier is unbound, this will bring the bridge consumer >>> down along with the bridge. Thus, there will no longer linger any >>> dangling pointers from

[PATCH v4] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
This addresses 3 separate problems: 1. When using NVME over Fabrics we may end up sending IP packets in interrupt context, we should defer this work to a tasklet. [ 50.939957] WARNING: CPU: 3 PID: 0 at kernel/softirq.c:161 __local_bh_enable_ip+0x1f/0xa0 [ 50.942602] CPU: 3 PID: 0 Comm: swapp

[PATCH 4.16 13/52] Input: atmel_mxt_ts - add touchpad button mapping for Samsung Chromebook Pro

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Vittorio Gambaletta (VittGam) commit f372b81101e6895252298e563d634d5e44ae81e7 upstream. This patch adds the correct platform data information for the Caroline Chromebook, so that the mouse but

[PATCH 4.16 10/52] tracepoint: Do not warn on ENOMEM

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Mathieu Desnoyers commit d66a270be3310d7aa132fec0cea77d3d32a0ff75 upstream. Tracepoint should only warn when a kernel API user does not respect the required preconditions (e.g. same tracepoint

[PATCH 4.16 11/52] scsi: target: Fix fortify_panic kernel exception

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bryant G Ly commit f5957dade4f373b04fa1f5315a489f18cc2c4cb4 upstream. memcmp() requires the two buffers passed as arguments to be at least 'size' bytes long, otherwise a fortify_panic will tri

[PATCH 4.16 02/52] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Suzuki K Poulose commit ece1397cbc89c51914fae1aec729539cfd8bd62b upstream. Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer from an erratum 1024718, which causes incorrect up

[PATCH 4.16 04/52] ALSA: pcm: Check PCM state at xfern compat ioctl

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit f13876e2c33a657a71bcbb10f767c0951b165020 upstream. Since snd_pcm_ioctl_xfern_compat() has no PCM state check, it may go further and hit the sanity check pcm_sanity_check()

[PATCH 4.16 03/52] ALSA: hda - Fix incorrect usage of IS_REACHABLE()

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6a30abaa40b62aed46ef12ea4c16c48565bdb376 upstream. The commit c469652bb5e8 ("ALSA: hda - Use IS_REACHABLE() for dependency on input") simplified the dependencies with IS_RE

[PATCH 4.16 07/52] ALSA: aloop: Mark paused device as inactive

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Robert Rosengren commit 306a4f3ca7f3c7dfa473ebd19d66e40e59d99734 upstream. Show paused ALSA aloop device as inactive, i.e. the control "PCM Slave Active" set as false. Notification sent upon s

[PATCH 4.16 06/52] ALSA: dice: fix kernel NULL pointer dereference due to invalid calculation for array index

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Sakamoto commit 52759c0963510a2843774aac9b65ccaed3308dc0 upstream. At a commit f91c9d7610a ('ALSA: firewire-lib: cache maximum length of payload to reduce function calls'), maximum siz

[PATCH 4.16 05/52] ALSA: seq: Fix races at MIDI encoding in snd_virmidi_output_trigger()

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 8f22e52528cc372b218b5f100457469615c733ce upstream. The sequencer virmidi code has an open race at its output trigger callback: namely, virmidi keeps only one event packet f

Re: [PATCH v3] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
On Tue, May 08, 2018 at 11:09:18AM +0800, Yanjun Zhu wrote: > > > On 2018/5/8 4:58, Alexandru Moise wrote: > > This addresses 3 separate problems: > > > > 1. When using NVME over Fabrics we may end up sending IP > > packets in interrupt context, we should defer this work > > to a tasklet. > > >

[PATCH 4.16 00/52] 4.16.8-stable review

2018-05-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.16.8 release. There are 52 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 May 10 07:38:51 UTC 2018. Anything receive

[PATCH v3] serial: sh-sci: Use spin_{try}lock_irqsave instead of open coding version

2018-05-08 Thread Daniel Wagner
From: Daniel Wagner Commit 40f70c03e33a ("serial: sh-sci: add locking to console write function to avoid SMP lockup") copied the strategy to avoid locking problems in conjuncture with the console from the UART8250 driver. Instead using directly spin_{try}lock_irqsave(), local_irq_save() followed

[PATCH 4.16 27/52] IB/hfi1: Fix loss of BECN with AHG

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 0a0bcb046b2f0c15b89f8c1b08ad3de601a83c66 upstream. AHG may be armed to use the stored header, which by design is limited to edits in the PSN/A 32 bit word (bth2). When

[PATCH 4.16 25/52] infiniband: mlx5: fix build errors when INFINIBAND_USER_ACCESS=m

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Randy Dunlap commit b3fe6c62bc66868c45b5bb16050e6bcb333af337 upstream. Fix build errors when INFINIBAND_USER_ACCESS=m and MLX5_INFINIBAND=y. The build error occurs when the mlx5 driver code at

[PATCH 4.16 16/52] xfs: prevent creating negative-sized file via INSERT_RANGE

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 7d83fb14258b9961920cd86f0b921caaeb3ebe85 upstream. During the "insert range" fallocate operation, i_size grows by the specified 'len' bytes. XFS verifies that i_size +

[PATCH 4.16 31/52] drm/vc4: Make sure vc4_bo_{inc,dec}_usecnt() calls are balanced

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Boris Brezillon commit f7aef1c207092770d06d0df21dceafdca2b49c39 upstream. Commit b9f19259b84d ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl") introduced a mechanism to mark some BOs as pu

[PATCH 4.16 28/52] IB/hfi1: Fix NULL pointer dereference when invalid num_vls is used

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Sanchez commit 45d924571a5e1329580811f2419da61b07ac3613 upstream. When an invalid num_vls is used as a module parameter, the code execution follows an exception path where the macro

[PATCH 4.16 29/52] iw_cxgb4: Atomically flush per QP HW CQEs

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bharat Potnuri commit 2df19e19ae90d94fd8724083f161f368a2797537 upstream. When a CQ is shared by multiple QPs, c4iw_flush_hw_cq() needs to acquire corresponding QP lock before moving the CQEs i

[PATCH 4.16 33/52] drm/bridge: vga-dac: Fix edid memory leak

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Sean Paul commit 49ceda9de2da4d1827941d06701f3017c27c1855 upstream. edid should be freed once it's finished being used. Fixes: 56fe8b6f4991 ("drm/bridge: Add RGB to VGA bridge support") Cc: R

[PATCH 4.16 32/52] drm/vmwgfx: Fix a buffer object leak

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit 13f149d47392782baafd96d54d4e65f3b5ca342f upstream. A buffer object leak was introduced when fixing a premature buffer object release. Fix this. Cc: Fixes: 73a88250b70

[PATCH 4.16 19/52] RDMA/ucma: Allow resolving address w/o specifying source address

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Roland Dreier commit 09abfe7b5b2f442a85f4c4d59ecf582ad76088d7 upstream. The RDMA CM will select a source device and address by consulting the routing table if no source address is passed into

[PATCH 4.16 18/52] RDMA/cxgb4: release hw resources on device removal

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Raju Rangoju commit 26bff1bd74a4f7417509a83295614e9dab995b2a upstream. The c4iw_rdev_close() logic was not releasing all the hw resources (PBL and RQT memory) during the device removal event (

[PATCH nf-next] netfilter: fix fallout from xt/nf osf separation

2018-05-08 Thread Florian Westphal
Stephen Rothwell says: today's linux-next build (x86_64 allmodconfig) produced this warning: ./usr/include/linux/netfilter/nf_osf.h:25: found __[us]{8,16,32,64} type without #include Fix that up and also move kernel-private struct out of uapi (it was not exposed in any released kernel versio

[PATCH 4.16 17/52] tools: power/acpi, revert to LD = gcc

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 755396163148b50fe1afb4bdd3365e47f3ff7a42 upstream. Commit 7ed1c1901fe5 (tools: fix cross-compile var clobbering) removed setting of LD to $(CROSS_COMPILE)gcc. This broke buil

[PATCH 4.16 22/52] RDMA/mlx5: Protect from shift operand overflow

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit 002bf2282b2d7318e444dca9ffcb994afc5d5f15 upstream. Ensure that user didn't supply values too large that can cause overflow. UBSAN: Undefined behaviour in drivers/infini

[PATCH v2] IB/umem: ib_ucontext already have tgid, remove pid from ib_umem structure

2018-05-08 Thread Lidong Chen
The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has exited, get_pid_task will return NULL, ib_umem_release does not decrease mm->pinned_vm. This patch fixes it by use tgid in ib_ucontext struct. Signed-o

[PATCH 4.16 15/52] rtlwifi: cleanup 8723be ant_sel definition

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Ping-Ke Shih commit af8a41cccf8f469165c6debc8fe07c5fd2ca501a upstream. Some HP laptops have only a single wifi antenna. This would not be a problem except that they were shipped with an incorr

[PATCH 4.16 44/52] platform/x86: Kconfig: Fix dell-laptop dependency chain.

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Mario Limonciello commit 7fe3fa3b5ec8e75389cce4bf5d052a52e6198d59 upstream. As reported by Randy Dunlap: >> WARNING: unmet direct dependencies detected for DELL_SMBIOS >> Depends on [m]: X86

[PATCH 4.16 48/52] irqchip/qcom: Fix check for spurious interrupts

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Agustin Vega-Frias commit 1bc2463cee92ef0e2034c813d5e511adeb58b5fd upstream. When the interrupts for a combiner span multiple registers it must be checked if any interrupts have been asserted

[PATCH 4.16 47/52] x86/tsc: Fix mark_tsc_unstable()

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit e3b4f79025e0a4eb7e2a2c7d24dadfa1e38893b0 upstream. mark_tsc_unstable() also needs to affect tsc_early, Now that clocksource_mark_unstable() can be used on a clocksource i

[PATCH 4.16 46/52] x86/tsc: Always unregister clocksource_tsc_early

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit e9088adda13cd23249d4b0abb97ff8a81bf5573a upstream. Don't leave the tsc-early clocksource registered if it errors out early. This was reported by Diego, who on his Core2

[PATCH 4.16 51/52] clocksource: Consistent de-rate when marking unstable

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit cd2af07d823e5287cd6c91d54337348c2a873462 upstream. When a registered clocksource gets marked unstable the watchdog_kthread will de-rate and re-select the clocksource. Ens

[PATCH 4.16 36/52] USB: serial: visor: handle potential invalid device configuration

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 4842ed5bfcb9daf6660537d70503c18d38dbdbb8 upstream. If we get an invalid device configuration from a palm 3 type device, we might incorrectly parse things, and we have

[PATCH 4.16 37/52] usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Mayank Rana commit 96bd39df29c29d348d65311e5954c0b7d3a2a790 upstream. dwc3_ep_dequeue() waits for completion of End Transfer command using wait_event_lock_irq(), which will release the dwc3->l

[PATCH 4.16 41/52] usb: musb: host: fix potential NULL pointer dereference

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bin Liu commit 2b63f1329df2cd814c1f8353fae4853ace6521d1 upstream. musb_start_urb() doesn't check the pass-in parameter if it is NULL. But in musb_bulk_nak_timeout() the parameter passed to mu

[PATCH 4.16 39/52] USB: serial: option: reimplement interface masking

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit c3a65808f04a8426481b63a4fbd9392f009f6330 upstream. Reimplement interface masking using device flags stored directly in the device-id table. This will make it easier to add

[PATCH v2] media: v4l: Add new 10-bit packed grayscale format

2018-05-08 Thread Todor Tomov
The new format will be called V4L2_PIX_FMT_Y10P. It is similar to the V4L2_PIX_FMT_SBGGR10P family formats but V4L2_PIX_FMT_Y10P is a grayscale format. Signed-off-by: Todor Tomov --- v2: - doc: improved bit-packed representation: added bit positions for LSB bits; - doc: improved bit-packed repre

[PATCH 4.16 42/52] usb: musb: trace: fix NULL pointer dereference in musb_g_tx()

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Bin Liu commit 9aea9b6cc78d2b99b23d84fb2e0bc6e464c6569e upstream. The usb_request pointer could be NULL in musb_g_tx(), where the tracepoint call would trigger the NULL pointer dereference fai

[PATCH] ASoC: uniphier: evea: use DAPM to change source of line-in

2018-05-08 Thread Katsuhiro Suzuki
This patch replaces mixer switch to DAPM one for changing audio source of line-in. Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/evea.c | 55 +++ 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uni

[PATCH 4.16 34/52] test_firmware: fix setting old custom fw path back on exit, second try

2018-05-08 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit e538409257d0217a9bc715686100a5328db75a15 upstream. Commit 65c79230576 tried to clear the custom firmware path on exit by writing a single space to the firmware_class.path

[PATCH 4.14 03/43] percpu: include linux/sched.h for cond_resched()

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 71546d100422bcc2c543dadeb9328728997cd23a upstream. microblaze build broke due to missing declaration of the cond_resched() invocation added recently. Let's include linux/sche

[PATCH 4.14 02/43] net: dont call update_pmtu unconditionally

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Dichtel commit f15ca723c1ebe6c1a06bc95fda6b62cd87b44559 upstream. Some dst_ops (e.g. md_dst_ops)) doesn't set this handler. It may result to: "BUG: unable to handle kernel NULL pointer

[PATCH 4.14 07/43] ALSA: hda - Fix incorrect usage of IS_REACHABLE()

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6a30abaa40b62aed46ef12ea4c16c48565bdb376 upstream. The commit c469652bb5e8 ("ALSA: hda - Use IS_REACHABLE() for dependency on input") simplified the dependencies with IS_RE

[PATCH 4.14 09/43] ALSA: seq: Fix races at MIDI encoding in snd_virmidi_output_trigger()

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 8f22e52528cc372b218b5f100457469615c733ce upstream. The sequencer virmidi code has an open race at its output trigger callback: namely, virmidi keeps only one event packet f

Re: [PATCH V2 1/5] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-05-08 Thread Daniel Thompson
On Thu, May 03, 2018 at 03:42:28PM +0530, Kiran Gunda wrote: > pm8941-wled.c driver is supporting the WLED peripheral > on pm8941. Rename it to qcom-wled.c so that it can support > WLED on multiple PMICs. > > Signed-off-by: Kiran Gunda > --- > .../bindings/leds/backlight/{pm8941-wled.txt => qcom

[PATCH 4.14 20/43] RDMA/cxgb4: release hw resources on device removal

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Raju Rangoju commit 26bff1bd74a4f7417509a83295614e9dab995b2a upstream. The c4iw_rdev_close() logic was not releasing all the hw resources (PBL and RQT memory) during the device removal event (

[PATCH 4.14 19/43] xfs: prevent creating negative-sized file via INSERT_RANGE

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Darrick J. Wong commit 7d83fb14258b9961920cd86f0b921caaeb3ebe85 upstream. During the "insert range" fallocate operation, i_size grows by the specified 'len' bytes. XFS verifies that i_size +

[PATCH 4.14 18/43] rtlwifi: cleanup 8723be ant_sel definition

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ping-Ke Shih commit af8a41cccf8f469165c6debc8fe07c5fd2ca501a upstream. Some HP laptops have only a single wifi antenna. This would not be a problem except that they were shipped with an incorr

[PATCH 4.14 23/43] RDMA/mlx5: Protect from shift operand overflow

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit 002bf2282b2d7318e444dca9ffcb994afc5d5f15 upstream. Ensure that user didn't supply values too large that can cause overflow. UBSAN: Undefined behaviour in drivers/infini

[PATCH 4.14 22/43] RDMA/mlx5: Fix multiple NULL-ptr deref errors in rereg_mr flow

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit b4bd701ac469075d94ed9699a28755f2862252b9 upstream. Failure in rereg MR releases UMEM but leaves the MR to be destroyed by the user. As a result the following scenario ma

[PATCH 4.14 11/43] ALSA: aloop: Mark paused device as inactive

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Robert Rosengren commit 306a4f3ca7f3c7dfa473ebd19d66e40e59d99734 upstream. Show paused ALSA aloop device as inactive, i.e. the control "PCM Slave Active" set as false. Notification sent upon s

[PATCH 4.14 25/43] IB/mlx5: Use unlimited rate when static rate is not supported

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Danit Goldberg commit 4f32ac2e452c2180cd2df581cbadac183e27ecd0 upstream. Before the change, if the user passed a static rate value different than zero and the FW doesn't support static rate, i

[PATCH 4.14 13/43] tracepoint: Do not warn on ENOMEM

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mathieu Desnoyers commit d66a270be3310d7aa132fec0cea77d3d32a0ff75 upstream. Tracepoint should only warn when a kernel API user does not respect the required preconditions (e.g. same tracepoint

Re: [usb-storage] [PATCH] usb: storage: Fix a possible data race in uas_queuecommand_lck

2018-05-08 Thread Jia-Ju Bai
On 2018/5/8 16:27, Oliver Neukum wrote: Am Dienstag, den 08.05.2018, 15:47 +0800 schrieb Jia-Ju Bai: The write operations to "cmnd->result" and "cmnd->scsi_done" are protected by the lock on line 642-643, but the write operations to these data on line 634-635 are not protected by the lock. Thu

[PATCH 4.14 15/43] Input: leds - fix out of bound access

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Torokhov commit 6bd6ae639683c0b41f46990d5c64ff9fbfa019dc upstream. UI_SET_LEDBIT ioctl() causes the following KASAN splat when used with led > LED_CHARGING: [ 1274.663418] BUG: KASAN:

[PATCH 4.14 27/43] IB/hfi1: Fix loss of BECN with AHG

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 0a0bcb046b2f0c15b89f8c1b08ad3de601a83c66 upstream. AHG may be armed to use the stored header, which by design is limited to edits in the PSN/A 32 bit word (bth2). When

Re: [PATCH v3] ppc64le livepatch: implement reliable stacktrace for newer consistency models

2018-05-08 Thread Torsten Duwe
On Mon, 7 May 2018 10:42:08 -0500 Josh Poimboeuf wrote: > The subject doesn't actively describe what the patch does, maybe > change it to something like: > > powerpc: Add support for HAVE_RELIABLE_STACKTRACE > > or maybe > > powerpc: Add support for livepatch consistency model Maybe $SUBJ

Re: RTL8723BE performance regression

2018-05-08 Thread Pkshih
On Mon, 2018-05-07 at 14:49 -0700, João Paulo Rechi Vita wrote: > On Tue, May 1, 2018 at 10:58 PM, Pkshih wrote: > > On Wed, 2018-05-02 at 05:44 +, Pkshih wrote: > >> > >> > -Original Message- > >> > From: João Paulo Rechi Vita [mailto:jprv...@gmail.com] > >> > Sent: Wednesday, May 02,

[PATCH 4.14 08/43] ALSA: pcm: Check PCM state at xfern compat ioctl

2018-05-08 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit f13876e2c33a657a71bcbb10f767c0951b165020 upstream. Since snd_pcm_ioctl_xfern_compat() has no PCM state check, it may go further and hit the sanity check pcm_sanity_check()

<    5   6   7   8   9   10   11   12   >