Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 01:57:06PM +0800, Wei Wang wrote: > On 07/18/2019 12:13 PM, Michael S. Tsirkin wrote: > > > > It makes sense for pages in the balloon (requested by hypervisor). > > However free page hinting can freeze up lots of memory for its own > > internal reasons. It does not make

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Wei Wang
On 07/18/2019 12:13 PM, Michael S. Tsirkin wrote: It makes sense for pages in the balloon (requested by hypervisor). However free page hinting can freeze up lots of memory for its own internal reasons. It does not make sense to ask hypervisor to set flags in order to fix internal guest issues.

RFC: move kernel/memremap.c to mm/

2019-07-17 Thread Christoph Hellwig
Hi Dan, was there any really good reason to have memremap.c in kernel/ back when you started it? It seems to be pretty much tried into the mm infrastructure, and I keep mistyping the path. Would you mind a simple git-mv patch after -rc1 to move it to mm/ ?

Re: [PATCHv8 3/5] arm64: dts: qcom: msm8996: Add Coresight support

2019-07-17 Thread Sai Prakash Ranjan
Hi Mathieu, On 7/17/2019 10:30 PM, Mathieu Poirier wrote: On Fri, Jul 12, 2019 at 07:46:25PM +0530, Sai Prakash Ranjan wrote: From: Vivek Gautam Enable coresight support by adding device nodes for the available source, sinks and channel blocks on msm8996. This also adds coresight cpu debug

Re: [PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
Hi Joe, On 2019/7/18 13:18, Joe Perches wrote: On Thu, 2019-07-18 at 12:49 +0800, Like Xu wrote: If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In

[PATCH 3/3] arm64: debug: Remove rcu_read_lock from debug exception

2019-07-17 Thread Masami Hiramatsu
Remove rcu_read_lock()/rcu_read_unlock() from debug exception handlers since the software breakpoint can be hit on idle task. Actually, we don't need it because those handlers run in exception context where the interrupts are disabled. This means those are never preempted. Reported-by: Naresh

[PATCH 1/3] arm64: kprobes: Recover pstate.D in single-step exception handler

2019-07-17 Thread Masami Hiramatsu
On arm64, if a nested kprobes hit, it can crash the kernel with below error message. [ 152.118921] Unexpected kernel single-step exception at EL1 This is because commit 7419333fa15e ("arm64: kprobe: Always clear pstate.D in breakpoint exception handler") clears pstate.D always in the nested

[PATCH 2/3] arm64: unwind: Prohibit probing on return_address()

2019-07-17 Thread Masami Hiramatsu
Prohibit probing on return_address() and subroutines which is called from return_address(), since the it is invoked from trace_hardirqs_off() which is also kprobe blacklisted. Reported-by: Naresh Kamboju Signed-off-by: Masami Hiramatsu --- arch/arm64/kernel/return_address.c |4 +++-

[PATCH 0/3] arm64: kprobes: Fix some bugs in arm64 kprobes

2019-07-17 Thread Masami Hiramatsu
Hi, Here are the patches which fixes kprobe bugs on arm64. Naresh reported that recently ftracetest crashes kernel, and I found there are 3 different bugs around the crash. - Kprobes on arm64 doesn't recover pstate.D mask even if probed context masks pstate.D. This causes a real kernel crash

[PATCH v2] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debug mode, this message helps to understand the state of vPMC and we may not limit the number of

Re: [PATCH v3 0/6] Introduce Bandwidth OPPs for interconnect paths

2019-07-17 Thread Viresh Kumar
I know you have explained lots of things earlier as well, but they are available over multiple threads and I don't know where to reply now :) Lets have proper discussion (once again) here and be done with it. Sorry for the trouble of explaining things again. On 17-07-19, 13:34, Saravana Kannan

Re: [PATCH v8 07/21] iommu/io-pgtable-arm-v7s: Extend MediaTek 4GB Mode

2019-07-17 Thread Yong Wu
On Wed, 2019-07-17 at 15:23 +0100, Will Deacon wrote: > On Wed, Jul 17, 2019 at 08:44:19PM +0800, Yong Wu wrote: > > On Mon, 2019-07-15 at 10:51 +0100, Will Deacon wrote: > > > On Sun, Jul 14, 2019 at 12:41:20PM +0800, Yong Wu wrote: > > > > @@ -742,7 +763,9 @@ static struct io_pgtable > > > >

[PATCH] clk: sprd: Select REGMAP_MMIO to avoid compile errors

2019-07-17 Thread Chunyan Zhang
From: Chunyan Zhang Make REGMAP_MMIO selected to avoid undefined reference to regmap symbols. Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sprd/Kconfig

Re: [PATCH v1 02/50] clk: samsung: add IDs for Exynos5420 NoC clocks

2019-07-17 Thread Lukasz Luba
On 7/16/19 11:26 AM, Chanwoo Choi wrote: > Hi, > > You don't need to make the separate patches according to > the type of clock just in order to add the ID by handling them > from devicetree. > > Please merge following patches to one patch > - patch2, patch4~patch7, patch9, patch11, patch12,

Re: [PATCH v1 04/50] clk: samsung: add IDs to manage aclk400_mscl in Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 11:17 AM, Chanwoo Choi wrote: > Hi, > > The patch4~patch7 just add the ID to control the clock from DT. > You can squash them to one patch instead of splitting out according to > the type of clock. Thank you for the review. Yes, you are right it needs to be squashed.

Re: [PATCH v1 03/50] clk: samsung: change parent of dout_aclk400_wcore in Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 11:13 AM, Chanwoo Choi wrote: > On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: >> Change parent of dout_aclk400_wcore to mout_aclk400_wcore which reflects >> topology described in the RM. >> >> Signed-off-by: Lukasz Luba >> --- >> drivers/clk/samsung/clk-exynos5420.c | 2 +-

Re: [PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Joe Perches
On Thu, 2019-07-18 at 12:49 +0800, Like Xu wrote: > If a perf_event creation fails due to any reason of the host perf > subsystem, it has no chance to log the corresponding event for guest > which may cause abnormal sampling data in guest result. In debug mode, > this message helps to understand

Re: [PATCH v1 6/6] virtio-balloon: Add support for aerating memory via hinting

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 09:43:52AM -0700, Alexander Duyck wrote: > On Wed, Jul 17, 2019 at 3:28 AM Michael S. Tsirkin wrote: > > > > On Tue, Jul 16, 2019 at 02:06:59PM -0700, Alexander Duyck wrote: > > > On Tue, Jul 16, 2019 at 10:41 AM Michael S. Tsirkin > > > wrote: > > > > > > > > > > > > >

[PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debug mode, this message helps to understand the state of vPMC and we should not limit the number of

Re: [PATCH v3 1/6] dt-bindings: opp: Introduce opp-peak-KBps and opp-avg-KBps bindings

2019-07-17 Thread Viresh Kumar
On 17-07-19, 13:29, Saravana Kannan wrote: > On Wed, Jul 17, 2019 at 12:54 AM Viresh Kumar wrote: > > > > On 02-07-19, 18:10, Saravana Kannan wrote: > > > Interconnects often quantify their performance points in terms of > > > bandwidth. So, add opp-peak-KBps (required) and opp-avg-KBps

Re: [PATCH v1] mm/balloon_compaction: avoid duplicate page removal

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 10:23:30AM +0800, Wei Wang wrote: > Fixes: 418a3ab1e778 (mm/balloon_compaction: List interfaces) > > A #GP is reported in the guest when requesting balloon inflation via > virtio-balloon. The reason is that the virtio-balloon driver has > removed the page from its internal

[PATCH] connector: remove redundant input callback from cn_dev

2019-07-17 Thread Vasily Averin
A small cleanup: this callback is never used. Originally fixed by Stanislav Kinsburskiy for OpenVZ7 bug OVZ-6877 cc: stanislav.kinsburs...@gmail.com Signed-off-by: Vasily Averin --- drivers/connector/connector.c | 6 +- include/linux/connector.h | 1 - 2 files changed, 1 insertion(+),

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 03:46:57PM +, Wang, Wei W wrote: > On Wednesday, July 17, 2019 7:21 PM, Michael S. Tsirkin wrote: > > > > Wei, others, > > > > ATM virtio_balloon_shrinker_scan will only get registered when deflate on > > oom feature bit is set. > > > > Not sure whether that's

Firing an interrupt pin induces the occurrence of another interrupt

2019-07-17 Thread Kar Hin Ong
Hi, I have a x86 system with Xeon CPU running Linux with preempt_rt patch (kernel version 4.14). When a PCI device firing interrupt to GSI 44 (ioapic2, pin20), I noticed that GSI 19 (ioapic1, pin19) will get fired as well, and then it went unhandled. I can reproduce this issue by using

[PATCH] smp: avoid generic_exec_single cause system lockup

2019-07-17 Thread luferry
From: luferry The race can reproduced by sending wait enabled IPI in softirq/irq env src cpu only send ipi when dst cpu with queue empty, if interrupts disturbed between llist_add and send_ipi. Interrupt handler may raise softirq.In irq env, if src cpu try send_ipi to same dst cpu with wait

Re: [PATCH v2] arm64: dts: fsl: pico-pi: Add a device tree for the PICO-PI-IMX8M

2019-07-17 Thread Shawn Guo
On Tue, Jun 25, 2019 at 03:34:07PM +0300, Andra Danciu wrote: > From: Richard Hu > > The current level of support yields a working console and is able to boot > userspace from an initial ramdisk copied via u-boot in RAM. > > Additional subsystems that are active : > - Ethernet > -

Re: [PATCH v8 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable

2019-07-17 Thread Juergen Gross
On 17.07.19 19:22, Joe Perches wrote: On Wed, 2019-07-17 at 08:49 +0200, Juergen Gross wrote: On 17.07.19 08:46, Joe Perches wrote: On Tue, 2019-07-16 at 12:26 +0800, Zhenzhong Duan wrote: .. as "nopv" support needs it to be changeable at boot up stage. Checkpatch reports warning, so move

Re: [PATCH] net: bcmgenet: use promisc for unsupported filters

2019-07-17 Thread Florian Fainelli
On 7/17/2019 2:58 PM, justinpo...@gmail.com wrote: > From: Justin Chen > > Currently we silently ignore filters if we cannot meet the filter > requirements. This will lead to the MAC dropping packets that are > expected to pass. A better solution would be to set the NIC to promisc > mode when

linux-next: Tree for Jul 18

2019-07-17 Thread Stephen Rothwell
Hi all, Please do not add v5.4 material to your linux-next included branches until after v5.3-rc1 has been released. Changes since 20190717: The kbuild tree lost its build failure. The xfs tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 2156 1939

[BUG] lseek on /proc/meminfo is broken in 4.19.59

2019-07-17 Thread Sergei Turchanov
Hello! Seeking (to an offset within file size) in /proc/meminfo is broken in 4.19.59. It does seek to a desired position, but reading from that position returns the remainder of file and then a whole copy of file. This doesn't happen with /proc/vmstat or /proc/self/maps for example. Seeking

RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Aisheng Dong
> From: anson.hu...@nxp.com > Sent: Thursday, July 18, 2019 9:32 AM > > Use the new helper devm_platform_ioremap_resource() which wraps the > platform_get_resource() and devm_ioremap_resource() together, to simplify > the code. > > Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng

RE: [EXT] Re: [v5,2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver

2019-07-17 Thread Biwen Li
> > > > > > > > Caution: EXT Email > > > > > > On Tue, Jul 16, 2019 at 4:26 AM Biwen Li wrote: > > > > > > > > The patch adds binding for ftm alarm driver > > > > > > Bindings are for h/w, not drivers... > > > > > > 'dt-bindings: rtc: ...' for the subject prefix. > > I will correct it in v6. > >

[PATCH] PCI: Stop exporting pci_bus_sem

2019-07-17 Thread Kelsey Skunberg
pci_bus_sem is not used by a loadable kernel module and does not need to be exported. Remove line exporting pci_bus_sem. Signed-off-by: Kelsey Skunberg --- drivers/pci/search.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/search.c b/drivers/pci/search.c index

RE: [PATCH 3/3] firmware: imx: scu-pd: Add IRQSTR_DSP PD range

2019-07-17 Thread Aisheng Dong
> From: Daniel Baluta > Sent: Thursday, July 4, 2019 3:04 AM > > The DSP interrupt steer gathers interrupts from the system and can be used to > steer them to DSP. > > Signed-off-by: Daniel Baluta Reviewed-by: Dong Aisheng Regards Aisheng

RE: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range

2019-07-17 Thread Aisheng Dong
> From: Daniel Baluta > Sent: Thursday, July 4, 2019 3:04 AM > Subject: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range > > LSIO subsystem contains 14 MU instances. > > 5 MUs to communicate between AP <-> SCU > - side-A PD range managed by AP > - side-B PD range managed by SCU >

[PATCH 5.2 11/21] x86/irq: Handle spurious interrupt after shutdown gracefully

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit b7107a67f0d125459fe41f86e8079afd1a5e0b15 upstream. Since the rework of the vector management, warnings about spurious interrupts have been reported. Robert provided some more information and did an initial analysis. The following situation leads to these warnings:

[PATCH 5.2 09/21] genirq: Add optional hardware synchronization for shutdown

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 62e0468650c30f0298822c580f382b16328119f6 upstream. free_irq() ensures that no hardware interrupt handler is executing on a different CPU before actually releasing resources and deactivating the interrupt completely in a domain hierarchy. But that does not catch the

[PATCH 5.2 13/21] ARC: hide unused function unw_hdr_alloc

2019-07-17 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream. As kernelci.org reports, this function is not used in vdk_hs38_defconfig: arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function] Fixes: bc79c9a72165 ("ARC: dw2 unwind:

[PATCH 5.2 18/21] crypto: talitos - move struct talitos_edesc into talitos.h

2019-07-17 Thread Greg Kroah-Hartman
From: Christophe Leroy commit d44769e4ccb636e8238adbc151f25467a536711b upstream. Moves struct talitos_edesc into talitos.h so that it can be used from any place in talitos.c It will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc:

[PATCH 5.2 12/21] x86/irq: Seperate unused system vectors from spurious entry again

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit f8a8fe61fec8006575699559ead88b0b833d5cad upstream. Quite some time ago the interrupt entry stubs for unused vectors in the system vector range got removed and directly mapped to the spurious interrupt vector entry point. Sounds reasonable, but it's subtly broken.

[PATCH 5.2 21/21] x86/entry/32: Fix ENDPROC of common_spurious

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1cbec37b3f9cff074a67bef4fc34b30a09958a0a ] common_spurious is currently ENDed erroneously. common_interrupt is used in its ENDPROC. So fix this mistake. Found by my asm macros rewrite patchset. Fixes: f8a8fe61fec8 ("x86/irq: Seperate unused system vectors from spurious entry

[PATCH 5.1 50/54] s390/qdio: dont touch the dsci in tiqdio_add_input_queues()

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit ac6639cd3db607d386616487902b4cc1850a7be5 upstream. Current code sets the dsci to 0x0080. Which doesn't make any sense, as the indicator area is located in the _left-most_ byte. Worse: if the dsci is the _shared_ indicator, this potentially clears the indication

[PATCH 5.1 38/54] mm/oom_kill.c: fix uninitialized oc->constraint

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 432b1de0de02a83f64695e69a2d83cbee10c236f ] In dump_oom_summary() oc->constraint is used to show oom_constraint_text, but it hasn't been set before. So the value of it is always the default value 0. We should inititialize it before. Bellow is the output when memcg oom occurs,

[PATCH 5.1 23/54] sis900: fix TX completion

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 8ac8a01092b2added0749ef937037bf1912e13e3 ] Since commit 605ad7f184b60cfaacbc038aa6c55ee68dee3c89 "tcp: refine TSO autosizing", outbound throughput is dramatically reduced for some connections, as sis900 is doing TX completion within idle states only. Make TX completion happen

[PATCH 5.1 24/54] ARM: dts: imx6ul: fix PWM[1-4] interrupts

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 3cf10132ac8d536565f2c02f60a3aeb315863a52 ] According to the i.MX6UL/L RM, table 3.1 "ARM Cortex A7 domain interrupt summary", the interrupts for the PWM[1-4] go from 83 to 86. Fixes: b9901fe84f02 ("ARM: dts: imx6ul: add pwm[1-4] nodes") Signed-off-by: Sébastien Szymanski

[PATCH 5.1 28/54] dm table: dont copy from a NULL pointer in realloc_argv()

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit a0651926553cfe7992166432e418987760882652 ] For the first call to realloc_argv() in dm_split_args(), old_argv is NULL and size is zero. Then memcpy is called, with the NULL old_argv as the source argument and a zero size argument. AFAIK, this is undefined behavior and generates

[PATCH 5.1 39/54] fork,memcg: alloc_thread_stack_node needs to set tsk->stack

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1bf4580e00a248a2c86269125390eb3648e1877c ] Commit 5eed6f1dff87 ("fork,memcg: fix crash in free_thread_stack on memcg charge fail") corrected two instances, but there was a third instance of this bug. Without setting tsk->stack, if memcg_charge_kernel_stack fails, it'll execute

[PATCH 5.1 35/54] pinctrl: mediatek: Ignore interrupts that are wake only during resume

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 35594bc7cecf3a78504b590e350570e8f4d7779e ] Before suspending, mtk-eint would set the interrupt mask to the one in wake_mask. However, some of these interrupts may not have a corresponding interrupt handler, or the interrupt may be disabled. On resume, the eint irq handler would

RE: [PATCH 3/3] arm64: dts: freescale: Add support for i.MX8QXP AI_ML board

2019-07-17 Thread Aisheng Dong
> > > +_lpuart1 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <_lpuart1>; > > > + status = "okay"; > > > +}; > > > + > > > +/* Debug */ > > > +_lpuart2 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <_lpuart2>; > > > + status = "okay"; > > > +}; > > > + > > > +/* PCI-E */ > >

[PATCH 5.1 15/54] perf/core: Fix perf_sample_regs_user() mm check

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it sets the new ->mm but

[PATCH 5.1 54/54] x86/entry/32: Fix ENDPROC of common_spurious

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1cbec37b3f9cff074a67bef4fc34b30a09958a0a ] common_spurious is currently ENDed erroneously. common_interrupt is used in its ENDPROC. So fix this mistake. Found by my asm macros rewrite patchset. Fixes: f8a8fe61fec8 ("x86/irq: Seperate unused system vectors from spurious entry

[PATCH 4.19 03/47] Input: synaptics - enable SMBUS on T480 thinkpad trackpad

2019-07-17 Thread Greg Kroah-Hartman
From: Cole Rogers commit abbe3acd7d72ab4633ade6bd24e8306b67e0add3 upstream. Thinkpad t480 laptops had some touchpad features disabled, resulting in the loss of pinch to activities in GNOME, on wayland, and other touch gestures being slower. This patch adds the touchpad of the t480 to the

[PATCH 5.1 47/54] ARC: hide unused function unw_hdr_alloc

2019-07-17 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream. As kernelci.org reports, this function is not used in vdk_hs38_defconfig: arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function] Fixes: bc79c9a72165 ("ARC: dw2 unwind:

[PATCH 5.1 51/54] crypto: talitos - move struct talitos_edesc into talitos.h

2019-07-17 Thread Greg Kroah-Hartman
From: Christophe Leroy commit d44769e4ccb636e8238adbc151f25467a536711b upstream. Moves struct talitos_edesc into talitos.h so that it can be used from any place in talitos.c It will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc:

[PATCH 5.1 49/54] s390/qdio: (re-)initialize tiqdio list entries

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit e54e4785cb5cb4896cf4285964aeef2125612fb2 upstream. When tiqdio_remove_input_queues() removes a queue from the tiq_list as part of qdio_shutdown(), it doesn't re-initialize the queue's list entry and the prev/next pointers go stale. If a subsequent qdio_establish()

[PATCH 4.19 05/47] drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT

2019-07-17 Thread Greg Kroah-Hartman
From: James Morse commit 83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8 upstream. The cacheinfo structures are alloced/freed by cpu online/offline callbacks. Originally these were only used by sysfs to expose the cache topology to user space. Without any in-kernel dependencies CPUHP_AP_ONLINE_DYN was

[PATCH 5.1 44/54] x86/ioapic: Implement irq_get_irqchip_state() callback

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit dfe0cf8b51b07e56ded571e3de0a4a9382517231 upstream. When an interrupt is shut down in free_irq() there might be an inflight interrupt pending in the IO-APIC remote IRR which is not yet serviced. That means the interrupt has been sent to the target CPUs local APIC,

[PATCH 4.19 04/47] nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header

2019-07-17 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit c32cc30c0544f13982ee0185d55f4910319b1a79 upstream. cpu_to_le32/le32_to_cpu is defined in include/linux/byteorder/generic.h, which is not exported to user-space. UAPI headers must use the ones prefixed with double-underscore. Detected by compile-testing exported

[PATCH 5.1 42/54] genirq: Fix misleading synchronize_irq() documentation

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 1d21f2af8571c6a6a44e7c1911780614847b0253 upstream. The function might sleep, so it cannot be called from interrupt context. Not even with care. Signed-off-by: Thomas Gleixner Cc: Marc Zyngier Link: https://lkml.kernel.org/r/20190628111440.189241...@linutronix.de

[PATCH 4.19 19/47] pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 6dbc6e6f58556369bf999cd7d9793586f1b0e4b4 ] Currently probing of the mcp23s08 results in an error message "detected irqchip that is shared with multiple gpiochips: please fix the driver" This is due to the following: Call to mcp23s08_irqchip_setup() with call hierarchy:

[PATCH 5.1 53/54] crypto/NX: Set receive window credits to max number of CRBs in RxFIFO

2019-07-17 Thread Greg Kroah-Hartman
From: Haren Myneni commit e52d484d9869eb291140545746ccbe5ffc7c9306 upstream. System gets checkstop if RxFIFO overruns with more requests than the maximum possible number of CRBs in FIFO at the same time. The max number of requests per window is controlled by window credits. So find max CRBs

[PATCH 4.19 13/47] afs: Fix uninitialised spinlock afs_volume::cb_break_lock

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 90fa9b64523a645a97edc0bdcf2d74759957 ] Fix the cb_break_lock spinlock in afs_volume struct by initialising it when the volume record is allocated. Also rename the lock to cb_v_break_lock to distinguish it from the lock of the same name in the afs_server struct. Without

[PATCH 4.19 10/47] perf/core: Fix perf_sample_regs_user() mm check

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it sets the new ->mm but

[PATCH 4.19 24/47] HID: chicony: add another quirk for PixArt mouse

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit dcf768b0ac868630e7bdb6f2f1c9fe72788012fa ] I've spotted another Chicony PixArt mouse in the wild, which requires HID_QUIRK_ALWAYS_POLL quirk, otherwise it disconnects each minute. USB ID of this device is 0x04f2:0x0939. We've introduced quirks like this for other models

[PATCH 4.19 16/47] ppp: mppe: Add softdep to arc4

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit aad1dcc4f011ea409850e040363dff1e59aa4175 ] The arc4 crypto is mandatory at ppp_mppe probe time, so let's put a softdep line, so that the corresponding module gets prepared gracefully. Without this, a simple inclusion to initrd via dracut failed due to the missing dependency,

[PATCH 4.19 35/47] x86/irq: Seperate unused system vectors from spurious entry again

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner t...@linutronix.de commit f8a8fe61fec8006575699559ead88b0b833d5cad upstream Quite some time ago the interrupt entry stubs for unused vectors in the system vector range got removed and directly mapped to the spurious interrupt vector entry point. Sounds reasonable, but it's

[PATCH 4.19 42/47] crypto/NX: Set receive window credits to max number of CRBs in RxFIFO

2019-07-17 Thread Greg Kroah-Hartman
From: Haren Myneni commit e52d484d9869eb291140545746ccbe5ffc7c9306 upstream. System gets checkstop if RxFIFO overruns with more requests than the maximum possible number of CRBs in FIFO at the same time. The max number of requests per window is controlled by window credits. So find max CRBs

[PATCH 4.19 38/47] s390/qdio: (re-)initialize tiqdio list entries

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit e54e4785cb5cb4896cf4285964aeef2125612fb2 upstream. When tiqdio_remove_input_queues() removes a queue from the tiq_list as part of qdio_shutdown(), it doesn't re-initialize the queue's list entry and the prev/next pointers go stale. If a subsequent qdio_establish()

[PATCH 4.19 28/47] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 9d957a959bc8c3dfe37572ac8e99affb5a885965 ] During suspend/resume, mtk_eint_mask may be called while wake_mask is active. For example, this happens if a wake-source with an active interrupt handler wakes the system: irq/pm.c:irq_pm_check_wakeup would disable the interrupt, so

[PATCH 4.19 44/47] drm/udl: introduce a macro to convert dev to udl.

2019-07-17 Thread Greg Kroah-Hartman
commit fd96e0dba19c53c2d66f2a398716bb74df8ca85e upstream. This just makes it easier to later embed drm into udl. Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20190405031715.5959-3-airl...@gmail.com Signed-off-by: Ross Zwisler

[PATCH 4.14 36/80] net: lio_core: fix potential sign-extension overflow on large shift

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 9476274093a0e79b905f4cd6cf6d149f65e02c17 ] Left shifting the signed int value 1 by 31 bits has undefined behaviour and the shift amount oq_no can be as much as 63. Fix this by using BIT_ULL(oq_no) instead. Addresses-Coverity: ("Bad shift operation") Fixes: f21fb3ed364b ("Add

[PATCH 4.9 34/54] usb: renesas_usbhs: add a workaround for a race condition of workqueue

2019-07-17 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda commit b2357839c56ab7d06bcd4e866ebc2d0e2b7997f3 upstream. The old commit 6e4b74e4690d ("usb: renesas: fix scheduling in atomic context bug") fixed an atomic issue by using workqueue for the shdmac dmaengine driver. However, this has a potential race condition issue

RE: [PATCH] rtc: snvs: fix possible race condition

2019-07-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Wednesday, July 17, 2019 9:58 PM> > Hi, Aisheng > > > > From: anson.hu...@nxp.com > > > Sent: Tuesday, July 16, 2019 3:19 PM > > > > > > The RTC IRQ is requested before the struct rtc_device is allocated, > > > this may lead to a NULL pointer dereference in IRQ

[PATCH 4.9 15/54] ARM: davinci: da850-evm: call regulator_has_full_constraints()

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 0c0c9b5753cd04601b17de09da1ed2885a3b42fe ] The BB expander at 0x21 i2c bus 1 fails to probe on da850-evm because the board doesn't set has_full_constraints to true in the regulator API. Call regulator_has_full_constraints() at the end of board registration just like we do in

[PATCH 4.14 11/80] mac80211: mesh: fix RCU warning

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 551842446ed695641a00782cd118cbb064a416a1 ] ifmsh->csa is an RCU-protected pointer. The writer context in ieee80211_mesh_finish_csa() is already mutually exclusive with wdev->sdata.mtx, but the RCU checker did not know this. Use rcu_dereference_protected() to avoid a warning.

[PATCH 4.19 30/47] genirq: Delay deactivation in free_irq()

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner t...@linutronix.de commit 4001d8e8762f57d418b66e4e668601791900a1dd upstream When interrupts are shutdown, they are immediately deactivated in the irqdomain hierarchy. While this looks obviously correct there is a subtle issue: There might be an interrupt in flight when

[PATCH 4.19 46/47] drm/udl: move to embedding drm device inside udl device.

2019-07-17 Thread Greg Kroah-Hartman
commit 6ecac85eadb9d4065b9038fa3d3c66d49038e14b upstream. This should help with some of the lifetime issues, and move us away from load/unload. Acked-by: Alex Deucher Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20190405031715.5959-4-airl...@gmail.com

[PATCH 4.19 33/47] x86/ioapic: Implement irq_get_irqchip_state() callback

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner t...@linutronix.de commit dfe0cf8b51b07e56ded571e3de0a4a9382517231 upstream When an interrupt is shut down in free_irq() there might be an inflight interrupt pending in the IO-APIC remote IRR which is not yet serviced. That means the interrupt has been sent to the target

[PATCH 4.14 01/80] Revert "e1000e: fix cyclic resets at link up with active tx"

2019-07-17 Thread Greg Kroah-Hartman
From: Konstantin Khlebnikov commit caff422ea81e144842bc44bab408d85ac449377b upstream. This reverts commit 0f9e980bf5ee1a97e2e401c846b2af989eb21c61. That change cased false-positive warning about hardware hang: e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx IPv6:

[PATCH 4.14 03/80] Input: synaptics - enable SMBUS on T480 thinkpad trackpad

2019-07-17 Thread Greg Kroah-Hartman
From: Cole Rogers commit abbe3acd7d72ab4633ade6bd24e8306b67e0add3 upstream. Thinkpad t480 laptops had some touchpad features disabled, resulting in the loss of pinch to activities in GNOME, on wayland, and other touch gestures being slower. This patch adds the touchpad of the t480 to the

[PATCH 4.14 14/80] iwlwifi: Fix double-free problems in iwl_req_fw_callback()

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit a8627176b0de7ba3f4524f641ddff4abf23ae4e4 ] In the error handling code of iwl_req_fw_callback(), iwl_dealloc_ucode() is called to free data. In iwl_drv_stop(), iwl_dealloc_ucode() is called again, which can cause double-free problems. To fix this bug, the call to

[PATCH 4.14 18/80] can: mcp251x: add support for mcp25625

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 35b7fa4d07c43ad79b88e6462119e7140eae955c ] Fully compatible with mcp2515, the mcp25625 have integrated transceiver. This patch adds support for the mcp25625 to the existing mcp251x driver. Signed-off-by: Sean Nyekjaer Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha

[PATCH 4.14 07/80] Input: elantech - enable middle button support on 2 ThinkPads

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit aa440de3058a3ef530851f9ef373fbb5f694dbc3 ] Adding 2 new touchpad PNPIDs to enable middle button support. Signed-off-by: Aaron Ma Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/mouse/elantech.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 4.14 30/80] qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit a8fdde1cb830e560208af42b6c10750137f53eb3 ] Switch qmimux_unregister_device() and qmi_wwan_disconnect() to use unregister_netdevice_queue() and unregister_netdevice_many() instead of unregister_netdevice(). This avoids RCU stalls which have been observed on device disconnect in

Re: mmotm 2019-07-17-16-05 uploaded

2019-07-17 Thread Stephen Rothwell
Hi Andrew, On Wed, 17 Jul 2019 16:06:10 -0700 a...@linux-foundation.org wrote: > > * mm-migrate-remove-unused-mode-argument.patch This patch needs updating due to changes in the iomap tree. The section that updated fs/iomap/migrate.c should be replaced by: diff --git a/fs/iomap/buffered-io.c

[PATCH 4.14 20/80] can: af_can: Fix error path of can_init()

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit c5a3aed1cd3152429348ee1fe5cdcca65fe901ce ] This patch add error path for can_init() to avoid possible crash if some error occurs. Fixes: 0d66548a10cb ("[CAN]: Add PF_CAN core module") Signed-off-by: YueHaibing Acked-by: Oliver Hartkopp Signed-off-by: Marc Kleine-Budde

[PATCH 4.14 34/80] drm: return -EFAULT if copy_to_user() fails

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 74b67efa8d7b4f90137f0ab9a80dd319da050350 ] The copy_from_user() function returns the number of bytes remaining to be copied but we want to return a negative error code. Otherwise the callers treat it as a successful copy. Signed-off-by: Dan Carpenter Signed-off-by: Sean Paul

[PATCH 4.14 29/80] qmi_wwan: add support for QMAP padding in the RX path

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 61356088ace1866a847a727d4d40da7bf00b67fc ] The QMAP code in the qmi_wwan driver is based on the CodeAurora GobiNet driver which does not process QMAP padding in the RX path correctly. Add support for QMAP padding to qmimux_rx_fixup() according to the description of the rmnet

[PATCH 4.14 00/80] 4.14.134-stable review

2019-07-17 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.134 release. There are 80 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 Sat 20 Jul 2019 02:59:27 AM UTC. Anything

[PATCH 4.14 31/80] qmi_wwan: extend permitted QMAP mux_id value range

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 36815b416fa48766ac5a98e4b2dc3ebc5887222e ] Permit mux_id values up to 254 to be used in qmimux_register_device() for compatibility with ip(8) and the rmnet driver. Fixes: c6adf77953bc ("net: usb: qmi_wwan: add qmap mux protocol support") Cc: Daniele Palmas Signed-off-by:

[PATCH 4.14 22/80] ARM: dts: am335x phytec boards: Fix cd-gpios active level

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 8a0098c05a272c9a68f6885e09755755b612459c ] Active level of the mmc1 cd gpio needs to be low instead of high. Fix PCM-953 and phyBOARD-WEGA. Signed-off-by: Teresa Remmet Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/am335x-pcm-953.dtsi | 2 +-

[PATCH 4.14 47/80] mwifiex: Abort at too short BSS descriptor element

2019-07-17 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 685c9b7750bfacd6fc1db50d86579980593b7869 upstream. Currently mwifiex_update_bss_desc_with_ie() implicitly assumes that the source descriptor entries contain the enough size for each type and performs copying without checking the source size. This may lead to read over

[PATCH 4.14 56/80] staging: comedi: dt282x: fix a null pointer deref on interrupt

2019-07-17 Thread Greg Kroah-Hartman
From: Ian Abbott commit b8336be66dec06bef518030a0df9847122053ec5 upstream. The interrupt handler `dt282x_interrupt()` causes a null pointer dereference for those supported boards that have no analog output support. For these boards, `dev->write_subdev` will be `NULL` and therefore the `s_ao`

[PATCH 4.14 35/80] ip6_tunnel: allow not to count pkts on tstats by passing dev as NULL

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 6f6a8622057c92408930c31698394fae1557b188 ] A similar fix to Patch "ip_tunnel: allow not to count pkts on tstats by setting skb's dev to NULL" is also needed by ip6_tunnel. Signed-off-by: Xin Long Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 4.14 53/80] p54usb: Fix race between disconnect and firmware loading

2019-07-17 Thread Greg Kroah-Hartman
From: Alan Stern commit 6e41e2257f1094acc37618bf6c856115374c6922 upstream. The syzbot fuzzer found a bug in the p54 USB wireless driver. The issue involves a race between disconnect and the firmware-loader callback routine, and it has several aspects. One big problem is that when the firmware

[PATCH 4.14 50/80] USB: serial: ftdi_sio: add ID for isodebug v1

2019-07-17 Thread Greg Kroah-Hartman
From: Andreas Fritiofson commit f8377eff548170e8ea8022c067a1fbdf9e1c46a8 upstream. This adds the vid:pid of the isodebug v1 isolated JTAG/SWD+UART. Only the second channel is available for use as a serial port. Signed-off-by: Andreas Fritiofson Cc: stable Signed-off-by: Johan Hovold

[PATCH 4.14 46/80] Documentation: Add section about CPU vulnerabilities for Spectre

2019-07-17 Thread Greg Kroah-Hartman
From: Tim Chen commit 6e88559470f581741bcd0f2794f9054814ac9740 upstream. Add documentation for Spectre vulnerability and the mitigation mechanisms: - Explain the problem and risks - Document the mitigation mechanisms - Document the command line controls - Document the sysfs files

[PATCH 4.14 40/80] fscrypt: dont set policy for a dead directory

2019-07-17 Thread Greg Kroah-Hartman
From: Hongjie Fang commit 5858bdad4d0d0fc18bf29f34c3ac836e0b59441f upstream. The directory may have been removed when entering fscrypt_ioctl_set_policy(). If so, the empty_dir() check will return error for ext4 file system. ext4_rmdir() sets i_size = 0, then ext4_empty_dir() reports an error

[PATCH 4.14 49/80] mwifiex: Dont abort on small, spec-compliant vendor IEs

2019-07-17 Thread Greg Kroah-Hartman
From: Brian Norris commit 63d7ef36103d26f20325a921ecc96a3288560146 upstream. Per the 802.11 specification, vendor IEs are (at minimum) only required to contain an OUI. A type field is also included in ieee80211.h (struct ieee80211_vendor_ie) but doesn't appear in the specification. The

[PATCH 4.14 68/80] sis900: fix TX completion

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 8ac8a01092b2added0749ef937037bf1912e13e3 ] Since commit 605ad7f184b60cfaacbc038aa6c55ee68dee3c89 "tcp: refine TSO autosizing", outbound throughput is dramatically reduced for some connections, as sis900 is doing TX completion within idle states only. Make TX completion happen

  1   2   3   4   5   6   7   8   9   10   >