Re: [PATCH 2/2] clk: meson: a1: add support for Amlogic A1 clock driver

2019-09-29 Thread Jian Hu
On 2019/9/27 20:56, Jerome Brunet wrote: On Fri 27 Sep 2019 at 05:11, Jian Hu wrote: Hi, Stephen Thank you for review On 2019/9/25 21:12, Stephen Boyd wrote: Quoting Jian Hu (2019-09-25 04:44:48) The Amlogic A1 clock includes three parts: peripheral clocks, pll clocks, CPU clocks. sys

[PATCH v3 0/3] reset: meson: add Meson-A1 SoC support

2019-09-29 Thread Xingyu Chen
This patchset adds support for Meson-A1 SoC Reset Controller. A new struct meson_reset_param is introduced to describe the register differences between Meson-A1 and previous SoCs. Changes since v2 at [1]: - add comments in header file to indicate holes - reorder the Signed-off-by and Reviewed-by

[PATCH v3 3/3] reset: add support for the Meson-A1 SoC Reset Controller

2019-09-29 Thread Xingyu Chen
The number of RESET registers and offset of RESET_LEVEL register for Meson-A1 are different from previous SoCs, In order to describe these differences, we introduce the struct meson_reset_param. Reviewed-by: Kevin Hilman Reviewed-by: Neil Armstrong Signed-off-by: Xingyu Chen ---

[PATCH v3 1/3] arm64: dts: meson: add reset controller for Meson-A1 SoC

2019-09-29 Thread Xingyu Chen
Add the reset controller device of Meson-A1 SoC family Signed-off-by: Xingyu Chen --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index 7210ad0..1c588ab

[PATCH v3 2/3] dt-bindings: reset: add bindings for the Meson-A1 SoC Reset Controller

2019-09-29 Thread Xingyu Chen
Add DT bindings for the Meson-A1 SoC Reset Controller include file, and also slightly update documentation. Signed-off-by: Xingyu Chen --- .../bindings/reset/amlogic,meson-reset.yaml| 1 + include/dt-bindings/reset/amlogic,meson-a1-reset.h | 74 ++ 2 files changed,

Re: [PATCH] usb: hub add filter for device with specific VID

2019-09-29 Thread Peter Chen
> > > > > > In fact, the system should respond the same way to any unrecognized > > > device that doesn't support HNP, right? There's nothing special about > > > these VID/PID values. > > > > Yes, but I saw there are already some implementation in upstream kernel for > > this > > purpose, just

Re: [PATCH] usb: hub add filter for device with specific VID

2019-09-29 Thread Peter Chen
On Sat, Sep 28, 2019 at 1:11 AM Alan Stern wrote: > > On Tue, 24 Sep 2019, Ran Wang wrote: > > > Hi Greg, > > > > On Monday, September 23, 2019 19:07, Greg Kroah-Hartman wrote: > > > > > > On Mon, Sep 23, 2019 at 06:51:02PM +0800, Ran Wang wrote: > > > > USB 2.0 Embedded Host PET Automated Test

[PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name

2019-09-29 Thread Wen Yang
of_node_put needs to be called when the device node which is got from of_get_child_by_name finished using. In both cases of success and failure, we need to release 'ports', so clean up the code using goto. fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support") Signed-off-by: Wen

[PATCH] net: dsa: rtl8366rb: add missing of_node_put after calling of_get_child_by_name

2019-09-29 Thread Wen Yang
of_node_put needs to be called when the device node which is got from of_get_child_by_name finished using. irq_domain_add_linear() also calls of_node_get() to increase refcount, so irq_domain will not be affected when it is released. fixes: d8652956cf37 ("net: dsa: realtek-smi: Add Realtek SMI

[PATCH] mm/cma.c: Switch to bitmap_zalloc() for cma bitmap allocation

2019-09-29 Thread Yunfeng Ye
kzalloc() is used for cma bitmap allocation in cma_activate_area(), switch to bitmap_zalloc() is more clearly. Signed-off-by: Yunfeng Ye --- mm/cma.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm/cma.c b/mm/cma.c index 7fe0b83..be55d19 100644 --- a/mm/cma.c +++

Re: [PATCH 3/3] Staging: exfat: exfat_super.c Fixed coding style issues.

2019-09-29 Thread Greg KH
On Sat, Sep 28, 2019 at 07:21:19PM -0500, Jesse Barton wrote: > Fixed Coding Style issues You need to be specific as to _what_ exactly you did here. What you wrote is very vague :) thanks, greg k-h

Re: [PATCH 2/3] Staging: exfat: exfat_super.c: fixed multiple coding style issues with camelcase and parentheses

2019-09-29 Thread Greg KH
On Sat, Sep 28, 2019 at 07:22:33PM -0500, Jesse Barton wrote: > Fixed coding style issues with camelcase on functions and various parentheses > that were not needed Please wrap your changelog text properly. Only do one "type" of thing per patch, this should be two different ones. thanks, greg

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-29 Thread Jason Wang
On 2019/9/27 下午9:23, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 09:17:56PM +0800, Jason Wang wrote: On 2019/9/27 下午8:46, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 08:17:47PM +0800, Jason Wang wrote: On 2019/9/27 下午5:41, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Thomas Gleixner
On Sat, 28 Sep 2019, Linus Torvalds wrote: > On Sat, Sep 28, 2019 at 3:24 PM Thomas Gleixner wrote: > > > > Nicholas presented the idea to (ab)use speculative execution for random > > number generation years ago at the Real-Time Linux Workshop: > > What you describe is just a particularly

[PATCH] x86/PAT: priority the PAT warn to error to highlight the developer

2019-09-29 Thread jun . zhang
From: zhang jun Documentation/x86/pat.txt says: set_memory_uc() or set_memory_wc() must use together with set_memory_wb() if break the PAT attribute, there are tons of warning like: [ 45.846872] x86/PAT: NDK MediaCodec_:3753 map pfn RAM range req write-combining for [mem

Re: [PATCH v2 0/2] perf: add support for logging debug messages to file

2019-09-29 Thread Jiri Olsa
On Sun, Sep 22, 2019 at 10:38:21AM +0800, Changbin Du wrote: > When in TUI mode, it is impossible to show all the debug messages to > console. This make it hard to debug perf issues using debug messages. > This patch adds support for logging debug messages to file to resolve > this problem. > >

[PATCH] drm/i915: Fix documentation build warnings w/r/t kernel-doc

2019-09-29 Thread Jaskaran Singh
Building docs with make htmldocs yields documentation build warnings for drivers/gpu/drm/i915/i915_drv.h. Some of the documentation does not follow kernel-doc format. This patch fixes these warnings. Signed-off-by: Jaskaran Singh --- drivers/gpu/drm/i915/i915_drv.h | 28

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Alexander E. Patrakov
29.09.2019 04:53, Linus Torvalds пишет: On Sat, Sep 28, 2019 at 3:24 PM Thomas Gleixner wrote: Nicholas presented the idea to (ab)use speculative execution for random number generation years ago at the Real-Time Linux Workshop: What you describe is just a particularly simple version of the

[PATCH 1/1] media: dvbsky: use a single mutex and state buffers for all R/W ops

2019-09-29 Thread Andrei Koshkosh
Signed-off-by: Andrei Koshkosh --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c index c41e10b..6a118a0 100644 ---

Re: [PATCH] tracing/probe: Fix to check the difference of nr_args before adding probe

2019-09-29 Thread Masami Hiramatsu
Hi Steve, On Sat, 28 Sep 2019 17:11:58 -0400 Steven Rostedt wrote: > On Sat, 28 Sep 2019 02:59:08 -0700 > Masami Hiramatsu wrote: > > > Fix to check the difference of nr_args before adding probe > > on existing probes. This also may set the error log index > > bigger than the number of

[PATCH] cgroup: short-circuit current_cgns_cgroup_from_root() on the default hierarchy

2019-09-29 Thread Miaohe Lin
Like commit 13d82fb77abb ("cgroup: short-circuit cset_cgroup_from_root() on the default hierarchy"), short-circuit current_cgns_cgroup_from_root() on the default hierarchy. Signed-off-by: Miaohe Lin --- kernel/cgroup/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay

2019-09-29 Thread Jernej Skrabec
It turns out that sopine-baseboard needs same fix as pine64-plus for ethernet PHY. Here too Realtek ethernet PHY chip needs additional power on delay to properly initialize. Datasheet mentions that chip needs 30 ms to be properly powered on and that it needs some more time to be initialized. Fix

Re: Linux 5.3-rc8

2019-09-29 Thread Lennart Poettering
On Fr, 27.09.19 08:58, Linus Torvalds (torva...@linux-foundation.org) wrote: > On Fri, Sep 27, 2019 at 6:57 AM Lennart Poettering > wrote: > > > > Doing the random seed in the boot loader is nice for two reasons: > > > > 1. It runs very very early, so that the OS can come up with fully > >

Re: [PATCH v5 16/16] mm/userfaultfd: Honor FAULT_FLAG_KILLABLE in fault path

2019-09-29 Thread Peter Xu
On Thu, Sep 26, 2019 at 05:39:04PM +0800, Peter Xu wrote: > @@ -490,8 +512,7 @@ vm_fault_t handle_userfault(struct vm_fault *vmf, > unsigned long reason) > up_read(>mmap_sem); > > if (likely(must_wait && !READ_ONCE(ctx->released) && > -(return_to_userland ?

Cider Factor (cont: Fair Trade O.S.)

2019-09-29 Thread Ywe Cærlyn
Hello. I suggested a Fair Trade BSD derivative, integrating online currency, for those with netjob skills. Meaning finely presented file news, where content creators can upload their media, set attributes for re-use and not, and get royalites automatically, and everyone potentially could be

Re: [PATCH -next] habanalabs: remove set but not used variable 'ctx'

2019-09-29 Thread Oded Gabbay
On Sat, Sep 28, 2019 at 7:18 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/misc/habanalabs/device.c: In function hpriv_release: > drivers/misc/habanalabs/device.c:45:17: warning: variable ctx set but not > used [-Wunused-but-set-variable] > > It is never

Re: [PATCH 2/2] clk: meson: a1: add support for Amlogic A1 clock driver

2019-09-29 Thread Jian Hu
On 2019/9/27 21:32, Jerome Brunet wrote: On Fri 27 Sep 2019 at 11:52, Jian Hu wrote: Hi, Jerome Thank you for review. On 2019/9/25 23:09, Jerome Brunet wrote: On Wed 25 Sep 2019 at 19:44, Jian Hu wrote: The Amlogic A1 clock includes three parts: peripheral clocks, pll clocks, CPU

[PATCH] mm/kmemleak: skip late_init if not skip disable

2019-09-29 Thread Murphy Zhou
Now if DEFAULT_OFF set to y, kmemleak_init will start the cleanup_work workqueue. Then late_init call will set kmemleak_initialized to 1, the cleaup workqueue will try to do cleanup, triggering: [24.738773] == [24.742784] BUG: KASAN:

[PATCH] regulator: ti-abb: Fix timeout in ti_abb_wait_txdone/ti_abb_clear_all_txdone

2019-09-29 Thread Axel Lin
ti_abb_wait_txdone() may return -ETIMEDOUT when ti_abb_check_txdone() returns true in the latest iteration of the while loop because the timeout value is abb->settling_time + 1. Similarly, ti_abb_clear_all_txdone() may return -ETIMEDOUT when ti_abb_check_txdone() returns false in the latest

Re: [PATCH] Staging: exfat: exfat_super.c: fixed camelcase coding style issue

2019-09-29 Thread Greg KH
On Sat, Sep 28, 2019 at 06:19:10PM -0500, Jesse Barton wrote: > Fixed a coding style issue. What coding style issue? Always be specific here. > Signed-off-by: Jesse Barton > --- > drivers/staging/exfat/exfat_super.c | 20 ++-- > 1 file changed, 10 insertions(+), 10

Re: [PATCH 7/7] nsdeps: make generated patches independent of locale

2019-09-29 Thread Greg Kroah-Hartman
On Sun, Sep 29, 2019 at 10:18:50AM +0900, Masahiro Yamada wrote: > On Sat, Sep 28, 2019 at 3:14 AM Greg Kroah-Hartman > wrote: > > > > On Sat, Sep 28, 2019 at 12:42:28AM +0900, Masahiro Yamada wrote: > > > On Fri, Sep 27, 2019 at 10:27 PM Matthias Maennich > > > wrote: > > > > > > > > On Fri,

Re: [PATCH] ipc/sem: Fix race between to-be-woken task and waker

2019-09-29 Thread Manfred Spraul
Hi Waiman, I have now written the mail 3 times: Twice I thought that I found a race, but during further analysis, it always turns out that the spin_lock() is sufficient. First, to avoid any obvious things: Until the series with e.g. 27d7be1801a4824e, there was a race inside sem_lock().

[PULL REQUEST] i2c for 5.4

2019-09-29 Thread Wolfram Sang
Linus, this second pull request from I2C contains: - make Lenovo Yoga C630 boot now that the dependencies are merged - restore BlockProcessCall for i801, accidently removed in this merge window - a bugfix for the riic driver - an improvement to the slave-eeprom driver which should have been in

Re: [PATCH v3 1/6] staging: rtl8723bs: replace __inline by inline

2019-09-29 Thread Greg Kroah-Hartman
On Fri, Sep 13, 2019 at 12:19:22AM +0200, Rasmus Villemoes wrote: > Currently, __inline is #defined as inline in compiler_types.h, so this > should not change functionality. It is preparation for removing said > #define. > > While at it, change some "inline static" to the customary "static >

[PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
On some Layerscape boards like LS2085ARDB and LS2088ARDB, input pull-up resistors on PCA954x MUX device are missing on board, So, if MUX are disabled after powered-on, input lines will float leading to incorrect functionality. Hence, PCA954x MUX device should never be turned-off after power-on.

[GIT PULL] Documentation/process/embargoed-hardware-issues patches for 5.4-rc1

2019-09-29 Thread Greg KH
The following changes since commit f74c2bb98776e2de508f4d607cd519873065118e: Linux 5.3-rc8 (2019-09-08 13:33:15 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-5.4-rc1 for you to fetch changes up to

[PATCH] watchdog: meson: Fix the wrong value of left time

2019-09-29 Thread Xingyu Chen
The left time value is wrong when we get it by sysfs. The left time value should be equal to preset timeout value minus elapsed time value. According to the Meson-GXB/GXL datasheets which can be found at [0], the timeout value is saved to BIT[0-15] of the WATCHDOG_TCNT, and elapsed time value is

Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Cengiz Can
Hello Biwen, > + /* Errata ID E-00013 on board LS2088ARDB and LS2088ARDB: > +* The point here is that you must not disable a mux if there > +* are no pullups on the input or you mess up the I2C. This > +* needs to be put into the DTS really as the kernel cannot > +

Re: [PATCH 00/11] of: dma-ranges fixes and improvements

2019-09-29 Thread Arnd Bergmann
On Fri, Sep 27, 2019 at 2:24 AM Rob Herring wrote: > > This series fixes several issues related to 'dma-ranges'. Primarily, > 'dma-ranges' in a PCI bridge node does correctly set dma masks for PCI > devices not described in the DT. A common case needing dma-ranges is a > 32-bit PCIe bridge on a

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-09-29 Thread Vicente Bergas
On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek Unune wrote: Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 Signed-off-by: Vivek Unune --- arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] watchdog/sbc7240_wdt: Fix yet another -Wimplicit-fallthrough warning

2019-09-29 Thread Borislav Petkov
From: Borislav Petkov ... by moving the fall through comment outside of the code block so that gcc sees it. No functional changes. Signed-off-by: Borislav Petkov Cc: Wim Van Sebroeck Cc: Guenter Roeck Cc: linux-watch...@vger.kernel.org --- drivers/watchdog/sbc7240_wdt.c | 3 +-- 1 file

Re: x86/purgatory: undefined symbol __stack_chk_fail

2019-09-29 Thread Ingo Molnar
* Arvind Sankar wrote: > On Sat, Sep 28, 2019 at 12:41:29PM +, Ingo Molnar wrote: > > > > * Randy Dunlap wrote: > > > > > On 9/3/19 8:50 AM, Andreas Smas wrote: > > > > Hi, > > > > > > > > For me, kernels built including this commit > > > > b059f801a937 (x86/purgatory: Use

[PATCH] perf symbols: Don't split kernel symbols when using kallsyms

2019-09-29 Thread Wei Li
If there is ovelapping of vmlinux addresses with modules on a system, the kernel symbols will be split to unique DSOs([kernel].N) when using /proc/kallsyms, introduced by commit 2e538c4a1847 ("perf tools: Improve kernel/modules symbol lookup"). When doing perf probe/report on such a system, it

net-next/master boot bisection: v5.3-13186-g02dc96ef6c25 on bcm2836-rpi-2-b

2019-09-29 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

Re: [PATCH v9 13/15] leds: lp55xx: Update the lp55xx to use the multi color framework

2019-09-29 Thread Jacek Anaszewski
Dan, On 9/26/19 2:02 PM, Dan Murphy wrote: > Jacek > > On 9/25/19 5:00 PM, Jacek Anaszewski wrote: >> Dan, >> >> On 9/25/19 7:46 PM, Dan Murphy wrote: >>> Update the lp5523 to allow the use of the multi color framework. >>> >>> Signed-off-by: Dan Murphy >>> --- >>>   drivers/leds/Kconfig

Re: [PATCH 5/6] media: sun4i: Add H3 deinterlace driver

2019-09-29 Thread Jernej Škrabec
Dne četrtek, 12. september 2019 ob 22:26:47 CEST je Maxime Ripard napisal(a): > Hi, > > On Thu, Sep 12, 2019 at 07:51:31PM +0200, Jernej Skrabec wrote: > > + dev->regmap = devm_regmap_init_mmio(dev->dev, dev->base, > > + _regmap_config); > > + if

[PATCH] classmate-laptop: remove unused variable

2019-09-29 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/platform/x86/classmate-laptop.c: In function cmpc_accel_remove_v4: drivers/platform/x86/classmate-laptop.c:424:21: warning: variable accel set but not used [-Wunused-but-set-variable] drivers/platform/x86/classmate-laptop.c: In function

[PATCH 4.19 01/63] Revert "Bluetooth: validate BLE connection interval updates"

2019-09-29 Thread Greg Kroah-Hartman
From: Marcel Holtmann [ Upstream commit 68d19d7d995759b96169da5aac313363f92a9075 ] This reverts commit c49a8682fc5d298d44e8d911f4fa14690ea9485e. There are devices which require low connection intervals for usable operation including keyboards and mice. Forcing a static connection interval for

[PATCH 4.19 06/63] IB/core: Add an unbound WQ type to the new CQ API

2019-09-29 Thread Greg Kroah-Hartman
From: Jack Morgenstein commit f794809a7259dfaa3d47d90ef5a86007cf48b1ce upstream. The upstream kernel commit cited below modified the workqueue in the new CQ API to be bound to a specific CPU (instead of being unbound). This caused ALL users of the new CQ API to use the same bound WQ.

[PATCH 4.19 03/63] RDMA/restrack: Protect from reentry to resource return path

2019-09-29 Thread Greg Kroah-Hartman
From: Leon Romanovsky commit fe9bc1644918aa1d02a889b4ca788bfb67f90816 upstream. Nullify the resource task struct pointer to ensure that subsequent calls won't try to release task_struct again. [ cut here ] ODEBUG: free active (active state 1) object type: rcu_head hint:

[PATCH 4.19 05/63] drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-09-29 Thread Greg Kroah-Hartman
From: Nick Desaulniers [ Upstream commit 0f0727d971f6fdf8f1077180d495ddb9928f0c8b ] arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn on SSE2 to support emitting double precision floating point instructions

[PATCH 4.19 14/63] CIFS: fix deadlock in cached root handling

2019-09-29 Thread Greg Kroah-Hartman
From: Aurelien Aptel commit 7e5a70ad88b1e6f6d9b934b2efb41afff496820f upstream. Prevent deadlock between open_shroot() and cifs_mark_open_files_invalid() by releasing the lock before entering SMB2_open, taking it again after and checking if we still need to use the result. Link:

[PATCH 4.19 02/63] net/ibmvnic: free reset work of removed device from queue

2019-09-29 Thread Greg Kroah-Hartman
From: Juliet Kim [ Upstream commit 1c2977c094998de032fee6e898c88b4a05483d08 ] Commit 36f1031c51a2 ("ibmvnic: Do not process reset during or after device removal") made the change to exit reset if the driver has been removed, but does not free reset work items of the adapter from queue. Ensure

[PATCH 4.19 07/63] HID: prodikeys: Fix general protection fault during probe

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 98375b86c79137416e9fd354177b85e768c16e56 upstream. The syzbot fuzzer provoked a general protection fault in the hid-prodikeys driver: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault:

[PATCH 4.19 12/63] mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword()

2019-09-29 Thread Greg Kroah-Hartman
From: Tokunori Ikegami commit 37c673ade35c707d50583b5b25091ff8ebdeafd7 upstream. As reported by the OpenWRT team, write requests sometimes fail on some platforms. Currently to check the state chip_ready() is used correctly as described by the flash memory S29GL256P11TFI01 datasheet. Also

[PATCH 4.19 11/63] HID: Add quirk for HP X500 PIXART OEM mouse

2019-09-29 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 2acf40f0454d41b8d51c95d317283c20c931164d upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Ville Viinikka (viinikv) reported and tested the

[PATCH 4.19 10/63] HID: hidraw: Fix invalid read in hidraw_ioctl

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 416dacb819f59180e4d86a5550052033ebb6d72c upstream. The syzbot fuzzer has reported a pair of problems in the hidraw_ioctl() function: slab-out-of-bounds read and use-after-free read. An example of the first: BUG: KASAN: slab-out-of-bounds in strlen+0x79/0x90

[PATCH 4.19 08/63] HID: sony: Fix memory corruption issue on cleanup.

2019-09-29 Thread Greg Kroah-Hartman
From: Roderick Colenbrander commit 2bcdacb70327013ca2066bfcf2af1009eff01f1d upstream. The sony driver is not properly cleaning up from potential failures in sony_input_configured. Currently it calls hid_hw_stop, while hid_connect is still running. This is not a good idea, instead hid_hw_stop

[PATCH 4.19 27/63] ALSA: usb-audio: Add Hiby device family to quirks for native DSD support

2019-09-29 Thread Greg Kroah-Hartman
From: Ilya Pshonkin commit 029d2c0fd61eac74700fb436fc63bfff7e5e upstream. This patch adds quirk VID ID for Hiby portable players family with native DSD playback support. Signed-off-by: Ilya Pshonkin Cc: Link: https://lore.kernel.org/r/20190917074937.157802-1-ilya.pshon...@netforce.ua

[PATCH 4.19 28/63] ALSA: usb-audio: Add DSD support for EVGA NU Audio

2019-09-29 Thread Greg Kroah-Hartman
From: Jussi Laako commit f41f900568d9ffd896cc941db7021eb14bd55910 upstream. EVGA NU Audio is actually a USB audio device on a PCIexpress card, with it's own USB controller. It supports both PCM and DSD. Signed-off-by: Jussi Laako Cc: Link:

[PATCH 4.19 04/63] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-29 Thread Greg Kroah-Hartman
From: Greg Kurz commit 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 upstream. There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call to return the 32-bit value 0x when OPAL has run out of IRQs. Unfortunatelty, OPAL return values are signed 64-bit entities and errors are

[PATCH 4.19 00/63] 4.19.76-stable review

2019-09-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.76 release. There are 63 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 Tue 01 Oct 2019 01:47:47 PM UTC. Anything

[PATCH 4.19 16/63] net/mlx5e: dont set CHECKSUM_COMPLETE on SCTP packets

2019-09-29 Thread Greg Kroah-Hartman
From: Alaa Hleihel [ Upstream commit fe1dc069990c1f290ef6b99adb46332c03258f38 ] CHECKSUM_COMPLETE is not applicable to SCTP protocol. Setting it for SCTP packets leads to CRC32c validation failure. Fixes: bbceefce9adf ("net/mlx5e: Support RX CHECKSUM_COMPLETE") Signed-off-by: Alaa Hleihel

[PATCH 4.19 09/63] HID: logitech: Fix general protection fault caused by Logitech driver

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 5f9242775bb61f390f0885f23fc16397262c7538 upstream. The syzbot fuzzer found a general protection fault in the HID subsystem: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP

[PATCH 4.19 13/63] crypto: talitos - fix missing break in switch statement

2019-09-29 Thread Greg Kroah-Hartman
From: Gustavo A. R. Silva commit 5fc194ea6d34dfad9833d3043ce41d6c52aff39a upstream. Add missing break statement in order to prevent the code from falling through to case CRYPTO_ALG_TYPE_AHASH. Fixes: aeb4c132f33d ("crypto: talitos - Convert to new AEAD interface") Cc: sta...@vger.kernel.org

[PATCH 4.19 25/63] ASoC: Intel: cht_bsw_max98090_ti: Enable codec clock once and keep it enabled

2019-09-29 Thread Greg Kroah-Hartman
From: Hans de Goede commit 4bcdec39c454c4e8f9512115bdcc3efec1ba5f55 upstream. Users have been seeing sound stability issues with max98090 codecs since: commit 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") At first that commit broke sound for Chromebook Swanky and Clapper

[PATCH 4.19 18/63] net/mlx5e: Allow reporting of checksum unnecessary

2019-09-29 Thread Greg Kroah-Hartman
From: Or Gerlitz [ Upstream commit b856df28f9230a47669efbdd57896084caadb2b3 ] Currently we practically never report checksum unnecessary, because for all IP packets we take the checksum complete path. Enable non-default runs with reprorting checksum unnecessary, using an ethtool private flag.

[PATCH 4.19 29/63] ALSA: dice: fix wrong packet parameter for Alesis iO26

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit 3a9236e97207f2469254b4098995159b80174d95 upstream. At higher sampling rate (e.g. 192.0 kHz), Alesis iO26 transfers 4 data channels per data block in CIP. Both iO14 and iO26 have the same contents in their configuration ROM. For this reason, ALSA Dice driver

[PATCH 4.19 32/63] objtool: Clobber user CFLAGS variable

2019-09-29 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit f73b3cc39c84220e6dccd463b5c8279b03514646 upstream. If the build user has the CFLAGS variable set in their environment, objtool blindly appends to it, which can cause unexpected behavior. Clobber CFLAGS to ensure consistent objtool compilation behavior. Reported-by:

[PATCH 4.19 31/63] ALSA: hda - Apply AMD controller workaround for Raven platform

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Iwai commit d2c63b7dfd06788a466d5ec8a850491f084c5fc2 upstream. It's reported that the garbled sound on HP Envy x360 13z-ag000 (Ryzen Laptop) is fixed by the same workaround applied to other AMD chips. Update the driver_data entry for Raven (1022:15e3) to use the newly introduced

[PATCH 4.19 19/63] net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded

2019-09-29 Thread Greg Kroah-Hartman
From: Saeed Mahameed [ Upstream commit 5d0bb3bac4b9f6c22280b04545626fdfd99edc6b ] XDP programs might change packets data contents which will make the reported skb checksum (checksum complete) invalid. When XDP programs are loaded/unloaded set/clear rx RQs MLX5E_RQ_STATE_NO_CSUM_COMPLETE flag.

[PATCH 4.19 30/63] ALSA: hda - Add laptop imic fixup for ASUS M9V laptop

2019-09-29 Thread Greg Kroah-Hartman
From: Shih-Yuan Lee (FourDollars) commit 7b485d175631be676424aedb8cd2f66d0c93da78 upstream. The same fixup to enable laptop imic is needed for ASUS M9V with AD1986A codec like another HP machine. Signed-off-by: Shih-Yuan Lee (FourDollars) Cc: Link:

[PATCH 4.19 17/63] mlx5: fix get_ip_proto()

2019-09-29 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit ef6fcd455278c2be3032a346cc66d9dd9866b787 ] IP header is not necessarily located right after struct ethhdr, there could be multiple 802.1Q headers in between, this is why we call __vlan_get_protocol(). Fixes: fe1dc069990c ("net/mlx5e: don't set

[PATCH 4.19 20/63] net/mlx5e: Rx, Fixup skb checksum for packets with tail padding

2019-09-29 Thread Greg Kroah-Hartman
From: Saeed Mahameed [ Upstream commit 0aa1d18615c163f92935b806dcaff9157645233a ] When an ethernet frame with ip payload is padded, the padding octets are not covered by the hardware checksum. Prior to the cited commit, skb checksum was forced to be CHECKSUM_NONE when padding is detected.

[PATCH 4.19 46/63] bcache: remove redundant LIST_HEAD(journal) from run_cache_set()

2019-09-29 Thread Greg Kroah-Hartman
From: Coly Li [ Upstream commit cdca22bcbc64fc83dadb8d927df400a8d86ddabb ] Commit 95f18c9d1310 ("bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set") forgets to remove the original define of LIST_HEAD(journal), which makes the change no take

[PATCH 4.19 24/63] media: tvp5150: fix switch exit in set control handler

2019-09-29 Thread Greg Kroah-Hartman
From: Marco Felsch commit 2d29bcc8c237874795175b2930fa9a45a115175a upstream. The function only consists of a single switch case block without a default case. Unsupported control requests are indicated by the -EINVAL return code trough the last return statement at the end of the function. So

[PATCH 4.19 45/63] PCI: hv: Avoid use of hv_pci_dev->pci_slot after freeing it

2019-09-29 Thread Greg Kroah-Hartman
From: Dexuan Cui [ Upstream commit 533ca1feed98b0bf024779a14760694c7cb4d431 ] The slot must be removed before the pci_dev is removed, otherwise a panic can happen due to use-after-free. Fixes: 15becc2b56c6 ("PCI: hv: Add hv_pci_remove_slots() when we unload the driver") Signed-off-by: Dexuan

[PATCH 4.19 47/63] initramfs: dont free a non-existent initrd

2019-09-29 Thread Greg Kroah-Hartman
From: Steven Price [ Upstream commit 5d59aa8f9ce972b472201aed86e904bb75879ff0 ] Since commit 54c7a8916a88 ("initramfs: free initrd memory if opening /initrd.image fails"), the kernel has unconditionally attempted to free the initrd even if it doesn't exist. In the non-existent case this causes

[PATCH 4.19 15/63] net/mlx5e: Set ECN for received packets using CQE indication

2019-09-29 Thread Greg Kroah-Hartman
From: Natali Shechtman [ Upstream commit f007c13d4ad62f494c83897eda96437005df4a91 ] In multi-host (MH) NIC scheme, a single HW port serves multiple hosts or sockets on the same host. The HW uses a mechanism in the PCIe buffer which monitors the amount of consumed PCIe buffers per host. On a

[PATCH 4.19 23/63] iwlwifi: mvm: always init rs_fw with 20MHz bandwidth rates

2019-09-29 Thread Greg Kroah-Hartman
From: Naftali Goldstein commit 2859de7637b541dc7191f4d3fce4a1adba80fb3e upstream. As with the non-offloaded rs case, during assoc on the ap side the phy context is set to 20MHz until authorization of a client that supports wider channel-widths. Support this by sending the initial tlc_config_cmd

[PATCH 4.19 34/63] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2019-09-29 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 957063c924736d4341e5d588757b9f31e8f6fa24 ] Clang warns when one enumerated type is implicitly converted to another: drivers/pinctrl/sprd/pinctrl-sprd.c:845:19: warning: implicit conversion from enumeration type 'enum sprd_pinconf_params' to different

[PATCH 4.19 44/63] f2fs: check all the data segments against all node ones

2019-09-29 Thread Greg Kroah-Hartman
From: Surbhi Palande [ Upstream commit 1166c1f2f69117ad254189ca781287afa6e550b6 ] As a part of the sanity checking while mounting, distinct segment number assignment to data and node segments is verified. Fixing a small bug in this verification between node and data segments. We need to check

[PATCH 4.19 22/63] iwlwifi: mvm: send BCAST management frames to the right station

2019-09-29 Thread Greg Kroah-Hartman
From: Emmanuel Grumbach commit 65c3b582ecab7a403efdf08babbf87fdbe27369c upstream. Probe responses were sent to the multicast station while they should be routed to the broadcast station. This has no negative effect since the frame was still routed to the right queue, but it looked very fishy to

[PATCH 4.19 21/63] net/mlx5e: Rx, Check ip headers sanity

2019-09-29 Thread Greg Kroah-Hartman
From: Saeed Mahameed [ Upstream commit 0318a7b7fcad9765931146efa7ca3a034194737c ] In the two places is_last_ethertype_ip is being called, the caller will be looking inside the ip header, to be safe, add ip{4,6} header sanity check. And return true only on valid ip headers, i.e: the whole header

[PATCH 4.19 39/63] scsi: qla2xxx: Remove all rports if fabric scan retry fails

2019-09-29 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit 9ba1cb25c151de306d64647e545d34af64f30c19 ] When all fabric scan retries fail, remove all RPorts, DMA resources for the command. Otherwise we have stale Rports. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen

[PATCH 4.19 38/63] scsi: qla2xxx: Turn off IOCB timeout timer on IOCB completion

2019-09-29 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit e112761a4f1dcbe9fb9f43f46de7be69d6963b0d ] Turn off IOCB timeout timer on IOCB completion instead of turning it off in a deferred task. This prevent false alarm if the deferred task is stalled out. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani

[PATCH 4.19 50/63] Revert "f2fs: avoid out-of-range memory access"

2019-09-29 Thread Greg Kroah-Hartman
From: Chao Yu [ Upstream commit a37d0862d17411edb67677a580a6f505ec2225f6 ] As Pavel Machek reported: "We normally use -EUCLEAN to signal filesystem corruption. Plus, it is good idea to report it to the syslog and mark filesystem as "needing fsck" if filesystem can do that." Still we need

[PATCH 4.19 48/63] blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs

2019-09-29 Thread Greg Kroah-Hartman
From: Jianchao Wang [ Upstream commit 5b202853ffbc54b29f23c4b1b5f3948efab489a2 ] blk_mq_realloc_hw_ctxs could be invoked during update hw queues. At the momemt, IO is blocked. Change the gfp flags from GFP_KERNEL to GFP_NOIO to avoid forever hang during memory allocation in

[PATCH 4.19 62/63] net_sched: check cops->tcf_block in tc_bind_tclass()

2019-09-29 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 8b142a00edcf8422ca48b8de88d286efb500cb53 ] At least sch_red and sch_tbf don't implement ->tcf_block() while still have a non-zero tc "class". Instead of adding nop implementations to each of such qdisc's, we can just relax the check of cops->tcf_block() in

[PATCH 4.19 61/63] Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices

2019-09-29 Thread Greg Kroah-Hartman
From: Jian-Hong Pan [ Upstream commit 6d0762b19c5963ff9e178e8af3626532ee04d93d ] The ASUS X412FA laptop contains a Realtek RTL8822CE device with an associated BT chip using a USB ID of 04ca:4005. This ID is added to the driver. The /sys/kernel/debug/usb/devices portion for this device is: T:

[PATCH 4.19 33/63] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-09-29 Thread Greg Kroah-Hartman
From: Vadim Sukhomlinov commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling future TPM operations. TPM 1.2 behavior was different, future TPM operations weren't disabled, causing rare issues. This patch ensures that

[PATCH 4.19 53/63] f2fs: fix to do sanity check on segment bitmap of LFS curseg

2019-09-29 Thread Greg Kroah-Hartman
From: Chao Yu [ Upstream commit c854f4d681365498f53ba07843a16423625aa7e9 ] As Jungyeon Reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203233 - Reproduces gcc poc_13.c ./run.sh f2fs - Kernel messages F2FS-fs (sdb): Bitmap was wrongly set, blk:4608 kernel BUG at

[PATCH 4.19 42/63] bpf: libbpf: retry loading program on EAGAIN

2019-09-29 Thread Greg Kroah-Hartman
From: Lorenz Bauer [ Upstream commit 86edaed379632e216a97e6bcef9f498b64522d50 ] Commit c3494801cd17 ("bpf: check pending signals while verifying programs") makes it possible for the BPF_PROG_LOAD to fail with EAGAIN. Retry unconditionally in this case. Fixes: c3494801cd17 ("bpf: check pending

[PATCH 4.19 35/63] power: supply: sysfs: ratelimit property read error message

2019-09-29 Thread Greg Kroah-Hartman
From: David Lechner [ Upstream commit 87a2b65fc855e6be50f791c2ebbb492541896827 ] This adds rate limiting to the message that is printed when reading a power supply property via sysfs returns an error. This will prevent userspace applications from unintentionally dDOSing the system by

[PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Greg Kroah-Hartman
From: Waiman Long [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have

[PATCH 4.19 54/63] drm: Flush output polling on shutdown

2019-09-29 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit 3b295cb1a411d9c82bbfaa66bc17a8508716ed07 ] We need to mark the output polling as disabled to prevent concurrent irqs from queuing new work as shutdown the probe -- causing that work to execute after we have freed the structs: <4> [341.846490]

[PATCH 4.19 52/63] net/ibmvnic: Fix missing { in __ibmvnic_reset

2019-09-29 Thread Greg Kroah-Hartman
From: Michal Suchanek [ Upstream commit c8dc55956b09b53ccffceb6e3146981210e27821 ] Commit 1c2977c09499 ("net/ibmvnic: free reset work of removed device from queue") adds a } without corresponding { causing build break. Fixes: 1c2977c09499 ("net/ibmvnic: free reset work of removed device from

[PATCH 4.19 37/63] locking/lockdep: Add debug_locks check in __lock_downgrade() - again

2019-09-29 Thread Greg Kroah-Hartman
From: Waiman Long [ Upstream commit 71492580571467fb7177aade19c18ce7486267f5 ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have

[PATCH 4.19 43/63] irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices

2019-09-29 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit c9c96e30ecaa0aafa225aa1a5392cb7db17c7a82 ] When allocating a range of LPIs for a Multi-MSI capable device, this allocation extended to the closest power of 2. But on the release path, the interrupts are released one by one. This results in not releasing the

[PATCH 4.19 41/63] Revert "drm/amd/powerplay: Enable/Disable NBPSTATE on On/OFF of UVD"

2019-09-29 Thread Greg Kroah-Hartman
From: Shirish S [ Upstream commit 00fedbe629bfc0a51c07b6e665265ce31d8b6f3c ] This reverts commit dbd8299c32f6f413f6cfe322fe0308f3cfc577e8. Reason for revert: This patch sends msg PPSMC_MSG_DisableLowMemoryPstate(0x002e) in wrong of sequence to SMU which is before PPSMC_MSG_UVDPowerON

  1   2   3   4   5   >