Re: [PATCH 5.0 000/115] 5.0.10-stable review

2019-04-26 Thread Greg Kroah-Hartman
On Thu, Apr 25, 2019 at 12:39:36PM -0700, Guenter Roeck wrote: > On Wed, Apr 24, 2019 at 07:08:56PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.0.10 release. > > There are 115 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2019-04-26 Thread Pali Rohár
On Wednesday 18 April 2018 13:46:10 Pali Rohár wrote: > On Thursday 08 March 2018 23:53:30 Pali Rohár wrote: > > On Monday 26 February 2018 21:32:55 Wolfram Sang wrote: > > > > > > > I'm not maintainer of i2c-i801.ko, Jean Delvare & Wolfram Sang are. > > > > Therefore instructing future contributo

[PATCH v6 08/24] x86/alternative: Use temporary mm for text poking

2019-04-26 Thread nadav . amit
From: Nadav Amit text_poke() can potentially compromise security as it sets temporary PTEs in the fixmap. These PTEs might be used to rewrite the kernel code from other cores accidentally or maliciously, if an attacker gains the ability to write onto kernel memory. Moreover, since remote TLBs ar

[PATCH v6 11/24] x86/kprobes: Set instruction page as executable

2019-04-26 Thread nadav . amit
From: Nadav Amit Set the page as executable after allocation. This patch is a preparatory patch for a following patch that makes module allocated pages non-executable. While at it, do some small cleanup of what appears to be unnecessary masking. Acked-by: Masami Hiramatsu Signed-off-by: Nadav

[PATCH v6 06/24] fork: Provide a function for copying init_mm

2019-04-26 Thread nadav . amit
From: Nadav Amit Provide a function for copying init_mm. This function will be later used for setting a temporary mm. Cc: Andy Lutomirski Cc: Kees Cook Cc: Dave Hansen Acked-by: Peter Zijlstra (Intel) Reviewed-by: Masami Hiramatsu Tested-by: Masami Hiramatsu Signed-off-by: Nadav Amit Sign

[PATCH v6 05/24] uprobes: Initialize uprobes earlier

2019-04-26 Thread nadav . amit
From: Nadav Amit In order to have a separate address space for text poking, we need to duplicate init_mm early during start_kernel(). This, however, introduces a problem since uprobes functions are called from dup_mmap(), but uprobes is still not initialized in this early stage. Since uprobes in

[PATCH v6 14/24] x86/alternative: Remove the return value of text_poke_*()

2019-04-26 Thread nadav . amit
From: Nadav Amit The return value of text_poke_early() and text_poke_bp() is useless. Remove it. Cc: Andy Lutomirski Cc: Kees Cook Cc: Dave Hansen Cc: Masami Hiramatsu Acked-by: Peter Zijlstra (Intel) Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- arch/x86/include/asm/text-p

[PATCH v6 09/24] x86/kgdb: Avoid redundant comparison of patched code

2019-04-26 Thread nadav . amit
From: Nadav Amit text_poke() already ensures that the written value is the correct one and fails if that is not the case. There is no need for an additional comparison. Remove it. Acked-by: Peter Zijlstra (Intel) Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- arch/x86/kernel/kgd

[PATCH v6 02/24] x86/jump_label: Use text_poke_early() during early init

2019-04-26 Thread nadav . amit
From: Nadav Amit There is no apparent reason not to use text_poke_early() during early-init, since no patching of code that might be on the stack is done and only a single core is running. This is required for the next patches that would set a temporary mm for text poking, and this mm is only in

[PATCH v6 13/24] x86/jump-label: Remove support for custom poker

2019-04-26 Thread nadav . amit
From: Nadav Amit There are only two types of poking: early and breakpoint based. The use of a function pointer to perform poking complicates the code and is probably inefficient due to the use of indirect branches. Cc: Andy Lutomirski Cc: Kees Cook Cc: Dave Hansen Cc: Masami Hiramatsu Acked-

[PATCH v6 15/24] x86/mm/cpa: Add set_direct_map_ functions

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Add two new functions set_direct_map_default_noflush() and set_direct_map_invalid_noflush() for setting the direct map alias for the page to its default valid permissions and to an invalid state that cannot be cached in a TLB, respectively. These functions do not flush the TL

[PATCH v6 18/24] modules: Use vmalloc special flag

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Use new flag for handling freeing of special permissioned memory in vmalloc and remove places where memory was set RW before freeing which is no longer needed. Since freeing of VM_FLUSH_RESET_PERMS memory is not supported in an interrupt by vmalloc, the freeing of init secti

[PATCH v6 12/24] x86/module: Avoid breaking W^X while loading modules

2019-04-26 Thread nadav . amit
From: Nadav Amit When modules and BPF filters are loaded, there is a time window in which some memory is both writable and executable. An attacker that has already found another vulnerability (e.g., a dangling pointer) might be able to exploit this behavior to overwrite kernel code. Prevent havin

[PATCH v6 16/24] mm: Make hibernate handle unmapped pages

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Make hibernate handle unmapped pages on the direct map when CONFIG_ARCH_HAS_SET_ALIAS is set. These functions allow for setting pages to invalid configurations, so now hibernate should check if the pages have valid mappings and handle if they are unmapped when doing a hiberna

[PATCH v6 17/24] vmalloc: Add flag for free of special permsissions

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Add a new flag VM_FLUSH_RESET_PERMS, for enabling vfree operations to immediately clear executable TLB entries before freeing pages, and handle resetting permissions on the directmap. This flag is useful for any kind of memory with elevated permissions, or where there can be

[PATCH v6 23/24] mm/tlb: Provide default nmi_uaccess_okay()

2019-04-26 Thread nadav . amit
From: Nadav Amit x86 has an nmi_uaccess_okay(), but other architectures do not. Arch-independent code might need to know whether access to user addresses is ok in an NMI context or in other code whose execution context is unknown. Specifically, this function is needed for bpf_probe_write_user().

[PATCH v6 19/24] bpf: Use vmalloc special flag

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Use new flag VM_FLUSH_RESET_PERMS for handling freeing of special permissioned memory in vmalloc and remove places where memory was set RW before freeing which is no longer needed. Don't track if the memory is RO anymore because it is now tracked in vmalloc. Cc: Daniel Borkm

[PATCH v6 20/24] x86/ftrace: Use vmalloc special flag

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Use new flag VM_FLUSH_RESET_PERMS for handling freeing of special permissioned memory in vmalloc and remove places where memory was set NX and RW before freeing which is no longer needed. Acked-by: Steven Rostedt (VMware) Tested-by: Steven Rostedt (VMware) Signed-off-by: R

[PATCH v6 10/24] x86/ftrace: Set trampoline pages as executable

2019-04-26 Thread nadav . amit
From: Nadav Amit Since alloc_module() will not set the pages as executable soon, set ftrace trampoline pages as executable after they are allocated. For the time being, do not change ftrace to use the text_poke() interface. As a result, ftrace still breaks W^X. Reviewed-by: Steven Rostedt (VMwa

[PATCH v6 24/24] bpf: Fail bpf_probe_write_user() while mm is switched

2019-04-26 Thread nadav . amit
From: Nadav Amit When using a temporary mm, bpf_probe_write_user() should not be able to write to user memory, since user memory addresses may be used to map kernel memory. Detect these cases and fail bpf_probe_write_user() in such cases. Cc: Daniel Borkmann Cc: Alexei Starovoitov Reported-by

[PATCH v6 21/24] x86/kprobes: Use vmalloc special flag

2019-04-26 Thread nadav . amit
From: Rick Edgecombe Use new flag VM_FLUSH_RESET_PERMS for handling freeing of special permissioned memory in vmalloc and remove places where memory was set NX and RW before freeing which is no longer needed. Cc: Masami Hiramatsu Signed-off-by: Rick Edgecombe --- arch/x86/kernel/kprobes/core.

[PATCH v6 22/24] x86/alternative: Comment about module removal races

2019-04-26 Thread nadav . amit
From: Nadav Amit Add a comment to clarify that users of text_poke() must ensure that no races with module removal take place. Cc: Masami Hiramatsu Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- arch/x86/kernel/alternative.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v6 03/24] x86/mm: Introduce temporary mm structs

2019-04-26 Thread nadav . amit
From: Andy Lutomirski Using a dedicated page-table for temporary PTEs prevents other cores from using - even speculatively - these PTEs, thereby providing two benefits: (1) Security hardening: an attacker that gains kernel memory writing abilities cannot easily overwrite sensitive data. (2) Avo

[PATCH v6 00/24] x86: text_poke() fixes and executable lockdowns

2019-04-26 Thread nadav . amit
From: Nadav Amit * * This version fixes failed boots on 32-bit that were reported by 0day. * Patch 5 is added to initialize uprobes during fork initialization. * Patch 7 (which was 6 in the previous version) is updated - the code is * moved to common mm-init code with no further changes. * This

[PATCH v6 01/24] Fix "x86/alternatives: Lockdep-enforce text_mutex in text_poke*()"

2019-04-26 Thread nadav . amit
From: Nadav Amit text_mutex is currently expected to be held before text_poke() is called, but kgdb does not take the mutex, and instead *supposedly* ensures the lock is not taken and will not be acquired by any other core while text_poke() is running. The reason for the "supposedly" comment is

[PATCH v6 07/24] x86/alternative: Initialize temporary mm for patching

2019-04-26 Thread nadav . amit
From: Nadav Amit To prevent improper use of the PTEs that are used for text patching, the next patches will use a temporary mm struct. Initailize it by copying the init mm. The address that will be used for patching is taken from the lower area that is usually used for the task memory. Doing so

[PATCH v6 04/24] x86/mm: Save debug registers when loading a temporary mm

2019-04-26 Thread nadav . amit
From: Nadav Amit Prevent user watchpoints from mistakenly firing while the temporary mm is being used. As the addresses of the temporary mm might overlap those of the user-process, this is necessary to prevent wrong signals or worse things from happening. Cc: Andy Lutomirski Acked-by: Peter Zij

Re: [PATCH v2 0/8] kobject: Add default group support to kobj_type and replace subsystem uses

2019-04-26 Thread Greg Kroah-Hartman
On Sat, Apr 27, 2019 at 02:18:56AM -0400, Kimberly Brown wrote: > On Thu, Apr 25, 2019 at 10:12:53PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Apr 01, 2019 at 10:51:10PM -0400, Kimberly Brown wrote: > > > This patchset adds support for default attribute groups to kobj_type. > > > Also, the uses

Re: linux-next: manual merge of the staging tree with the v4l-dvb tree

2019-04-26 Thread Greg KH
On Fri, Apr 26, 2019 at 04:06:58PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the staging tree got conflicts in: > > drivers/staging/media/zoran/Kconfig > drivers/staging/media/zoran/videocodec.c > drivers/staging/media/zoran/videocodec.h > drivers/staging/me

Re: [PATCH][next] unicode: fix dereference of a potentially null pointer

2019-04-26 Thread Masahiro Yamada
Forwarding because this file is not in my tree. On Sat, Apr 27, 2019 at 7:22 AM Colin King wrote: > > From: Colin Ian King > > The pointer 'tree' is deferenced when assigning pointer 'trie', however > trie is being null checked a few lines later, so it could potentially > be null. Fix the po

[PATCH] x86: Remove various memory encryption exports

2019-04-26 Thread Christoph Hellwig
None of these is used in modular code, and we should probably try to keep it that way. They can be added back if we really get a legitimate modular user. Signed-off-by: Christoph Hellwig --- FYI: this was inspired by the fact the s390 copied some of the exports, which made me wonder why they ad

Re: [PATCH v2 0/8] kobject: Add default group support to kobj_type and replace subsystem uses

2019-04-26 Thread Kimberly Brown
On Thu, Apr 25, 2019 at 10:12:53PM +0200, Greg Kroah-Hartman wrote: > On Mon, Apr 01, 2019 at 10:51:10PM -0400, Kimberly Brown wrote: > > This patchset adds support for default attribute groups to kobj_type. > > Also, the uses of kobj_type's default_attrs field are replaced with > > default_groups

Re: [PATCH RFC] staging: fieldbus: anybus-s: use proper type for wait_for_completion_timeout

2019-04-26 Thread Sven Van Asbroeck
Hello Nicholas, thank you for your contribution, I really appreciate it ! See inline comments below. On Sat, Apr 27, 2019 at 12:32 AM Nicholas Mc Guire wrote: > > wait_for_completion_timeout() returns unsigned long (0 on timeout or > remaining jiffies) not int. Nice catch ! > thus there is no n

[PATCH] ALSA: usb-audio: Fix a memory leak bug

2019-04-26 Thread Wenwen Wang
In parse_audio_selector_unit(), the string array 'namelist' is allocated through kmalloc_array(), and each string pointer in this array, i.e., 'namelist[]', is allocated through kmalloc() in the following for loop. Then, a control instance 'kctl' is created by invoking snd_ctl_new1(). If an error o

Re: [PATCH 0/8] qcom: spmi/ssbi gpio: correct gpio hogging

2019-04-26 Thread Bjorn Andersson
On Tue 05 Mar 16:53 PST 2019, Brian Masney wrote: > Here are some patches that fix gpio hogging for all boards that use > spmi-gpio and ssbi-gpio. These depend on the following two patches > that were merged in 4.20-rc1: > > commit 149a96047237 ("pinctrl: qcom: spmi-gpio: fix gpio-hog related > b

Re: [PATCH] arm64: dts: pms405: increase s3 max voltage

2019-04-26 Thread Bjorn Andersson
On Thu 25 Apr 05:18 PDT 2019, Niklas Cassel wrote: > The commit description should be: arm64: dts: qcom: qcs404-evb: > > (The s3 regulator node moved during upstreaming.) > > Andy/Bjorn, could you please fix this before applying? > Picked up with the subject change. Thanks, Bjorn > Kind rega

Re: [PATCH] arm64: dts: qcom: qcs404-evb: fix l3 min voltage

2019-04-26 Thread Bjorn Andersson
On Thu 25 Apr 05:34 PDT 2019, Niklas Cassel wrote: > The current l3 min voltage level is not supported by > the regulator (the voltage is not a multiple of the regulator step size), > so a driver requesting this exact voltage would fail, see discussion in: > https://patchwork.kernel.org/comment/22

Re: [PATCH v3 3/3] arm64: dts: qcom: Add Lenovo Miix 630

2019-04-26 Thread Bjorn Andersson
On Mon 15 Apr 09:11 PDT 2019, Jeffrey Hugo wrote: > diff --git a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi > b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi [..] > + thermal-zones { > + battery-thermal { > + polling-delay-passive = <250>; > +

Re: [PATCHv1 0/2] qcom: pms405: adc fixes

2019-04-26 Thread Bjorn Andersson
On Wed 20 Mar 06:39 PDT 2019, Amit Kucheria wrote: > A couple of fixes to the adc node in PMS405 to get thermistors to work > correctly. > > Amit Kucheria (2): > arm64: dts: qcom: pms405: calibrate the VADC correctly > arm64: dts: qcom: pms405: Rename adc outputs as per schematics > Picked

[PATCH RFC] staging: fieldbus: anybus-s: use proper type for wait_for_completion_timeout

2019-04-26 Thread Nicholas Mc Guire
unreachable in the current code. Patch was compile-tested with. x86_64_defconfig + FIELDBUS_DEV=m, HMS_ANYBUSS_BUS=m (some unrelated sparse warnings (cast to restricted __be16)) Patch is against 5.1-rc6 (localversion-next is next-20190426) drivers/staging/fieldbus/anybuss/host.c | 7 +++ 1 file

Re: [PATCH v2 1/1] MAINTAINERS: fix typo in file name

2019-04-26 Thread Bjorn Andersson
On Fri 29 Mar 01:47 PDT 2019, Amit Kucheria wrote: > Commit e31f941cf977 ("MAINTAINERS: update list of qcom drivers") had a > typo in the filename, replace the underscore with dash. > > Fixes: e31f941cf977 ("MAINTAINERS: update list of qcom drivers") > Reported-by: Joe Perches > Signed-off-by: A

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-04-26 Thread Aubrey Li
On Thu, Apr 25, 2019 at 5:55 PM Ingo Molnar wrote: > * Aubrey Li wrote: > > On Wed, Apr 24, 2019 at 10:00 PM Julien Desfossez > > wrote: > > > > > > On 24-Apr-2019 09:13:10 PM, Aubrey Li wrote: > > > > On Wed, Apr 24, 2019 at 12:18 AM Vineeth Remanan Pillai > > > > wrote: > > > > > > > > > > Se

[PATCH 4/4] serial: 8250-mtk: modify uart DMA rx

2019-04-26 Thread Long Cheng
Modify uart rx and complete for DMA. Signed-off-by: Long Cheng --- drivers/tty/serial/8250/8250_mtk.c | 53 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index c1fdbc

[PATCH 1/4] dmaengine: mediatek: Add MediaTek UART APDMA support

2019-04-26 Thread Long Cheng
Add 8250 UART APDMA to support MediaTek UART. If MediaTek UART is enabled by SERIAL_8250_MT6577, and we can enable this driver to offload the UART device moving bytes. Signed-off-by: Long Cheng Signed-off-by: Sean Wang --- drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Mak

Suggestion to the 100,000 Unemployed Persons in Singapore

2019-04-26 Thread Turritopsis Dohrnii Teo En Ming
Subject/Topic: Suggestion to the 100,000 Unemployed Persons in Singapore For Immediate World-Wide Release 26th April 2019 Singapore Time I would like to suggest the 100,000 unemployed persons in Singapore to apply for refugee status in developed countries outside of Singapore. I believe many or

[PATCH 3/4] dt-bindings: dma: uart: rename binding

2019-04-26 Thread Long Cheng
The filename matches mtk-uart-apdma.c. So using "mtk-uart-apdma.txt" should be better. And add some property. Signed-off-by: Long Cheng --- .../devicetree/bindings/dma/8250_mtk_dma.txt | 33 .../devicetree/bindings/dma/mtk-uart-apdma.txt | 55 2 fi

[PATCH v12 0/4] add uart DMA function

2019-04-26 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma/mediatek. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma devic

[PATCH 2/4] arm: dts: mt2712: add uart APDMA to device tree

2019-04-26 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 + 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/

[PATCH 2/5] kbuild: move Documentation to vmlinux-alldirs

2019-04-26 Thread Masahiro Yamada
A minor code cleanup. Signed-off-by: Masahiro Yamada --- Makefile | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 251ded5..334ef8a 100644 --- a/Makefile +++ b/Makefile @@ -988,8 +988,9 @@ vmlinux-dirs:= $(patsubst %/,%,$(filter %/,

[PATCH 5/5] samples: kobject: allow CONFIG_SAMPLE_KOBJECT to become y

2019-04-26 Thread Masahiro Yamada
This sample works well as builtin. Signed-off-by: Masahiro Yamada --- samples/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/Kconfig b/samples/Kconfig index b98a763..399ae53 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -20,8 +20,7 @@ config SAMPLE

[PATCH 4/5] samples: seccomp: turn CONFIG_SAMPLE_SECCOMP into a bool option

2019-04-26 Thread Masahiro Yamada
The prompt of CONFIG_SAMPLE_SECCOMP claims this is "loadable module only", which is invalid. samples/seccomp/ only contains host programs, so having it tristate is pointless. Signed-off-by: Masahiro Yamada --- samples/Kconfig | 4 ++-- samples/seccomp/Makefile | 2 +- 2 files changed,

[PATCH 3/5] samples: guard sub-directories with CONFIG options

2019-04-26 Thread Masahiro Yamada
Do not descend to sub-directories when unneeded. I used subdir-$(CONFIG_...) for hidraw, seccomp, and statx because they only contain host programs. While we are here, let's add SPDX License tag, and sort the directories alphabetically. Signed-off-by: Masahiro Yamada --- samples/Makefile | 23

[PATCH 1/5] kbuild: move samples/ to KBUILD_VMLINUX_OBJS

2019-04-26 Thread Masahiro Yamada
Handle samples/ like the other top-level directories to simplify the Makefile. Include include/config/auto.conf earlier to evaluate drivers-$(CONFIG_SAMPLES). Signed-off-by: Masahiro Yamada --- Makefile | 18 -- samples/Makefile | 2 +- 2 files changed, 9 insertions(+)

[PATCH] staging: greybus: use proper return type for wait_for_completion_timeout

2019-04-26 Thread Nicholas Mc Guire
(localversion-next is next-20190426) drivers/staging/greybus/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index b3bffe9..ff18112 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus

Re: [PATCH v3 1/3] clk: analogbits: add Wide-Range PLL library

2019-04-26 Thread Paul Walmsley
On Fri, 26 Apr 2019, Stephen Boyd wrote: > Quoting Paul Walmsley (2019-04-11 01:27:32) > > Add common library code for the Analog Bits Wide-Range PLL (WRPLL) IP > > block, as implemented in TSMC CLN28HPC. > > I haven't deeply reviewed at all, but I already get two problems when > compile testing

Re: [PATCH v4 4/5] dt-bindings: mtd: Add bindings for TI's AM654 HyperBus memory controller

2019-04-26 Thread Vignesh Raghavendra
On 27/04/19 1:50 AM, Rob Herring wrote: > On Tue, Apr 23, 2019 at 04:18:13PM +0530, Vignesh Raghavendra wrote: >> Add binding documentation for TI's HyperBus memory controller present on >> AM654 SoC. >> >> Signed-off-by: Vignesh Raghavendra >> --- >> .../devicetree/bindings/mtd/ti,am654-hbmc.

[PATCH RFC] staging: kpc2000: use int for wait_for_completion_interruptible

2019-04-26 Thread Nicholas Mc Guire
coccicheck warning about usless casting) Patch is against 5.1-rc6 (localversion-next is next-20190426) drivers/staging/kpc2000/kpc_dma/fileops.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000

Re: [RFC PATCH RESEND] i2c-piix4: Add Hygon Dhyana SMBus support

2019-04-26 Thread Pu Wen
On 2019/4/27 0:48, Jean Delvare wrote: On Fri, 2019-04-26 at 22:23 +0800, Pu Wen wrote: On 2019/4/26 17:38, Jean Delvare wrote: I would like you to also document the new supported chipset in drivers/i2c/busses/Kconfig and Documentation/i2c/busses/i2c-piix4 as well as in the header comment of i2

[PATCH AUTOSEL 5.0 04/79] ASoC: stm32: sai: fix iec958 controls indexation

2019-04-26 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit 5f8a1000c3e630c3ac06f1d664eeaa755bce8823 ] Allow indexation of sai iec958 controls according to device id. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/stm/stm32_sai_sub.c | 7 --- 1 file changed,

[PATCH AUTOSEL 5.0 05/79] ASoC: stm32: sai: fix exposed capabilities in spdif mode

2019-04-26 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit b8468192971807c43a80d6e2c41f83141cb7b211 ] Change capabilities exposed in SAI S/PDIF mode, to match actually supported formats. In S/PDIF mode only 32 bits stereo is supported. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown Signed-off-by: Sasha

[PATCH AUTOSEL 5.0 12/79] ASoC: nau8810: fix the issue of widget with prefixed name

2019-04-26 Thread Sasha Levin
From: John Hsu [ Upstream commit 54d1cf78b0f4ba348a7c7fb8b7d0708d71b6cc8a ] The driver changes the stream name of DAC and ADC to avoid the issue of widget with prefixed name. When the machine adds prefixed name for codec, the stream name of DAI may not find the widgets. Signed-off-by: John Hsu

[PATCH AUTOSEL 5.0 07/79] ASoC:soc-pcm:fix a codec fixup issue in TDM case

2019-04-26 Thread Sasha Levin
From: Rander Wang [ Upstream commit 570f18b6a8d1f0e60e8caf30e66161b6438dcc91 ] On HDaudio platforms, if playback is started when capture is working, there is no audible output. This can be root-caused to the use of the rx|tx_mask to store an HDaudio stream tag. If capture is stared before play

[PATCH AUTOSEL 5.0 08/79] ASoC:hdac_hda:use correct format to setup hda codec

2019-04-26 Thread Sasha Levin
From: Rander Wang [ Upstream commit 03d0aa4d4fddce4a5d865d819a4d98bfc3d451e6 ] The current implementation of the hdac_hda codec results in zero-valued samples on capture and noise with headset playback when SOF is used on platforms with an on-board HDaudio codec. This is root-caused to SOF using

[PATCH AUTOSEL 5.0 09/79] ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform

2019-04-26 Thread Sasha Levin
From: Rander Wang [ Upstream commit c899df3e9b0bf7b76e642aed1a214582ea7012d5 ] If playback and capture are enabled concurrently, when the capture stops the output becomes inaudile. The playback application will become stuck and underrun after a timeout. This is caused by mistaken use of the str

[PATCH AUTOSEL 5.0 06/79] ASoC: stm32: sai: fix race condition in irq handler

2019-04-26 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit 26f98e82dd49b7c3cc5ef0edd882aa732a62b672 ] When snd_pcm_stop_xrun() is called in interrupt routine, substream context may have already been released. Add protection on substream context. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown Signed-off-

[PATCH AUTOSEL 5.0 13/79] ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate

2019-04-26 Thread Sasha Levin
From: Sylwester Nawrocki [ Upstream commit 2b13bee3884926cba22061efa75bd315e871de24 ] After commit fbeec965b8d1c ("ASoC: samsung: odroid: Fix 32000 sample rate handling") the audio root clock frequency is configured improperly for 44100 sample rate. Due to clock rate rounding it's 20070401 Hz in

[PATCH AUTOSEL 5.0 14/79] ASoC: rt5682: Check JD status when system resume

2019-04-26 Thread Sasha Levin
From: Shuming Fan [ Upstream commit 4834d7070c85a5fb69637265dbbb05d13043280c ] The IRQ function may not work when system suspend. We remove snd_soc_dapm_force_enable_pin function call to make sure the bias off when idle and run into suspend/resume function. Signed-off-by: Shuming Fan Signed-of

[PATCH AUTOSEL 5.0 11/79] ASoC: nau8824: fix the issue of the widget with prefix name

2019-04-26 Thread Sasha Levin
From: John Hsu [ Upstream commit 844a4a362dbec166b44d6b9b3dd45b08cb273703 ] The driver has two issues when machine add prefix name for codec. (1)The stream name of DAI can't find the AIF widgets. (2)The drivr can enable/disalbe the MICBIAS and SAR widgets. The patch will fix these issues caused

[PATCH AUTOSEL 5.0 16/79] ASoC: rt5682: recording has no sound after booting

2019-04-26 Thread Sasha Levin
From: Shuming Fan [ Upstream commit 1c5b6a27e432e4fe170a924c8b41012271496a4c ] If ASRC turns on, HW will use clk_dac as the reference clock whether recording or playback. Both of clk_dac and clk_adc should set proper clock while using ASRC. Signed-off-by: Shuming Fan Signed-off-by: Mark Brown

[PATCH AUTOSEL 5.0 10/79] ASoC: dpcm: prevent snd_soc_dpcm use after free

2019-04-26 Thread Sasha Levin
From: KaiChieh Chuang [ Upstream commit a9764869779081e8bf24da07ac040e8f3efcf13a ] The dpcm get from fe_clients/be_clients may be free before use Add a spin lock at snd_soc_card level, to protect the dpcm instance. The lock may be used in atomic context, so use spin lock. Use irq spin lock ver

[PATCH AUTOSEL 5.0 18/79] clk: meson-gxbb: round the vdec dividers to closest

2019-04-26 Thread Sasha Levin
From: Maxime Jourdan [ Upstream commit 9b70c697e87286ade406e6a02091757307dd4b7c ] We want the video decoder clocks to always round to closest. While the muxes are already using CLK_MUX_ROUND_CLOSEST, the corresponding CLK_DIVIDER_ROUND_CLOSEST was forgotten for the dividers. Fix this by adding

[PATCH AUTOSEL 5.0 21/79] ASoC: cs4270: Set auto-increment bit for register writes

2019-04-26 Thread Sasha Levin
From: Daniel Mack [ Upstream commit f0f2338a9cfaf71db895fa989ea7234e8a9b471d ] The CS4270 does not by default increment the register address on consecutive writes. During normal operation it doesn't matter as all register accesses are done individually. At resume time after suspend, however, the

[PATCH AUTOSEL 5.0 30/79] ASoC: dpcm: skip missing substream while applying symmetry

2019-04-26 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 6246f283d5e02ac757bd8d9bacde8fdc54c4582d ] If for any reason, the backend does not have the requested substream (like capture on a playback only backend), the BE will be skipped in dpcm_be_dai_startup(). However, dpcm_apply_symmetry() does not skip those BE

[PATCH AUTOSEL 5.0 20/79] ASoC: stm32: dfsdm: fix debugfs warnings on entry creation

2019-04-26 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit c47255b61129857b74b0d86eaf59335348be05e0 ] Register platform component with a prefix, to avoid warnings on debugfs entries creation, due to component name redundancy. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.0 19/79] ASoC: stm32: dfsdm: manage multiple prepare

2019-04-26 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit 19441e35a43b616ea6afad91ed0d9e77268d8f6a ] The DFSDM must be stopped when a new setting is applied. restart systematically DFSDM on multiple prepare calls, to apply changes. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown Signed-off-by: Sasha Lev

[PATCH AUTOSEL 5.0 31/79] perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS

2019-04-26 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit 583feb08e7f7ac9d533b446882eb3a54737a6dbb ] When an event is programmed with attr.wakeup_events=N (N>0), it means the caller is interested in getting a user level notification after N samples have been recorded in the kernel sampling buffer. With precise

[PATCH AUTOSEL 5.0 33/79] linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()

2019-04-26 Thread Sasha Levin
From: Jann Horn [ Upstream commit a0fe2c6479aab5723239b315ef1b552673f434a3 ] Use parentheses around uses of the argument in u64_to_user_ptr() to ensure that the cast doesn't apply to part of the argument. There are existing uses of the macro of the form u64_to_user_ptr(A + B) which expands

[PATCH AUTOSEL 5.0 37/79] ASoC: rockchip: pdm: fix regmap_ops hang issue

2019-04-26 Thread Sasha Levin
From: Sugar Zhang [ Upstream commit c85064435fe7a216ec0f0238ef2b8f7cd850a450 ] This is because set_fmt ops maybe called when PD is off, and in such case, regmap_ops will lead system hang. enale PD before doing regmap_ops. Signed-off-by: Sugar Zhang Signed-off-by: Mark Brown Signed-off-by: Sas

[PATCH AUTOSEL 5.0 35/79] iov_iter: Fix build error without CONFIG_CRYPTO

2019-04-26 Thread Sasha Levin
From: YueHaibing [ Upstream commit 27fad74a5a77fe2e1f876db7bf27efcf2ec304b2 ] If CONFIG_CRYPTO is not set or set to m, gcc building warn this: lib/iov_iter.o: In function `hash_and_copy_to_iter': iov_iter.c:(.text+0x9129): undefined reference to `crypto_stats_get' iov_iter.c:(.text+0x9152): und

[PATCH AUTOSEL 5.0 45/79] slab: fix a crash by reading /proc/slab_allocators

2019-04-26 Thread Sasha Levin
From: Qian Cai [ Upstream commit fcf88917dd435c6a4cb2830cb086ee58605a1d85 ] The commit 510ded33e075 ("slab: implement slab_root_caches list") changes the name of the list node within "struct kmem_cache" from "list" to "root_caches_node", but leaks_show() still use the "list" which causes a crash

[PATCH AUTOSEL 5.0 42/79] ASoC: cs35l35: Disable regulators on driver removal

2019-04-26 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 47c4cc08cb5b34e93ab337b924c5ede77ca3c936 ] The chips main power supplies VA and VP are enabled during probe but then never disabled, this will cause warnings from the regulator framework on driver removal. Fix this by adding a remove callback and disabling

[PATCH AUTOSEL 5.0 43/79] objtool: Add rewind_stack_do_exit() to the noreturn list

2019-04-26 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 4fa5ecda2bf96be7464eb406df8aba9d89260227 ] This fixes the following warning seen on GCC 7.3: arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls through to next function show_regs() Reported-by: kbuild test robot Signed-off-by: Josh Poimbo

[PATCH AUTOSEL 5.0 49/79] RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove

2019-04-26 Thread Sasha Levin
From: Kamal Heib [ Upstream commit ea7a5c706fa49273cf6d1d9def053ecb50db2076 ] Make sure to free the DSR on pvrdma_pci_remove() to avoid the memory leak. Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Kamal Heib Acked-by: Adit Ranadive Signed-off-by: Jason Gunthorpe Signed-o

[PATCH AUTOSEL 5.0 47/79] drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind

2019-04-26 Thread Sasha Levin
From: Ondrej Jirman [ Upstream commit 1a07a94b47b1f528f39c3e6187b5eaf02efe44ea ] There are two problems here: 1. Not all clk_data->hws[] need to be initialized, depending on various configured quirks. This leads to NULL ptr deref in clk_hw_unregister_gate() in sun8i_tcon_top_unbind() 2. I

[PATCH AUTOSEL 5.0 50/79] RDMA/hns: Fix bug that caused srq creation to fail

2019-04-26 Thread Sasha Levin
From: Lijun Ou [ Upstream commit 4772e03d239484f3461e33c79d721c8ea03f7416 ] Due to the incorrect use of the seg and obj information, the position of the mtt is calculated incorrectly, and the free space of the page is not enough to store the entire mtt, resulting in access to the next page. This

[PATCH AUTOSEL 5.0 48/79] virtio_pci: fix a NULL pointer reference in vp_del_vqs

2019-04-26 Thread Sasha Levin
From: Longpeng [ Upstream commit 6a8aae68c87349dbbcd46eac380bc43cdb98a13b ] If the msix_affinity_masks is alloced failed, then we'll try to free some resources in vp_free_vectors() that may access it directly. We met the following stack in our production: [ 29.296767] BUG: unable to handle ke

[PATCH AUTOSEL 5.0 52/79] KEYS: trusted: fix -Wvarags warning

2019-04-26 Thread Sasha Levin
From: "ndesaulni...@google.com" [ Upstream commit be24b37e22c20cbaa891971616784dd0f35211e8 ] Fixes the warning reported by Clang: security/keys/trusted.c:146:17: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va

[PATCH AUTOSEL 5.0 53/79] scsi: csiostor: fix missing data copy in csio_scsi_err_handler()

2019-04-26 Thread Sasha Levin
From: Varun Prakash [ Upstream commit 5c2442fd78998af60e13aba506d103f7f43f8701 ] If scsi cmd sglist is not suitable for DDP then csiostor driver uses preallocated buffers for DDP, because of this data copy is required from DDP buffer to scsi cmd sglist before calling ->scsi_done(). Signed-off-b

[PATCH AUTOSEL 5.0 57/79] drm/mediatek: remove flag CLK_SET_RATE_PARENT for MT2701 hdmi phy

2019-04-26 Thread Sasha Levin
From: Wangyan Wang [ Upstream commit 827abdd024207146822f66ba3ba74867135866b9 ] This is the first step to make MT2701 hdmi stable. The parent rate of hdmi phy had set by DPI driver. We should not set or change the parent rate of MT2701 hdmi phy, as a result we should remove the flags of "CLK_SET

[PATCH AUTOSEL 5.0 60/79] Bluetooth: btusb: request wake pin with NOAUTOEN

2019-04-26 Thread Sasha Levin
From: Brian Norris [ Upstream commit 771acc7e4a6e5dba779cb1a7fd851a164bc81033 ] Badly-designed systems might have (for example) active-high wake pins that default to high (e.g., because of external pull ups) until they have an active firmware which starts driving it low. This can cause an inter

[PATCH AUTOSEL 5.0 68/79] clk: x86: Add system specific quirk to mark clocks as critical

2019-04-26 Thread Sasha Levin
From: David Müller [ Upstream commit 7c2e07130090ae001a97a6b65597830d6815e93e ] Since commit 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL"), the pmc_plt_clocks of the Bay Trail SoC are unconditionally gated off. Unfortunately this will break systems where these clocks are used

[PATCH AUTOSEL 5.0 61/79] ASoC: Intel: kbl: fix wrong number of channels

2019-04-26 Thread Sasha Levin
From: Tzung-Bi Shih [ Upstream commit d6ba3f815bc5f3c4249d15c8bc5fbb012651b4a4 ] Fix wrong setting on number of channels. The context wants to set constraint to 2 channels instead of 4. Signed-off-by: Tzung-Bi Shih Acked-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Signed-off-by: Sash

[PATCH AUTOSEL 5.0 71/79] platform/x86: pmc_atom: Drop __initconst on dmi table

2019-04-26 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit b995dcca7cf12f208cfd95fd9d5768dca7cccec7 ] It's used by probe and that isn't an init function. Drop this so that we don't get a section mismatch. Reported-by: kbuild test robot Cc: David Müller Cc: Hans de Goede Cc: Andy Shevchenko Fixes: 7c2e07130090 ("

[PATCH AUTOSEL 4.19 02/53] ASoC: hdmi-codec: fix S/PDIF DAI

2019-04-26 Thread Sasha Levin
From: Russell King [ Upstream commit 2e95f984aae4cf0608d0ba2189c756f2bd50b44a ] When using the S/PDIF DAI, there is no requirement to call snd_soc_dai_set_fmt() as there is no DAI format definition that defines S/PDIF. In any case, S/PDIF does not have separate clocks, this is embedded into the

[PATCH AUTOSEL 5.0 64/79] block, bfq: fix use after free in bfq_bfqq_expire

2019-04-26 Thread Sasha Levin
From: Paolo Valente [ Upstream commit eed47d19d9362bdd958e4ab56af480b9dbf6b2b6 ] The function bfq_bfqq_expire() invokes the function __bfq_bfqq_expire(), and the latter may free the in-service bfq-queue. If this happens, then no other instruction of bfq_bfqq_expire() must be executed, or a use-a

[PATCH AUTOSEL 5.0 72/79] NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.

2019-04-26 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 7c2bd9a39845bfb6d72ddb55ce737650271f6f96 ] syzbot is reporting uninitialized value at rpc_sockaddr2uaddr() [1]. This is because syzbot is setting AF_INET6 to "struct sockaddr_in"->sin_family (which is embedded into user-visible "struct nfs_mount_data" structu

[PATCH AUTOSEL 5.0 66/79] blk-mq: introduce blk_mq_complete_request_sync()

2019-04-26 Thread Sasha Levin
From: Ming Lei [ Upstream commit 1b8f21b74c3c9c82fce5a751d7aefb7cc0b8d33d ] In NVMe's error handler, follows the typical steps of tearing down hardware for recovering controller: 1) stop blk_mq hw queues 2) stop the real hw queues 3) cancel in-flight requests via blk_mq_tagset_busy_iter

[PATCH AUTOSEL 5.0 69/79] nvme-fc: correct csn initialization and increments on error

2019-04-26 Thread Sasha Levin
From: James Smart [ Upstream commit 67f471b6ed3b09033c4ac77ea03f92afdb1989fe ] This patch fixes a long-standing bug that initialized the FC-NVME cmnd iu CSN value to 1. Early FC-NVME specs had the connection starting with CSN=1. By the time the spec reached approval, the language had changed to

[PATCH AUTOSEL 5.0 76/79] mm: make page ref count overflow check tighter and more explicit

2019-04-26 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit f958d7b528b1b40c44cfda5eabe2d82760d868c3 ] We have a VM_BUG_ON() to check that the page reference count doesn't underflow (or get close to overflow) by checking the sign of the count. That's all fine, but we actually want to allow people to use a "get page

[PATCH AUTOSEL 5.0 75/79] iommu/amd: Set exclusion range correctly

2019-04-26 Thread Sasha Levin
From: Joerg Roedel [ Upstream commit 3c677d206210f53a4be972211066c0f1cd47fe12 ] The exlcusion range limit register needs to contain the base-address of the last page that is part of the range, as bits 0-11 of this register are treated as 0xfff by the hardware for comparisons. So correctly set t

  1   2   3   4   5   6   7   8   9   >