[PATCH] mmc: sdhci-of-dwcmshc: implement specific set_uhs_signaling

2020-05-13 Thread Jisheng Zhang
We need a different set_uhs_signaling implementation for MMC_TIMING_MMC_HS and MMC_TIMING_MMC_HS400. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 31 - 1 file changed, 30 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 00/17] spi: dw: Add generic DW DMA controller support

2020-05-13 Thread Mark Brown
On Tue, May 12, 2020 at 11:07:33PM +0300, Serge Semin wrote: > On Fri, May 08, 2020 at 02:33:36PM +0100, Mark Brown wrote: > > Please don't make new feature development dependent on conversion to the > > new schema format, there's quite a backlog of reviews of schema > > conversions so it can

Re: [PATCH 00/14] Modularize schedutil

2020-05-13 Thread Greg KH
On Wed, May 13, 2020 at 11:06:11AM +0100, Quentin Perret wrote: > On Wednesday 13 May 2020 at 12:02:13 (+0200), Greg KH wrote: > > It's not significant at all, just always build it in, no one will notice > > it, it's just a page or two. Serial port drivers are way bigger :) > > Alright, I give

Re: [PATCH v4 10/10] loop: Add LOOP_CONFIGURE ioctl

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 09:07:43AM +0200, Martijn Coenen wrote: > On Wed, May 13, 2020 at 4:30 AM Jens Axboe wrote: > > > Looks acceptable to me, but I'm getting a failure applying it to > > > for-5.8/drivers on this patch: > > > > > > Applying: loop: Refactor loop_set_status() size calculation >

Re: [PATCH v8 00/10] Introduce OPP bandwidth bindings

2020-05-13 Thread Viresh Kumar
On 13-05-20, 13:10, Georgi Djakov wrote: > There will be a minor conflict with my branch when this is merged upstream, > so maybe we will need to report it or use an immutable tag/branch. Okay, give me your branch and I will rebase over it then. Or if you can do that over my branch, that will be

Re: [PATCH v8 09/10] dt-bindings: interconnect: Add interconnect-tags bindings

2020-05-13 Thread Viresh Kumar
On 12-05-20, 15:53, Georgi Djakov wrote: > From: Sibi Sankar > > Add interconnect-tags bindings to enable passing of optional > tag information to the interconnect framework. > > Signed-off-by: Sibi Sankar > Signed-off-by: Georgi Djakov > --- > v8: > * New patch, picked from here: >

Re: [PATCH 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children

2020-05-13 Thread Charles Keepax
On Mon, May 11, 2020 at 04:53:32PM +0100, Charles Keepax wrote: > Currently, the only way to remove MFD children is with a call to > mfd_remove_devices, which will remove all the children. Under > some circumstances it is useful to remove only a subset of the > child devices. For example if some

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

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 12:10:37PM +0200, Christoph Hellwig wrote: > Ok. I'll see what went wrong for real and will hopefully have a > different patch for you in a bit. Can you try this patch instead of the previous one? diff --git a/net/core/scm.c b/net/core/scm.c index

[PATCH 1/4] csky: Fixup perf callchain unwind

2020-05-13 Thread guoren
From: Mao Han [ 5221.974084] Unable to handle kernel paging request at virtual address 0xf000, pc: 0x8002c18e [ 5221.985929] Oops: [ 5221.989488] [ 5221.989488] CURRENT PROCESS: [ 5221.989488] [ 5221.992877] COMM=callchain_test PID=11962 [ 5221.995213] TEXT=8000-87e0

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-13 Thread Vinod Koul
On 12-05-20, 12:01, Pierre-Louis Bossart wrote: > > > > > > > > > > > > There isn't any known implementation with more than one controller. > > > > > > > > > > But then it can come in "future" right. So lets try to make it future > > > > > proof by not using the link_id (we can expose that as a

[PATCH 4/4] csky: Fixup remove unnecessary save/restore PSR code

2020-05-13 Thread guoren
From: Guo Ren All processes' PSR could success from SETUP_MMU, so need set it in INIT_THREAD again. And use a3 instead of r7 in __switch_to for code convention. Signed-off-by: Guo Ren --- arch/csky/include/asm/processor.h | 2 -- arch/csky/kernel/asm-offsets.c| 1 -

[PATCH 3/4] csky: Fixup remove duplicate irq_disable

2020-05-13 Thread guoren
From: Liu Yibin Interrupt has been disabled in __schedule() with local_irq_disable() and enabled in finish_task_switch->finish_lock_switch() with local_irq_enabled(), So needn't to disable irq here. Signed-off-by: Liu Yibin Signed-off-by: Guo Ren --- arch/csky/kernel/entry.S | 2 -- 1 file

[PATCH 2/4] csky: Fixup calltrace panic

2020-05-13 Thread guoren
From: Guo Ren The implementation of show_stack will panic with wrong fp: addr= *fp++; because the fp isn't checked properly. The current implementations of show_stack, wchan and stack_trace haven't been designed properly, so just deprecate them. This patch is a reference to riscv's way,

Re: [PATCH v5 1/6] fs: Add support for an O_MAYEXEC flag on openat2(2)

2020-05-13 Thread Mickaël Salaün
On 12/05/2020 23:05, Kees Cook wrote: > On Tue, May 05, 2020 at 05:31:51PM +0200, Mickaël Salaün wrote: >> When the O_MAYEXEC flag is passed, openat2(2) may be subject to >> additional restrictions depending on a security policy managed by the >> kernel through a sysctl or implemented by an LSM

Re: [PATCH v8 00/10] Introduce OPP bandwidth bindings

2020-05-13 Thread Georgi Djakov
Hi Viresh, On 5/13/20 09:55, Viresh Kumar wrote: > On 12-05-20, 15:53, Georgi Djakov wrote: >> Here is a proposal to extend the OPP bindings with bandwidth based on >> a few previous discussions [1] and patchsets from me [2][3] and Saravana >> [4][5][6][7][8][9]. >> >> Changes in v8: >> *

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

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 12:58:11PM +0300, Ido Schimmel wrote: > On Wed, May 13, 2020 at 11:49:08AM +0200, Christoph Hellwig wrote: > > On Wed, May 13, 2020 at 12:29:18PM +0300, Ido Schimmel wrote: > > > On Mon, May 11, 2020 at 01:59:12PM +0200, Christoph Hellwig wrote: > > > > Factor out two

[PATCH 1/2] x86/apb_timer: drop unused TSC calibration

2020-05-13 Thread Johan Hovold
Drop the APB-timer TSC calibration, which hasn't been used since the removal of Moorestown support by commit 1a8359e411eb ("x86/mid: Remove Intel Moorestown"). Signed-off-by: Johan Hovold --- arch/x86/include/asm/apb_timer.h | 2 -- arch/x86/kernel/apb_timer.c | 53

[PATCH 2/2] x86/apb_timer: drop unused declaration and macro

2020-05-13 Thread Johan Hovold
Drop an extern declaration that has never been used and a no longer needed macro. Signed-off-by: Johan Hovold --- arch/x86/include/asm/apb_timer.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/include/asm/apb_timer.h b/arch/x86/include/asm/apb_timer.h index

Re: [RFC PATCH] kunit: Support skipped tests

2020-05-13 Thread Alan Maguire
On Tue, 12 May 2020, David Gow wrote: > This is a proof-of-concept to support "skipping" tests. > Really glad to see skip support; nice work! > The kunit_mark_skipped() macro marks the current test as "skipped", with > the provided reason. The kunit_skip() macro will mark the test as >

[PATCH 0/3] Add LT9611 DSI to HDMI bridge

2020-05-13 Thread Vinod Koul
Hi, This series adds driver and bindings for Lontium LT9611 bridge chip which takes MIPI DSI as input and HDMI as output. This chip can be found in 96boards RB3 platform [1] commonly called DB845c. [1]: https://www.96boards.org/product/rb3-platform/ Vinod Koul (3): dt-bindings:

[PATCH 1/3] dt-bindings: vendor-prefixes: Add Lontium vendor prefix

2020-05-13 Thread Vinod Koul
Add prefix for Lontium Semiconductor Corporation Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH 2/3] dt-bindings: display: bridge: Add documentation for LT9611

2020-05-13 Thread Vinod Koul
Lontium LT9611 is a DSI to HDMI bridge which supports 2 DSI ports and I2S port as input and one HDMI port as output Signed-off-by: Vinod Koul --- .../display/bridge/lontium,lt9611.yaml| 178 ++ 1 file changed, 178 insertions(+) create mode 100644

[PATCH 3/3] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-05-13 Thread Vinod Koul
Lontium Lt9611 is a DSI to HDMI bridge which supports two DSI ports and I2S port as an input and HDMI port as output Co-developed-by: Bjorn Andersson Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- drivers/gpu/drm/bridge/Kconfig | 13 + drivers/gpu/drm/bridge/Makefile |1 +

Re: [PATCH 00/14] Modularize schedutil

2020-05-13 Thread Quentin Perret
On Wednesday 13 May 2020 at 12:02:13 (+0200), Greg KH wrote: > It's not significant at all, just always build it in, no one will notice > it, it's just a page or two. Serial port drivers are way bigger :) Alright, I give up :) When partners will complain (and I think they will) I'll point them

[PATCH 4.19 13/48] 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 4.19 04/48] 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 15/48] net/mlx5: Fix command entry leak in Internal Error State

2020-05-13 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit cece6f432cca9f18900463ed01b97a152a03600a ] Processing commands by cmd_work_handler() while already in Internal Error State will result in entry leak, since the handler process force completion without doorbell. Forced completion doesn't release the entry

[PATCH 4.19 32/48] KVM: VMX: Mark RCX, RDX and RSI as clobbered in vmx_vcpu_run()s asm blob

2020-05-13 Thread Greg Kroah-Hartman
From: Sean Christopherson Based on upstream commit f3689e3f17f064fd4cd5f0cb01ae2395c94f39d9. Save RCX, RDX and RSI to fake outputs to coerce the compiler into treating them as clobbered. RCX in particular is likely to be reused by the compiler to dereference the 'struct vcpu_vmx' pointer,

[PATCH 4.19 00/48] 4.19.123-rc1 review

2020-05-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.123 release. There are 48 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 4.19 07/48] 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:

Re: [PATCH] mm, page_alloc: reset the zone->watermark_boost early

2020-05-13 Thread Charan Teja Kalla
On 5/12/2020 7:01 PM, Charan Teja Kalla wrote: > > Thank you Andrew for the reply. > > On 5/12/2020 1:41 AM, Andrew Morton wrote: >> On Mon, 11 May 2020 19:10:08 +0530 Charan Teja Reddy >> wrote: >> >>> Updating the zone watermarks by any means, like extra_free_kbytes, >>> min_free_kbytes,

[PATCH 4.19 34/48] batman-adv: Fix refcnt leak in batadv_show_throughput_override

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang commit f872de8185acf1b48b954ba5bd8f9bc0a0d14016 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 29/48] staging: gasket: Check the return value of gasket_get_bar_index()

2020-05-13 Thread Greg Kroah-Hartman
From: Oscar Carter commit 769acc3656d93aaacada814939743361d284fd87 upstream. Check the return value of gasket_get_bar_index function as it can return a negative one (-EINVAL). If this happens, a negative index is used in the "gasket_dev->bar_data" array. Addresses-Coverity-ID: 1438542

[PATCH 4.19 26/48] 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 4.19 36/48] batman-adv: Fix refcnt leak in batadv_v_ogm_process

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 6f91a3f7af4186099dd10fa530dd7e0d9c29747d upstream. batadv_v_ogm_process() invokes batadv_hardif_neigh_get(), which returns a reference of the neighbor object to "hardif_neigh" with increased refcount. When batadv_v_ogm_process() returns, "hardif_neigh" becomes invalid,

[PATCH 4.19 17/48] bnxt_en: Fix VF anti-spoof filter setup.

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit c71c4e49afe173823a2a85b0cabc9b3f1176ffa2 ] Fix the logic that sets the enable/disable flag for the source MAC filter according to firmware spec 1.7.1. In the original firmware spec. before 1.7.1, the VF spoof check flags were not latched after making the

[PATCH 4.19 37/48] x86/entry/64: Fix unwind hints in register clearing code

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 06a9750edcffa808494d56da939085c35904e618 upstream. The PUSH_AND_CLEAR_REGS macro zeroes each register immediately after pushing it. If an NMI or exception hits after a register is cleared, but before the UNWIND_HINT_REGS annotation, the ORC unwinder will wrongly

[PATCH 4.19 39/48] x86/entry/64: Fix unwind hints in rewind_stack_do_exit()

2020-05-13 Thread Greg Kroah-Hartman
From: Jann Horn commit f977df7b7ca45a4ac4b66d30a8931d0434c394b1 upstream. The LEAQ instruction in rewind_stack_do_exit() moves the stack pointer directly below the pt_regs at the top of the task stack before calling do_exit(). Tell the unwinder to expect pt_regs. Fixes: 8c1f75587a18

[PATCH 4.19 48/48] ipc/mqueue.c: change __do_notify() to bypass check_kill_permission()

2020-05-13 Thread Greg Kroah-Hartman
From: Oleg Nesterov [ Upstream commit b5f2006144c6ae941726037120fa1001ddede784 ] 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.

[PATCH 4.19 43/48] x86/unwind/orc: Fix premature unwind stoppage due to IRET frames

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 81b67439d147677d844d492fcbd03712ea438f42 upstream. The following execution path is possible: fsnotify() [ realign the stack and store previous SP in R10 ] [ only IRET regs saved ] common_interrupt() interrupt_entry()

[PATCH 4.19 44/48] netfilter: nat: never update the UDP checksum when its 0

2020-05-13 Thread Greg Kroah-Hartman
From: Guillaume Nault commit ea64d8d6c675c0bb712689b13810301de9d8f77a upstream. If the UDP header of a local VXLAN endpoint is NAT-ed, and the VXLAN device has disabled UDP checksums and enabled Tx checksum offloading, then the skb passed to udp_manip_pkt() has hdr->check == 0 (outer checksum

Re: CMA enhancement - non-default areas in x86

2020-05-13 Thread gre...@linuxfoundation.org
On Wed, May 13, 2020 at 09:43:45AM +, Ravich, Leonid wrote: > > On Wed, May 13, 2020 at 08:29:16AM +, Ravich, Leonid wrote: > > > PCIe NTB > > > Documentation/driver-api/ntb.rst > > > > > 1) Basically PCI bridge between to root complex / PCI switches > > > 2) using out of OS memory is one

Re: [PATCH] net/mlx5e: Use IS_ERR() to check and simplify code

2020-05-13 Thread Tang Bin
Hi David: On 2020/5/8 4:18, David Miller wrote: From: Tang Bin Date: Thu, 7 May 2020 19:50:10 +0800 Use IS_ERR() and PTR_ERR() instead of PTR_ZRR_OR_ZERO() to simplify code, avoid redundant judgements. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin Saeed, please pick this up.

[PATCH 4.19 20/48] sctp: Fix bundling of SHUTDOWN with COOKIE-ACK

2020-05-13 Thread Greg Kroah-Hartman
From: Jere Leppänen commit 145cb2f7177d94bc54563ed26027e952ee0ae03c upstream. When we start shutdown in sctp_sf_do_dupcook_a(), we want to bundle the SHUTDOWN with the COOKIE-ACK to ensure that the peer receives them at the same time and in the correct order. This bundling was broken by commit

Re: [PATCH] printk: Add loglevel for "do not print to consoles".

2020-05-13 Thread Petr Mladek
On Wed 2020-05-13 16:58:48, Tetsuo Handa wrote: > On 2020/05/13 15:26, Sergey Senozhatsky wrote: > > Yes, but this looks like it's the consumer of the messages who > > decides what to filter and what not to. rsyslog, dmesg, etc. > > will have different filtering policies. It's not like the kernel

[PATCH 4.19 22/48] USB: uas: add quirk for LaCie 2Big Quadra

2020-05-13 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9f04db234af691007bb785342a06abab5fb34474 upstream. This device needs US_FL_NO_REPORT_OPCODES to avoid going through prolonged error handling on enumeration. Signed-off-by: Oliver Neukum Reported-by: Julian Groß Cc: stable Link:

[PATCH 5.4 14/90] mlxsw: spectrum_acl_tcam: Position vchunk in a vregion list properly

2020-05-13 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 6ef4889fc0b3aa6ab928e7565935ac6f762cee6e ] Vregion helpers to get min and max priority depend on the correct ordering of vchunks in the vregion list. However, the current code always adds new chunk to the end of the list, no matter what the priority is. Fix

[PATCH 5.4 01/90] 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 47/48] scripts/decodecode: fix trapping instruction formatting

2020-05-13 Thread Greg Kroah-Hartman
From: Ivan Delalande commit e08df079b23e2e982df15aa340bfbaf50f297504 upstream. If the trapping instruction contains a ':', for a memory access through segment registers for example, the sed substitution will insert the '*' marker in the middle of the instruction instead of the line address:

[PATCH 4.19 46/48] objtool: Fix stack offset tracking for indirect CFAs

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit d8dd25a461e4eec7190cb9d66616aceacc5110ad upstream. When the current frame address (CFA) is stored on the stack (i.e., cfa->base == CFI_SP_INDIRECT), objtool neglects to adjust the stack offset when there are subsequent pushes or pops. This results in bad ORC data at

[PATCH 4.19 23/48] 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 13/90] ipv6: Use global sernum for dst validation with nexthop objects

2020-05-13 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit 8f34e53b60b337e559f1ea19e2780ff95ab2fa65 ] Nik reported a bug with pcpu dst cache when nexthop objects are used illustrated by the following: $ ip netns add foo $ ip -netns foo li set lo up $ ip -netns foo addr add 2001:db8:11::1/128 dev lo $

[PATCH 5.4 16/90] net: dsa: Do not leave DSA master with NULL netdev_ops

2020-05-13 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit 050569fc8384c8056bacefcc246bcb2dfe574936 ] When ndo_get_phys_port_name() for the CPU port was added we introduced an early check for when the DSA master network device in dsa_master_ndo_setup() already implements ndo_get_phys_port_name(). When we perform

[PATCH 5.4 03/90] nvme: fix possible hang when ns scanning fails during error recovery

2020-05-13 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit 59c7c3caaaf8750df4ec3255082f15eb4e371514 ] When the controller is reconnecting, the host fails I/O and admin commands as the host cannot reach the controller. ns scanning may revalidate namespaces during that period and it is wrong to remove namespaces due

[PATCH 5.4 02/90] nvme: refactor nvme_identify_ns_descs error handling

2020-05-13 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit fb314eb0cbb2e11540d1ae1a7b28346397f621ef ] Move the handling of an error into the function from the caller, and only do it for an actual error on the admin command itself, not the command parsing, as that should be enough to deal with devices claiming a

[PATCH 5.4 37/90] 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 5.4 33/90] 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 5.4 25/90] 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 5.4 31/90] bnxt_en: Fix VF anti-spoof filter setup.

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit c71c4e49afe173823a2a85b0cabc9b3f1176ffa2 ] Fix the logic that sets the enable/disable flag for the source MAC filter according to firmware spec 1.7.1. In the original firmware spec. before 1.7.1, the VF spoof check flags were not latched after making the

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

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 12:29:18PM +0300, Ido Schimmel wrote: > 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

[PATCH 5.4 55/90] 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 5.4 40/90] net: mvpp2: cls: Prevent buffer overflow in mvpp2_ethtool_cls_rule_del()

2020-05-13 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 722c0f00d4feea77475a5dc943b53d60824a1e4e ] The "info->fs.location" is a u32 that comes from the user via the ethtool_set_rxnfc() function. We need to check for invalid values to prevent a buffer overflow. I copy and pasted this check from the

[PATCH 5.4 58/90] epoll: atomically remove wait entry on wake up

2020-05-13 Thread Greg Kroah-Hartman
From: Roman Penyaev commit 412895f03cbf9633298111cb4dfde13b7720e2c5 upstream. This patch does two things: - fixes a lost wakeup introduced by commit 339ddb53d373 ("fs/epoll: remove unnecessary wakeups of nested epoll") - improves performance for events delivery. The description of the

[PATCH 5.4 39/90] net: mvpp2: prevent buffer overflow in mvpp22_rss_ctx()

2020-05-13 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 39bd16df7c31bb8cf5dfd0c88e42abd5ae10029d ] The "rss_context" variable comes from the user via ethtool_get_rxfh(). It can be any u32 value except zero. Eventually it gets passed to mvpp22_rss_ctx() and if it is over MVPP22_N_RSS_TABLES (8) then it results

[PATCH 5.4 56/90] drm: ingenic-drm: add MODULE_DEVICE_TABLE

2020-05-13 Thread Greg Kroah-Hartman
From: H. Nikolaus Schaller commit c59359a02d14a7256cd508a4886b7d2012df2363 upstream. so that the driver can load by matching the device tree if compiled as module. Cc: sta...@vger.kernel.org # v5.3+ Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed-off-by: H.

Re: [PATCH 00/14] Modularize schedutil

2020-05-13 Thread Greg KH
On Wed, May 13, 2020 at 10:41:17AM +0100, Quentin Perret wrote: > 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 >

[PATCH 5.4 49/90] 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

Re: [RFC Patch v1 2/4] irqchip/gic-v3: Add support to handle SGI as pseudo NMI

2020-05-13 Thread Sumit Garg
Hi Marc, On Tue, 5 May 2020 at 17:03, Sumit Garg wrote: > > On Tue, 5 May 2020 at 15:38, Marc Zyngier wrote: > > > > On 2020-05-05 05:09, Sumit Garg wrote: > > > On Fri, 1 May 2020 at 18:33, Sumit Garg wrote: > > > > [...] > > > > > In case there are no major objections to this approach, I

[PATCH 5.4 66/90] riscv: set max_pfn to the PFN of the last page

2020-05-13 Thread Greg Kroah-Hartman
From: Vincent Chen commit c749bb2d554825e007cbc43b791f54e124dadfce upstream. The current max_pfn equals to zero. In this case, I found it caused users cannot get some page information through /proc such as kpagecount in v5.6 kernel because of new sanity checks. The following message is

[PATCH 5.4 77/90] 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 78/90] x86/unwind/orc: Fix premature unwind stoppage due to IRET frames

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 81b67439d147677d844d492fcbd03712ea438f42 upstream. The following execution path is possible: fsnotify() [ realign the stack and store previous SP in R10 ] [ only IRET regs saved ] common_interrupt() interrupt_entry()

[PATCH 5.4 71/90] batman-adv: Fix refcnt leak in batadv_v_ogm_process

2020-05-13 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 6f91a3f7af4186099dd10fa530dd7e0d9c29747d upstream. batadv_v_ogm_process() invokes batadv_hardif_neigh_get(), which returns a reference of the neighbor object to "hardif_neigh" with increased refcount. When batadv_v_ogm_process() returns, "hardif_neigh" becomes invalid,

[PATCH 5.4 79/90] KVM: x86: Fixes posted interrupt check for IRQs delivery modes

2020-05-13 Thread Greg Kroah-Hartman
From: Suravee Suthikulpanit commit 637543a8d61c6afe4e9be64bfb43c78701a83375 upstream. Current logic incorrectly uses the enum ioapic_irq_destination_types to check the posted interrupt destination types. However, the value was set using APIC_DM_XXX macros, which are left-shifted by 8 bits.

[PATCH 5.4 76/90] 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 5.4 68/90] 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 5.4 73/90] 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 5.4 46/90] USB: uas: add quirk for LaCie 2Big Quadra

2020-05-13 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9f04db234af691007bb785342a06abab5fb34474 upstream. This device needs US_FL_NO_REPORT_OPCODES to avoid going through prolonged error handling on enumeration. Signed-off-by: Oliver Neukum Reported-by: Julian Groß Cc: stable Link:

[PATCH 5.4 74/90] x86/entry/64: Fix unwind hints in rewind_stack_do_exit()

2020-05-13 Thread Greg Kroah-Hartman
From: Jann Horn commit f977df7b7ca45a4ac4b66d30a8931d0434c394b1 upstream. The LEAQ instruction in rewind_stack_do_exit() moves the stack pointer directly below the pt_regs at the top of the task stack before calling do_exit(). Tell the unwinder to expect pt_regs. Fixes: 8c1f75587a18

[PATCH 5.4 90/90] fanotify: merge duplicate events on parent and child

2020-05-13 Thread Greg Kroah-Hartman
From: Amir Goldstein [ Upstream commit f367a62a7cad2447d835a9f14fc63997a9137246 ] With inotify, when a watch is set on a directory and on its child, an event on the child is reported twice, once with wd of the parent watch and once with wd of the child watch without the filename. With

[PATCH 5.4 86/90] mm, memcg: fix error return value of mem_cgroup_css_alloc()

2020-05-13 Thread Greg Kroah-Hartman
From: Yafang Shao commit 11d6761218d19ca06ae5387f4e3692c4fa9e7493 upstream. When I run my memcg testcase which creates lots of memcgs, I found there're unexpected out of memory logs while there're still enough available free memory. The error log is mkdir: cannot create directory

[PATCH 5.6 021/118] net: bridge: vlan: Add a schedule point during VLAN processing

2020-05-13 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 7979457b1d3a069cd857f5bd69e070e30223dd0c ] User space can request to delete a range of VLANs from a bridge slave in one netlink request. For each deleted VLAN the FDB needs to be traversed in order to flush all the affected entries. If a large range of

[PATCH 5.6 013/118] cxgb4: fix EOTID leak when disabling TC-MQPRIO offload

2020-05-13 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 69422a7e5d578aab277091f4ebb7c1b387f3e355 ] Under heavy load, the EOTID termination FLOWC request fails to get enqueued to the end of the Tx ring due to lack of credits. This results in EOTID leak. When disabling TC-MQPRIO offload, the link is already

[PATCH 5.6 014/118] devlink: Fix reporters recovery condition

2020-05-13 Thread Greg Kroah-Hartman
From: Aya Levin [ Upstream commit bea0c5c942d3b4e9fb6ed45f6a7de74c6b112437 ] Devlink health core conditions the reporter's recovery with the expiration of the grace period. This is not relevant for the first recovery. Explicitly demand that the grace period will only apply to recoveries other

[PATCH 5.6 020/118] 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.6 010/118] nvme: fix possible hang when ns scanning fails during error recovery

2020-05-13 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit 59c7c3caaaf8750df4ec3255082f15eb4e371514 ] When the controller is reconnecting, the host fails I/O and admin commands as the host cannot reach the controller. ns scanning may revalidate namespaces during that period and it is wrong to remove namespaces due

[PATCH 5.4 84/90] iommu/virtio: Reverse arguments to list_add

2020-05-13 Thread Greg Kroah-Hartman
From: Julia Lawall commit fb3637a113349f53830f7d6ca45891b7192cd28f upstream. Elsewhere in the file, there is a list_for_each_entry with >resv_regions as the second argument, suggesting that >resv_regions is the list head. So exchange the arguments on the list_add call to put the list head in

Re: [PATCH v5 3/7] fpga: dfl: introduce interrupt trigger setting API

2020-05-13 Thread Xu Yilun
On Mon, May 11, 2020 at 09:16:34PM -0700, Moritz Fischer wrote: > On Mon, Apr 20, 2020 at 04:11:39PM +0800, Xu Yilun wrote: > > FPGA user applications may be interested in interrupts generated by > > DFL features. For example, users can implement their own FPGA > > logics with interrupts enabled

[PATCH 5.4 89/90] fsnotify: replace inode pointer with an object id

2020-05-13 Thread Greg Kroah-Hartman
From: Amir Goldstein [ Upstream commit dfc2d2594e4a79204a3967585245f00644b8f838 ] The event inode field is used only for comparison in queue merges and cannot be dereferenced after handle_event(), because it does not hold a refcount on the inode. Replace it with an abstract id to do the same

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

2020-05-13 Thread Andy Shevchenko
On Wed, May 13, 2020 at 12:24 PM Jishnu Prakash wrote: > > 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

[PATCH 5.4 88/90] bdi: add a ->dev_name field to struct backing_dev_info

2020-05-13 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit 6bd87eec23cbc9ed222bed0f5b5b02bf300e9a8d ] Cache a copy of the name for the life time of the backing_dev_info structure so that we can reference it even after unregistering. Fixes: 68f23b89067f ("memcg: fix a crash in wb_workfn when a device

[PATCH 5.6 007/118] ext4: dont set dioread_nolock by default for blocksize < pagesize

2020-05-13 Thread Greg Kroah-Hartman
From: Ritesh Harjani commit 626b035b816b61a7a7b4d2205a6807e2f11a18c1 upstream. Currently on calling echo 3 > drop_caches on host machine, we see FS corruption in the guest. This happens on Power machine where blocksize < pagesize. So as a temporary workaound don't enable dioread_nolock by

[PATCH 5.6 039/118] 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.6 037/118] selftests: net: tcp_mmap: clear whole tcp_zerocopy_receive struct

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit bf5525f3a8e3248be5aa5defe5aaadd60e1c1ba1 ] We added fields in tcp_zerocopy_receive structure, so make sure to clear all fields to not pass garbage to the kernel. We were lucky because recent additions added 'out' parameters, still we need to clean our

[PATCH 5.6 027/118] net: phy: marvell10g: fix temperature sensor on 2110

2020-05-13 Thread Greg Kroah-Hartman
From: Baruch Siach [ Upstream commit c3e302edca2457bbd0c958c445a7538fbf6a6ac8 ] Read the temperature sensor register from the correct location for the 88E2110 PHY. There is no enable/disable bit on 2110, so make mv3310_hwmon_config() run on 88X3310 only. Fixes: 62d01535474b61 ("net: phy:

[PATCH 5.6 041/118] bnxt_en: Fix VF anti-spoof filter setup.

2020-05-13 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit c71c4e49afe173823a2a85b0cabc9b3f1176ffa2 ] Fix the logic that sets the enable/disable flag for the source MAC filter according to firmware spec 1.7.1. In the original firmware spec. before 1.7.1, the VF spoof check flags were not latched after making the

Re: Kmemleak infrastructure improvement for task_struct leaks and call_rcu()

2020-05-13 Thread Catalin Marinas
On Tue, May 12, 2020 at 02:09:30PM -0400, Qian Cai wrote: > > > > On May 12, 2020, at 10:15 AM, Catalin Marinas > > wrote: > > > > In this case it uses kref_get() to increment the refcount. We could add > > a kmemleak_add_trace() which allocates a new array and stores the stack > > trace,

Re: [PATCH net-next 4/4] net: bcmgenet: add support for ethtool flow control

2020-05-13 Thread Russell King - ARM Linux admin
On Mon, May 11, 2020 at 05:24:10PM -0700, Doug Berger wrote: > diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c > b/drivers/net/ethernet/broadcom/genet/bcmmii.c > index 511d553a4d11..788da1ecea0c 100644 > --- a/drivers/net/ethernet/broadcom/genet/bcmmii.c > +++

[PATCH 5.6 042/118] 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.6 009/118] nvme: refactor nvme_identify_ns_descs error handling

2020-05-13 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit fb314eb0cbb2e11540d1ae1a7b28346397f621ef ] Move the handling of an error into the function from the caller, and only do it for an actual error on the admin command itself, not the command parsing, as that should be enough to deal with devices claiming a

[PATCH 5.6 035/118] 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

<    8   9   10   11   12   13   14   15   16   17   >