Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Russell King - ARM Linux admin
On Wed, May 13, 2020 at 06:34:05AM +0100, Russell King - ARM Linux admin wrote: > On Tue, May 12, 2020 at 08:48:22PM -0700, Doug Berger wrote: > > On 5/12/2020 11:55 AM, Russell King - ARM Linux admin wrote: > > > On Tue, May 12, 2020 at 11:31:39AM -0700, Doug Berger wrote: > > >> This was

[PATCH V4 0/5] iio: adc: Add support for QCOM SPMI PMIC7 ADC

2020-05-13 Thread Jishnu Prakash
The following changes are made in V4: Made some recommended minor changes in the third patch. Removed the info member from adc5_data, and adc exit function, to be added back in fifth patch. Added a fifth patch to clean up code common to PMIC5 and PMIC7 ADC. Jishnu Prakash (5): iio: adc:

Re: [PATCH v2 1/3] rcu/kasan: record and print call_rcu() call stack

2020-05-13 Thread Walter Wu
On Wed, 2020-05-13 at 11:16 +0200, Dmitry Vyukov wrote: > On Wed, May 13, 2020 at 11:05 AM Walter Wu wrote: > > > > On Wed, 2020-05-13 at 08:51 +0200, 'Dmitry Vyukov' via kasan-dev wrote: > > > On Wed, May 13, 2020 at 3:48 AM Walter Wu > > > wrote: > > > > > > > Are you sure it will increase

[PATCH V4 1/5] iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format

2020-05-13 Thread Jishnu Prakash
Convert the adc bindings from .txt to .yaml format. Signed-off-by: Jishnu Prakash Reviewed-by: Amit Kucheria Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 173 -- .../bindings/iio/adc/qcom,spmi-vadc.yaml | 252 + 2

[PATCH V4 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-13 Thread Jishnu Prakash
The ADC architecture on PMIC7 is changed as compared to PMIC5. The major change from PMIC5 is that all SW communication to ADC goes through PMK8350, which communicates with other PMICs through PBS when the ADC on PMK8350 works in master mode. The SID register is used to identify the PMICs with

[PATCH V4 4/5] iio: adc: Update error checks and debug prints

2020-05-13 Thread Jishnu Prakash
Change pr_err/pr_debug statements to dev_err/dev_dbg for increased clarity. Also clean up some return value checks. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH V4 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-13 Thread Jishnu Prakash
This commit includes the following changes: Add a common function used for read_raw callback for both PMIC5 and PMIC7 ADCs. Add exit function for ADC. Add info_property under adc_data to more efficiently distinguish PMIC5 and PMIC7 ADCs. Signed-off-by: Jishnu Prakash ---

[PATCH V4 2/5] iio: adc: Add PMIC7 ADC bindings

2020-05-13 Thread Jishnu Prakash
Add documentation for PMIC7 ADC peripheral. For the PMIC7-type PMICs, ADC peripheral is present in HW for the following PMICs: PMK8350, PM8350, PM8350b, PMR735a and PMR735b. Of these, only the ADC peripheral on PMK8350 is exposed directly to SW. If SW needs to communicate with ADCs on other PMICs,

stable-rc 4.4.224-rc1/e6bc7c5d4464: no regressions found in project stable v4.4.y

2020-05-13 Thread Naresh Kamboju
Results from Linaro’s test farm. No regressions on arm64, arm, x86_64, and i386. Summary kernel: 4.4.224-rc1 git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git branch: linux-4.4.y git

Re: [PATCH 2/3] net/scm: cleanup scm_detach_fds

2020-05-13 Thread Ido Schimmel
On Mon, May 11, 2020 at 01:59:12PM +0200, Christoph Hellwig wrote: > Factor out two helpes to keep the code tidy. > > Signed-off-by: Christoph Hellwig Christoph, After installing net-next (fb9f2e92864f) on a Fedora 32 machine I cannot ssh to it. Bisected it to this commit [1]. When trying to

[PATCH V5 03/10] remoteproc: qcom: Add support for split q6 + m3 wlan firmware

2020-05-13 Thread Gokul Sriram Palanisamy
IPQ8074 supports split firmware for q6 and m3 as well. So add support for loading the m3 firmware before q6. Now the drivers works fine for both split and unified firmwares. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V ---

[PATCH V5 05/10] remoteproc: qcom: Update regmap offsets for halt register

2020-05-13 Thread Gokul Sriram Palanisamy
Fixed issue in reading halt-regs parameter from device-tree. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_wcss.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c

[PATCH V5 04/10] remoteproc: qcom: Add ssr subdevice identifier

2020-05-13 Thread Gokul Sriram Palanisamy
Add name for ssr subdevice on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c

[PATCH V5 00/10] remoteproc: qcom: q6v5-wcss: Add support for secure pil

2020-05-13 Thread Gokul Sriram Palanisamy
IPQ8074 needs support for secure pil as well. Also, currently only unified firmware is supported. IPQ8074 supports split firmware for q6 and m3, so adding support for that. This series is based on Govind's "[v5] Add non PAS wcss Q6 support for QCS404" changes since v4: - Rebased patch 8

[PATCH V5 01/10] remoteproc: qcom: Add PRNG proxy clock

2020-05-13 Thread Gokul Sriram Palanisamy
PRNG clock is needed by the secure PIL, support for the same is added in subsequent patches. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 65 +++-- 1 file changed, 47

[PATCH V5 08/10] dt-bindings: firmware: qcom: Add compatible for IPQ8074 SoC

2020-05-13 Thread Gokul Sriram Palanisamy
Add compatible for IPQ8074 support. This does not need clocks for scm calls. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH V5 07/10] clk: qcom: Add WCSSAON reset

2020-05-13 Thread Gokul Sriram Palanisamy
Add WCSSAON reset required for Q6v5 on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq8074.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-ipq8074.c

[PATCH V5 02/10] remoteproc: qcom: Add secure PIL support

2020-05-13 Thread Gokul Sriram Palanisamy
IPQ8074 uses secure PIL. Hence, adding the support for the same. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 37 + 1 file changed, 37 insertions(+) diff --git

[PATCH V5 06/10] dt-bindings: clock: qcom: Add reset for WCSSAON

2020-05-13 Thread Gokul Sriram Palanisamy
Add binding for WCSSAON reset required for Q6v5 reset on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Rob Herring Acked-by: Stephen Boyd --- include/dt-bindings/clock/qcom,gcc-ipq8074.h | 1 + 1 file changed, 1

[PATCH V5 09/10] arm64: dts: Add support for scm on IPQ8074 SoCs

2020-05-13 Thread Gokul Sriram Palanisamy
Enables scm support, clock is not needed for enabling scm interface. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi

[PATCH V5 10/10] arm64: dts: qcom: Enable Q6v5 WCSS for ipq8074 SoC

2020-05-13 Thread Gokul Sriram Palanisamy
Enable remoteproc WCSS PIL driver with glink and ssr subdevices. Also configures shared memory and enables smp2p and mailboxes required for IPC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 121

RE: [PATCH v7 RESEND 07/13] spi: imx: fix ERR009165

2020-05-13 Thread Robin Gong
On 2020/05/13 Sascha Hauer wrote: > On Wed, May 13, 2020 at 09:05:33AM +, Robin Gong wrote: > > On 2020/05/13 Sascha Hauer wrote:d > > > > drivers/spi/spi-imx.c | 16 > > > > 1 file changed, 8 insertions(+), 8 deletions(-) > > > > > > > > diff --git a/drivers/spi/spi-imx.c

Re: [PATCH 5.4.33 0/2] Fix for long operation cmds busy detection

2020-05-13 Thread Greg KH
On Sat, Apr 25, 2020 at 09:04:08AM +0200, Greg KH wrote: > On Fri, Apr 24, 2020 at 07:42:16PM -0700, Sowjanya Komatineni wrote: > > > > On 4/24/20 6:45 PM, Sasha Levin wrote: > > > External email: Use caution opening links or attachments > > > > > > > > > On Fri, Apr 24, 2020 at 01:06:04PM

Re: [PATCH 0/2] drm: encoder_slave: some updates

2020-05-13 Thread Emil Velikov
Hi Wolfram, On Wed, 13 May 2020 at 10:10, Wolfram Sang wrote: > > On Mon, Mar 16, 2020 at 05:39:05PM +0100, Wolfram Sang wrote: > > While converting I2C users to new APIs, I found a refcounting problem in > > the encoder_slave implementation. This series fixes it and converts to > > the new API.

Re: [PATCH][next] sfc: fix dereference of table before it is null checked

2020-05-13 Thread Edward Cree
On 12/05/2020 18:13, Colin King wrote: > From: Colin Ian King > > Currently pointer table is being dereferenced on a null check of > table->must_restore_filters before it is being null checked, leading > to a potential null pointer dereference issue. Fix this by null > checking table before

Re: [PATCH 00/14] Modularize schedutil

2020-05-13 Thread Quentin Perret
Hi Rafael, On Tuesday 12 May 2020 at 19:30:52 (+0200), Rafael J. Wysocki wrote: > I don't see any technical reason for making schedutil modular in the > context of GKI other than to make the GKI image smaller, but I don't > expect that to be significant enough. The fact that we can make the

Re: [PATCH net-next 3/4] net: ethernet: introduce phy_set_pause

2020-05-13 Thread Russell King - ARM Linux admin
On Mon, May 11, 2020 at 05:24:09PM -0700, Doug Berger wrote: > This commit introduces the phy_set_pause function to the phylib as > a helper to support the set_pauseparam ethtool method. > > It is hoped that the new behavior introduced by this function will > be widely embraced and the

Re: [PATCH v5 3/4] sched: Allow sched_{get,set}attr to change latency_nice of the task

2020-05-13 Thread Parth Shah
On 5/11/20 4:43 PM, Dietmar Eggemann wrote: > On 28/02/2020 10:07, Parth Shah wrote: >> Introduce the latency_nice attribute to sched_attr and provide a >> mechanism to change the value with the use of sched_setattr/sched_getattr >> syscall. >> >> Also add new flag "SCHED_FLAG_LATENCY_NICE" to

RE: CMA enhancement - non-default areas in x86

2020-05-13 Thread Ravich, Leonid
> A: http://en.wikipedia.org/wiki/Top_post > Q: Were do I find info about this thing called top-posting? > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. >

stable-rc 4.9.224-rc1/6dfb25040a46: no regressions found in project stable v4.9.y

2020-05-13 Thread Naresh Kamboju
Results from Linaro’s test farm. No regressions on arm64, arm, x86_64, and i386. Summary kernel: 4.9.224-rc1 git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git branch: linux-4.9.y git

[PATCH 4.19 10/48] sch_choke: avoid potential panic in choke_reset()

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 8738c85c72b3108c9b9a369a39868ba5f8e10ae0 ] If choke_init() could not allocate q->tab, we would crash later in choke_reset(). BUG: KASAN: null-ptr-deref in memset include/linux/string.h:366 [inline] BUG: KASAN: null-ptr-deref in choke_reset+0x208/0x340

[PATCH 4.19 01/48] USB: serial: qcserial: Add DW5816e support

2020-05-13 Thread Greg Kroah-Hartman
From: Matt Jolly commit 78d6de3cfbd342918d31cf68d0d2eda401338aef upstream. Add support for Dell Wireless 5816e to drivers/usb/serial/qcserial.c Signed-off-by: Matt Jolly Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/qcserial.c |1 + 1

[PATCH 4.19 11/48] sch_sfq: validate silly quantum values

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit df4953e4e997e273501339f607b77953772e3559 ] syzbot managed to set up sfq so that q->scaled_quantum was zero, triggering an infinite loop in sfq_dequeue() More generally, we must only accept quantum between 1 and 2^18 - 7, meaning scaled_quantum must be in

[PATCH 4.19 12/48] tipc: fix partial topology connection closure

2020-05-13 Thread Greg Kroah-Hartman
From: Tuong Lien [ Upstream commit 980d69276f3048af43a045be2925dacfb898a7be ] When an application connects to the TIPC topology server and subscribes to some services, a new connection is created along with some objects - 'tipc_subscription' to store related data correspondingly... However,

[PATCH 4.19 14/48] net/mlx5: Fix forced completion access non initialized command entry

2020-05-13 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit f3cb3cebe26ed4c8036adbd9448b372129d3c371 ] mlx5_cmd_flush() will trigger forced completions to all valid command entries. Triggered by an asynch event such as fast teardown it can happen at any stage of the command, including command initialization. It will

[PATCH 4.19 30/48] coredump: fix crash when umh is disabled

2020-05-13 Thread Greg Kroah-Hartman
From: Luis Chamberlain commit 3740d93e37902b31159a82da2d5c8812ed825404 upstream. Commit 64e90a8acb859 ("Introduce STATIC_USERMODEHELPER to mediate call_usermodehelper()") added the optiont to disable all call_usermodehelper() calls by setting STATIC_USERMODEHELPER_PATH to an empty string. When

[PATCH 4.19 09/48] net: usb: qmi_wwan: add support for DW5816e

2020-05-13 Thread Greg Kroah-Hartman
From: Matt Jolly [ Upstream commit 57c7f2bd758eed867295c81d3527fff4fab1ed74 ] Add support for Dell Wireless 5816e to drivers/net/usb/qmi_wwan.c Signed-off-by: Matt Jolly Acked-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/qmi_wwan.c |

[PATCH 4.19 06/48] net: macsec: preserve ingress frame ordering

2020-05-13 Thread Greg Kroah-Hartman
From: Scott Dial [ Upstream commit ab046a5d4be4c90a3952a0eae75617b49c0cb01b ] MACsec decryption always occurs in a softirq context. Since the FPU may not be usable in the softirq context, the call to decrypt may be scheduled on the cryptd work queue. The cryptd work queue does not provide

[PATCH 4.19 28/48] mm/page_alloc: fix watchdog soft lockups during set_zone_contiguous()

2020-05-13 Thread Greg Kroah-Hartman
From: David Hildenbrand commit e84fe99b68ce353c37ceeecc95dce9696c976556 upstream. Without CONFIG_PREEMPT, it can happen that we get soft lockups detected, e.g., while booting up. watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted

[PATCH 4.19 31/48] KVM: VMX: Explicitly reference RCX as the vmx_vcpu pointer in asm blobs

2020-05-13 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 051a2d3e59e51ae49fd56aef34e472832897ce46 upstream. Use '%% " _ASM_CX"' instead of '%0' to dereference RCX, i.e. the 'struct vcpu_vmx' pointer, in the VM-Enter asm blobs of vmx_vcpu_run() and nested_vmx_check_vmentry_hw(). Using the symbolic name means that

[PATCH 4.19 08/48] net_sched: sch_skbprio: add message validation to skbprio_change()

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 2761121af87de45951989a0adada917837d8fa82 ] Do not assume the attribute has the right size. Fixes: aea5f654e6b7 ("net/sched: add skbprio scheduler") Signed-off-by: Eric Dumazet Reported-by: syzbot Signed-off-by: David S. Miller Signed-off-by: Greg

[PATCH 4.19 05/48] fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 14695212d4cd8b0c997f6121b6df8520038ce076 ] My intent was to not let users set a zero drop_batch_size, it seems I once again messed with min()/max(). Fixes: 9d18562a2278 ("fq_codel: add batch ability to fq_codel_drop()") Signed-off-by: Eric Dumazet

[PATCH 4.19 33/48] batman-adv: fix batadv_nc_random_weight_tq

2020-05-13 Thread Greg Kroah-Hartman
From: George Spelvin commit fd0c42c4dea54335967c5a86f15fc064235a2797 upstream. and change to pseudorandom numbers, as this is a traffic dithering operation that doesn't need crypto-grade. The previous code operated in 4 steps: 1. Generate a random byte 0 <= rand_tq <= 255 2. Multiply it by

[PATCH 4.19 03/48] vt: fix unicode console freeing with a common interface

2020-05-13 Thread Greg Kroah-Hartman
From: Nicolas Pitre [ Upstream commit 57d38f26d81e4275748b69372f31df545dcd9b71 ] By directly using kfree() in different places we risk missing one if it is switched to using vfree(), especially if the corresponding vmalloc() is hidden away within a common abstraction. Oh wait, that's exactly

[PATCH 4.19 27/48] arm64: hugetlb: avoid potential NULL dereference

2020-05-13 Thread Greg Kroah-Hartman
From: Mark Rutland commit 027d0c7101f50cf03aeea9eebf484afd4920c8d3 upstream. The static analyzer in GCC 10 spotted that in huge_pte_alloc() we may pass a NULL pmdp into pte_alloc_map() when pmd_alloc() returns NULL: | CC arch/arm64/mm/pageattr.o | CC arch/arm64/mm/hugetlbpage.o |

[PATCH 4.19 35/48] batman-adv: Fix refcnt leak in batadv_store_throughput_override

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 6107c5da0fca8b50b4d3215e94d619d38cc4a18c upstream. batadv_show_throughput_override() invokes batadv_hardif_get_by_netdev(), which gets a batadv_hard_iface object from net_dev with increased refcnt and its reference is assigned to a local pointer 'hard_iface'. When

[PATCH 4.19 02/48] tracing/kprobes: Fix a double initialization typo

2020-05-13 Thread Greg Kroah-Hartman
From: Masami Hiramatsu [ Upstream commit dcbd21c9fca5e954fd4e3d91884907eb6d47187e ] Fix a typo that resulted in an unnecessary double initialization to addr. Link: http://lkml.kernel.org/r/158779374968.6082.2337484008464939919.stgit@devnote2 Cc: Tom Zanussi Cc: Ingo Molnar Cc:

[PATCH 4.19 18/48] net: stricter validation of untrusted gso packets

2020-05-13 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 9274124f023b5c56dc4326637d4f787968b03607 ] Syzkaller again found a path to a kernel crash through bad gso input: a packet with transport header extending beyond skb_headlen(skb). Tighten validation at kernel entry: - Verify that the transport header

[PATCH 5.4 11/90] dp83640: reverse arguments to list_add_tail

2020-05-13 Thread Greg Kroah-Hartman
From: Julia Lawall [ Upstream commit 865308373ed49c9fb05720d14cbf1315349b32a9 ] In this code, it appears that phyter_clocks is a list head, based on the previous list_for_each, and that clock->list is intended to be a list element, given that it has just been initialized in dp83640_clock_init.

[PATCH 4.19 38/48] x86/entry/64: Fix unwind hints in kernel exit path

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 1fb143634a38095b641a3a21220774799772dc4c upstream. In swapgs_restore_regs_and_return_to_usermode, after the stack is switched to the trampoline stack, the existing UNWIND_HINT_REGS hint is no longer valid, which can result in the following ORC unwinder warning:

[PATCH 4.19 19/48] HID: wacom: Read HID_DG_CONTACTMAX directly for non-generic devices

2020-05-13 Thread Greg Kroah-Hartman
From: Jason Gerecke commit 778fbf4179991e7652e97d7f1ca1f657ef828422 upstream. We've recently switched from extracting the value of HID_DG_CONTACTMAX at a fixed offset (which may not be correct for all tablets) to injecting the report into the driver for the generic codepath to handle.

[PATCH 4.19 24/48] tracing: Add a vmalloc_sync_mappings() for safe measure

2020-05-13 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 11f5efc3ab66284f7aaacc926e9351d658e2577b upstream. x86_64 lazily maps in the vmalloc pages, and the way this works with per_cpu areas can be complex, to say the least. Mappings may happen at boot up, and if nothing synchronizes the page tables, those page

[PATCH 4.19 25/48] KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER

2020-05-13 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 1c32ca5dc6d00012f0c964e5fdd7042fcc71efb1 upstream. When deciding whether a guest has to be stopped we check whether this is a private interrupt or not. Unfortunately, there's an off-by-one bug here, and we fail to recognize a whole range of interrupts as being global

[PATCH 4.19 21/48] HID: usbhid: Fix race between usbhid_close() and usbhid_stop()

2020-05-13 Thread Greg Kroah-Hartman
From: Alan Stern commit 0ed08faded1da03eb3def61502b27f81aef2e615 upstream. The syzbot fuzzer discovered a bad race between in the usbhid driver between usbhid_stop() and usbhid_close(). In particular, usbhid_stop() does: usb_free_urb(usbhid->urbin); ... usbhid->urbin =

[PATCH 5.4 10/90] devlink: fix return value after hitting end in region read

2020-05-13 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit 610a9346c138b9c2c93d38bf5f3728e74ae9cbd5 ] Commit d5b90e99e1d5 ("devlink: report 0 after hitting end in region read") fixed region dump, but region read still returns a spurious error: $ devlink region read netdevsim/netdevsim1/dummy snapshot 0 addr 0 len

[PATCH 5.4 15/90] neigh: send protocol value in neighbor create notification

2020-05-13 Thread Greg Kroah-Hartman
From: Roman Mashak [ Upstream commit 38212bb31fe923d0a2c6299bd2adfbb84cddef2a ] When a new neighbor entry has been added, event is generated but it does not include protocol, because its value is assigned after the event notification routine has run, so move protocol assignment code earlier.

[PATCH 5.4 12/90] fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 14695212d4cd8b0c997f6121b6df8520038ce076 ] My intent was to not let users set a zero drop_batch_size, it seems I once again messed with min()/max(). Fixes: 9d18562a2278 ("fq_codel: add batch ability to fq_codel_drop()") Signed-off-by: Eric Dumazet

[PATCH 4.19 45/48] netfilter: nf_osf: avoid passing pointer to local var

2020-05-13 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit c165d57b552aaca607fa5daf3fb524a6efe3c5a3 upstream. gcc-10 points out that a code path exists where a pointer to a stack variable may be passed back to the caller: net/netfilter/nfnetlink_osf.c: In function 'nf_osf_hdr_ctx_init': cc1: warning: function may return

[PATCH 4.19 41/48] x86/unwind/orc: Prevent unwinding before ORC initialization

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 98d0c8ebf77e0ba7c54a9ae05ea588f0e9e3f46e upstream. If the unwinder is called before the ORC data has been initialized, orc_find() returns NULL, and it tries to fall back to using frame pointers. This can cause some unexpected warnings during boot. Move the

[PATCH 4.19 40/48] x86/unwind/orc: Dont skip the first frame for inactive tasks

2020-05-13 Thread Greg Kroah-Hartman
From: Miroslav Benes commit f1d9a2abff66aa8156fbc1493abed468db63ea48 upstream. When unwinding an inactive task, the ORC unwinder skips the first frame by default. If both the 'regs' and 'first_frame' parameters of unwind_start() are NULL, 'state->sp' and 'first_frame' are later initialized to

[PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-13 Thread Jisheng Zhang
This reverts commit a027b2c5fed78851e69fab395b02d127a7759fc7. The HW supports auto clock gating, so it's useless to do runtime pm in software. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-xenon.c | 87 +++--- drivers/mmc/host/sdhci-xenon.h | 1 - 2 files

[PATCH 4.19 16/48] bnxt_en: Improve AER slot reset.

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit bae361c54fb6ac6eba3b4762f49ce14beb73ef13 ] Improve the slot reset sequence by disabling the device to prevent bad DMAs if slot reset fails. Return the proper result instead of always PCI_ERS_RESULT_RECOVERED to the caller. Fixes: 6316ea6db93d ("bnxt_en:

[PATCH 4.19 42/48] x86/unwind/orc: Fix error path for bad ORC entry type

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit a0f81bf26888048100bf017fadf438a5bdffa8d8 upstream. If the ORC entry type is unknown, nothing else can be done other than reporting an error. Exit the function instead of breaking out of the switch statement. Fixes: ee9f8fce9964 ("x86/unwind: Add the ORC unwinder")

[PATCH 5.4 23/90] net/tls: Fix sk_psock refcnt leak in bpf_exec_tx_verdict()

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 095f5614bfe16e5b3e191b34ea41b10d6fdd4ced ] bpf_exec_tx_verdict() invokes sk_psock_get(), which returns a reference of the specified sk_psock object to "psock" with increased refcnt. When bpf_exec_tx_verdict() returns, local variable "psock" becomes invalid, so

[PATCH 5.4 22/90] net: tc35815: Fix phydev supported/advertising mask

2020-05-13 Thread Greg Kroah-Hartman
From: Anthony Felice [ Upstream commit 4b5b71f770e2edefbfe74203777264bfe6a9927c ] Commit 3c1bcc8614db ("net: ethernet: Convert phydev advertize and supported from u32 to link mode") updated ethernet drivers to use a linkmode bitmap. It mistakenly dropped a bitwise negation in the tc35815

[PATCH 5.4 24/90] net/tls: Fix sk_psock refcnt leak when in tls_data_ready()

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 62b4011fa7bef9fa00a6aeec26e69685dc1cc21e ] tls_data_ready() invokes sk_psock_get(), which returns a reference of the specified sk_psock object to "psock" with increased refcnt. When tls_data_ready() returns, local variable "psock" becomes invalid, so the

[PATCH 5.4 19/90] net/mlx4_core: Fix use of ENOSPC around mlx4_counter_alloc()

2020-05-13 Thread Greg Kroah-Hartman
From: Tariq Toukan [ Upstream commit 40e473071dbad04316ddc3613c3a3d1c75458299 ] When ENOSPC is set the idx is still valid and gets set to the global MLX4_SINK_COUNTER_INDEX. However gcc's static analysis cannot tell that ENOSPC is impossible from mlx4_cmd_imm() and gives this warning:

[PATCH 5.4 32/90] bnxt_en: Reduce BNXT_MSIX_VEC_MAX value to supported CQs per PF.

2020-05-13 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit 9e68cb0359b20f99c7b070f1d3305e5e0a9fae6d ] Broadcom adapters support only maximum of 512 CQs per PF. If user sets MSIx vectors more than supported CQs, firmware is setting incorrect value for msix_vec_per_pf_max parameter. Fix it by reducing the

[PATCH 5.4 17/90] net: macb: fix an issue about leak related system resources

2020-05-13 Thread Greg Kroah-Hartman
From: Dejin Zheng [ Upstream commit b959c77dac09348955f344104c6a921ebe104753 ] A call of the function macb_init() can fail in the function fu540_c000_init. The related system resources were not released then. use devm_platform_ioremap_resource() to replace ioremap() to fix it. Fixes:

[PATCH 5.4 29/90] tipc: fix partial topology connection closure

2020-05-13 Thread Greg Kroah-Hartman
From: Tuong Lien [ Upstream commit 980d69276f3048af43a045be2925dacfb898a7be ] When an application connects to the TIPC topology server and subscribes to some services, a new connection is created along with some objects - 'tipc_subscription' to store related data correspondingly... However,

[PATCH 5.4 18/90] net: macsec: preserve ingress frame ordering

2020-05-13 Thread Greg Kroah-Hartman
From: Scott Dial [ Upstream commit ab046a5d4be4c90a3952a0eae75617b49c0cb01b ] MACsec decryption always occurs in a softirq context. Since the FPU may not be usable in the softirq context, the call to decrypt may be scheduled on the cryptd work queue. The cryptd work queue does not provide

[PATCH 5.4 34/90] bnxt_en: Return error when allocating zero size context memory.

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit bbf211b1ecb891c7e0cc734504183fc8b534 ] bnxt_alloc_ctx_pg_tbls() should return error when the memory size of the context memory to set up is zero. By returning success (0), the caller may proceed normally and may crash later when it tries to set up the

[PATCH 5.4 27/90] sch_choke: avoid potential panic in choke_reset()

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 8738c85c72b3108c9b9a369a39868ba5f8e10ae0 ] If choke_init() could not allocate q->tab, we would crash later in choke_reset(). BUG: KASAN: null-ptr-deref in memset include/linux/string.h:366 [inline] BUG: KASAN: null-ptr-deref in choke_reset+0x208/0x340

[PATCH 5.4 26/90] nfp: abm: fix a memory leak bug

2020-05-13 Thread Greg Kroah-Hartman
From: Qiushi Wu [ Upstream commit bd4af432cc71b5fbfe4833510359a6ad3ada250d ] In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, which can lead to a memory leak bug. Fix this issue by adding

[PATCH 5.4 20/90] net_sched: sch_skbprio: add message validation to skbprio_change()

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 2761121af87de45951989a0adada917837d8fa82 ] Do not assume the attribute has the right size. Fixes: aea5f654e6b7 ("net/sched: add skbprio scheduler") Signed-off-by: Eric Dumazet Reported-by: syzbot Signed-off-by: David S. Miller Signed-off-by: Greg

Re: [PATCH V4 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 12:23 PM Jishnu Prakash wrote: > > The ADC architecture on PMIC7 is changed as compared to PMIC5. The > major change from PMIC5 is that all SW communication to ADC goes through > PMK8350, which communicates with other PMICs through PBS when the ADC > on PMK8350 works in

[PATCH 5.4 30/90] tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040

2020-05-13 Thread Greg Kroah-Hartman
From: "Toke H�iland-J�rgensen" [ Upstream commit b723748750ece7d844cdf2f52c01d37f83387208 ] RFC 6040 recommends propagating an ECT(1) mark from an outer tunnel header to the inner header if that inner header is already marked as ECT(0). When RFC 6040 decapsulation was implemented, this case of

[PATCH 5.4 21/90] net: stricter validation of untrusted gso packets

2020-05-13 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 9274124f023b5c56dc4326637d4f787968b03607 ] Syzkaller again found a path to a kernel crash through bad gso input: a packet with transport header extending beyond skb_headlen(skb). Tighten validation at kernel entry: - Verify that the transport header

[PATCH 5.4 28/90] sch_sfq: validate silly quantum values

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit df4953e4e997e273501339f607b77953772e3559 ] syzbot managed to set up sfq so that q->scaled_quantum was zero, triggering an infinite loop in sfq_dequeue() More generally, we must only accept quantum between 1 and 2^18 - 7, meaning scaled_quantum must be in

[PATCH 5.4 51/90] KVM: s390: Remove false WARN_ON_ONCE for the PQAP instruction

2020-05-13 Thread Greg Kroah-Hartman
From: Christian Borntraeger commit 5615e74f48dcc982655543e979b6c3f3f877e6f6 upstream. In LPAR we will only get an intercept for FC==3 for the PQAP instruction. Running nested under z/VM can result in other intercepts as well as ECA_APIE is an effective bit: If one hypervisor layer has turned

[PATCH 5.4 06/90] drm/amdgpu: move kfd suspend after ip_suspend_phase1

2020-05-13 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit c457a273e118bb96e1db8d1825f313e6cafe4258 ] This sequence change should be safe as what did in ip_suspend_phase1 is to suspend DCE only. And this is a prerequisite for coming redundant cg/pg ungate dropping. Fixes: 487eca11a321ef ("drm/amdgpu: fix gfx hang

[PATCH 5.4 53/90] KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER

2020-05-13 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 1c32ca5dc6d00012f0c964e5fdd7042fcc71efb1 upstream. When deciding whether a guest has to be stopped we check whether this is a private interrupt or not. Unfortunately, there's an off-by-one bug here, and we fail to recognize a whole range of interrupts as being global

[PATCH 5.4 05/90] net: macb: Fix runtime PM refcounting

2020-05-13 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 0ce205d4660c312cdeb4a81066616dcc6f3799c4 ] The commit e6a41c23df0d, while trying to fix an issue, ("net: macb: ensure interface is not suspended on at91rm9200") introduced a refcounting regression, because in error case refcounter must be balanced.

[PATCH 5.4 07/90] drm/amdgpu: drop redundant cg/pg ungate on runpm enter

2020-05-13 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit f7b52890daba570bc8162d43c96b5583bbdd4edd ] CG/PG ungate is already performed in ip_suspend_phase1. Otherwise, the CG/PG ungate will be performed twice. That will cause gfxoff disablement is performed twice also on runpm enter while gfxoff enablemnt once on rump

[PATCH 5.4 08/90] vt: fix unicode console freeing with a common interface

2020-05-13 Thread Greg Kroah-Hartman
From: Nicolas Pitre [ Upstream commit 57d38f26d81e4275748b69372f31df545dcd9b71 ] By directly using kfree() in different places we risk missing one if it is switched to using vfree(), especially if the corresponding vmalloc() is hidden away within a common abstraction. Oh wait, that's exactly

[PATCH 5.4 36/90] net/mlx5: DR, On creation set CQs arm_db member to right value

2020-05-13 Thread Greg Kroah-Hartman
From: Erez Shitrit [ Upstream commit 8075411d93b6efe143d9f606f6531077795b7fbf ] In polling mode, set arm_db member to a value that will avoid CQ event recovery by the HW. Otherwise we might get event without completion function. In addition,empty completion function to was added to protect from

[PATCH 5.4 35/90] bnxt_en: Fix VLAN acceleration handling in bnxt_fix_features().

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit c72cb303aa6c2ae7e4184f0081c6d11bf03fb96b ] The current logic in bnxt_fix_features() will inadvertently turn on both CTAG and STAG VLAN offload if the user tries to disable both. Fix it by checking that the user is trying to enable CTAG or STAG before

[PATCH 5.4 61/90] mm: limit boost_watermark on small zones

2020-05-13 Thread Greg Kroah-Hartman
From: Henry Willard commit 14f69140ff9c92a0928547ceefb153a842e8492c upstream. Commit 1c30844d2dfe ("mm: reclaim small amounts of memory when an external fragmentation event occurs") adds a boost_watermark() function which increases the min watermark in a zone by at least pageblock_nr_pages or

[PATCH 5.4 54/90] KVM: arm64: Fix 32bit PC wrap-around

2020-05-13 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 0225fd5e0a6a32af7af0aefac45c8ebf19dc5183 upstream. In the unlikely event that a 32bit vcpu traps into the hypervisor on an instruction that is located right at the end of the 32bit range, the emulation of that instruction is going to increment PC past the 32bit range.

[PATCH 5.4 48/90] USB: serial: garmin_gps: add sanity checking for data length

2020-05-13 Thread Greg Kroah-Hartman
From: Oliver Neukum commit e9b3c610a05c1cdf8e959a6d89c38807ff758ee6 upstream. We must not process packets shorter than a packet ID Signed-off-by: Oliver Neukum Reported-and-tested-by: syzbot+d29e9263e13ce0b9f...@syzkaller.appspotmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable

[PATCH 5.4 50/90] crypto: arch/nhpoly1305 - process in explicit 4k chunks

2020-05-13 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit a9a8ba90fa5857c2c8a0e32eef2159cec717da11 upstream. Rather than chunking via PAGE_SIZE, this commit changes the arch implementations to chunk in explicit 4k parts, so that calculations on maximum acceptable latency don't suddenly become invalid on platforms where

[PATCH 5.4 59/90] eventpoll: fix missing wakeup for ovflist in ep_poll_callback

2020-05-13 Thread Greg Kroah-Hartman
From: Khazhismel Kumykov commit 0c54a6a44bf3d41e76ce3f583a6ece267618df2e upstream. In the event that we add to ovflist, before commit 339ddb53d373 ("fs/epoll: remove unnecessary wakeups of nested epoll") we would be woken up by ep_scan_ready_list, and did no wakeup in ep_poll_callback. With

[PATCH 5.4 57/90] ipc/mqueue.c: change __do_notify() to bypass check_kill_permission()

2020-05-13 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit b5f2006144c6ae941726037120fa1001ddede784 upstream. Commit cc731525f26a ("signal: Remove kernel interal si_code magic") changed the value of SI_FROMUSER(SI_MESGQ), this means that mq_notify() no longer works if the sender doesn't have rights to send a signal. Change

[PATCH 5.4 60/90] mm/page_alloc: fix watchdog soft lockups during set_zone_contiguous()

2020-05-13 Thread Greg Kroah-Hartman
From: David Hildenbrand commit e84fe99b68ce353c37ceeecc95dce9696c976556 upstream. Without CONFIG_PREEMPT, it can happen that we get soft lockups detected, e.g., while booting up. watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted

[PATCH 5.4 52/90] KVM: VMX: Explicitly clear RFLAGS.CF and RFLAGS.ZF in VM-Exit RSB path

2020-05-13 Thread Greg Kroah-Hartman
From: Sean Christopherson commit c7cb2d650c9e78c03bd2d1c0db89891825f8c0f4 upstream. Clear CF and ZF in the VM-Exit path after doing __FILL_RETURN_BUFFER so that KVM doesn't interpret clobbered RFLAGS as a VM-Fail. Filling the RSB has always clobbered RFLAGS, its current incarnation just

[PATCH 5.4 04/90] tracing/kprobes: Fix a double initialization typo

2020-05-13 Thread Greg Kroah-Hartman
From: Masami Hiramatsu [ Upstream commit dcbd21c9fca5e954fd4e3d91884907eb6d47187e ] Fix a typo that resulted in an unnecessary double initialization to addr. Link: http://lkml.kernel.org/r/158779374968.6082.2337484008464939919.stgit@devnote2 Cc: Tom Zanussi Cc: Ingo Molnar Cc:

[PATCH 5.4 00/90] 5.4.41-rc1 review

2020-05-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.41 release. There are 90 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 Fri, 15 May 2020 09:41:20 +. Anything

[PATCH 5.4 09/90] tty: xilinx_uartps: Fix missing id assignment to the console

2020-05-13 Thread Greg Kroah-Hartman
From: Shubhrajyoti Datta [ Upstream commit 2ae11c46d5fdc46cb396e35911c713d271056d35 ] When serial console has been assigned to ttyPS1 (which is serial1 alias) console index is not updated property and pointing to index -1 (statically initialized) which ends up in situation where nothing has

Re: [PATCH V4 4/5] iio: adc: Update error checks and debug prints

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 12:23 PM Jishnu Prakash wrote: > > Change pr_err/pr_debug statements to dev_err/dev_dbg for > increased clarity. Also clean up some return value checks. 'Also' on the commit message == 'split this to two'. But here is a ping pong style of patches (you introduce a problem

Re: [PATCH v5 1/7] fpga: dfl: parse interrupt info for feature devices on enumeration

2020-05-13 Thread Xu Yilun
On Mon, May 11, 2020 at 09:09:07PM -0700, Moritz Fischer wrote: > On Mon, Apr 20, 2020 at 04:11:37PM +0800, Xu Yilun wrote: > > DFL based FPGA devices could support interrupts for different purposes, > > but current DFL framework only supports feature device enumeration with > > given MMIO

  1   2   3   4   5   6   7   8   9   10   >