[PATCH 5.10 002/103] mtd: rawnand: mtk: Fix WAITRDY break condition and timeout

2021-04-19 Thread Greg Kroah-Hartman
From: Hauke Mehrtens [ Upstream commit 2fb164f0ce95e504e2688b4f984893c29ebd19ab ] This fixes NAND_OP_WAITRDY_INSTR operation in the driver. Without this change the driver waits till the system is busy, but we should wait till the busy flag is cleared. The readl_poll_timeout() function gets a

[PATCH 5.10 017/103] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-04-19 Thread Greg Kroah-Hartman
From: Wang Qing [ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ] The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing Signed-off-by: Vineet Gupta Signed-off-by: Sasha

[PATCH 5.10 018/103] iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd()

2021-04-19 Thread Greg Kroah-Hartman
From: Jiri Kosina [ Upstream commit 2800aadc18a64c96b051bcb7da8a7df7d505db3f ] It's possible for iwl_pcie_enqueue_hcmd() to be called with hard IRQs disabled (e.g. from LED core). We can't enable BHs in such a situation. Turn the unconditional BH-enable/BH-disable code into

[PATCH 5.10 019/103] xfrm: BEET mode doesnt support fragments for inner packets

2021-04-19 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 68dc022d04eb0fd60a540e242dcb11ec1bee07e2 ] BEET mode replaces the IP(6) Headers with new IP(6) Headers when sending packets. However, when it's a fragment before the replacement, currently kernel keeps the fragment flag and replace the address field then encaps

[PATCH 5.10 016/103] lockdep: Add a missing initialization hint to the "INFO: Trying to register non-static key" message

2021-04-19 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit 3a85969e9d912d5dd85362ee37b5f81266e00e77 ] Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest to developers to check whether initialization functions for

[PATCH 5.10 015/103] ARM: dts: Fix moving mmc devices with aliases for omap4 & 5

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 77335a040178a0456d4eabc8bf17a7ca3ee4a327 ] Fix moving mmc devices with dts aliases as discussed on the lists. Without this we now have internal eMMC mmc1 show up as mmc2 compared to the earlier order of devices. Signed-off-by: Tony Lindgren Signed-off-by:

[PATCH 5.10 014/103] ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 140a776833957539c84301dbdb4c3013876de118 ] We have a duplicate legacy clock defined for sha2md5_fck that can sometimes race with clk_disable() with the dts configured clock for OMAP4_SHA2MD5_CLKCTRL when unused clocks are disabled during boot causing an

[PATCH 5.10 013/103] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()

2021-04-19 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki [ Upstream commit 6998a8800d73116187aad542391ce3b2dd0f9e30 ] Commit 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") attempted to address an issue with reserving the memory occupied by ACPI tables, but it broke the initrd-based table override

[PATCH 5.10 012/103] dmaengine: idxd: fix wq cleanup of WQCFG registers

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit ea9aadc06a9f10ad20a90edc0a484f1147d88a7a ] A pre-release silicon erratum workaround where wq reset does not clear WQCFG registers was leaked into upstream code. Use wq reset command instead of blasting the MMIO region. This also address an issue where we

[PATCH 5.10 011/103] dmaengine: plx_dma: add a missing put_device() on error path

2021-04-19 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 07503e6aefe4a6efd777062191944a14f03b3a18 ] Add a missing put_device(>dev) if the call to dma_async_device_register(dma); fails. Fixes: 905ca51e63be ("dmaengine: plx-dma: Introduce PLX DMA engine PCI driver skeleton") Signed-off-by: Dan Carpenter

[PATCH 5.10 010/103] dmaengine: Fix a double free in dma_async_device_register

2021-04-19 Thread Greg Kroah-Hartman
From: Lv Yunlong [ Upstream commit ea45b6008f8095db0cc09ad6e03c7785c2986197 ] In the first list_for_each_entry() macro of dma_async_device_register, it gets the chan from list and calls __dma_async_device_channel_register (..,chan). We can see that chan->local is allocated by alloc_percpu() and

[PATCH 5.10 001/103] net/sctp: fix race condition in sctp_destroy_sock

2021-04-19 Thread Greg Kroah-Hartman
_close. This addresses CVE-2021-23133. Reported-by: Or Cohen Reviewed-by: Xin Long Fixes: 610236587600 ("bpf: Add new cgroup attach type to enable sock modifications") Signed-off-by: Or Cohen Acked-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-H

[PATCH 5.11 109/122] arm64: dts: allwinner: h6: beelink-gs1: Remove ext. 32 kHz osc reference

2021-04-19 Thread Greg Kroah-Hartman
From: Jernej Skrabec [ Upstream commit 7a2f6e69e9c1060a7a09c1f8322ccb8d942b3078 ] Although every Beelink GS1 seems to have external 32768 Hz oscillator, it works only on one from four tested. There are more reports of RTC issues elsewhere, like Armbian forum. One Beelink GS1 owner read RTC osc

[PATCH 5.11 100/122] ch_ktls: tcb close causes tls connection failure

2021-04-19 Thread Greg Kroah-Hartman
t;) Signed-off-by: Vinay Kumar Yadav Signed-off-by: Rohit Maheshwari Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 19 -- 1 file changed, 19 deletions(-) --- a/drivers/net/ethernet/chelsio/inl

[PATCH 5.11 108/122] arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems

2021-04-19 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit 3dd4ce4185df6798dcdcc3669bddb35899d7d5e1 ] Commit 941432d00768 ("arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card") enabled the card detect GPIO for the SOPine module, along the way with the Pine64-LTS, which share the same base .dtsi.

[PATCH 5.11 107/122] ARM: OMAP2+: Fix uninitialized sr_inst

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit fc85dc42a38405099f97aa2af709fe9504a82508 ] Fix uninitialized sr_inst. Fixes: fbfa463be8dc ("ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data") Reported-by: kernel test robot Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin

[PATCH 5.11 105/122] ARM: 9069/1: NOMMU: Fix conversion for_each_membock() to for_each_mem_range()

2021-04-19 Thread Greg Kroah-Hartman
From: Vladimir Murzin [ Upstream commit 45c2f70cba3a7eff34574103b2e2b901a5f771aa ] for_each_mem_range() uses a loop variable, yet looking into code it is not just iteration counter but more complex entity which encodes information about memblock. Thus condition i == 0 looks fragile. Indeed, it

[PATCH 5.11 104/122] ARM: 9063/1: mm: reduce maximum number of CPUs if DEBUG_KMAP_LOCAL is enabled

2021-04-19 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit d624833f5984d484c5e3196f34b926f9e71dafee ] The debugging code for kmap_local() doubles the number of per-CPU fixmap slots allocated for kmap_local(), in order to use half of them as guard regions. This causes the fixmap region to grow downwards beyond the

[PATCH 5.11 106/122] ARM: footbridge: fix PCI interrupt mapping

2021-04-19 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 30e3b4f256b4e366a61658c294f6a21b8626dda7 ] Since commit 30fdfb929e82 ("PCI: Add a call to pci_assign_irq() in pci_device_probe()"), the PCI code will call the IRQ mapping function whenever a PCI driver is probed. If these are marked as __init, this causes an

[PATCH 5.11 103/122] ARM: OMAP2+: Fix warning for omap_init_time_of()

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit a3efe3f6d0eb64363f74af4b0e8ba6d19415cef2 ] Fix warning: no previous prototype for 'omap_init_time_of'. Fixes: e69b4e1a7577 ("ARM: OMAP2+: Add omap_init_time_of()") Reported-by: kernel test robot Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin

[PATCH 5.11 122/122] bpf: Move sanitize_val_alu out of op switch

2021-04-19 Thread Greg Kroah-Hartman
both. Signed-off-by: Daniel Borkmann Reviewed-by: John Fastabend Acked-by: Alexei Starovoitov Signed-off-by: Greg Kroah-Hartman --- kernel/bpf/verifier.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c

[PATCH 5.11 121/122] bpf: Improve verifier error messages for users

2021-04-19 Thread Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman --- kernel/bpf/verifier.c | 86 -- 1 file changed, 63 insertions(+), 23 deletions(-) --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -5384,6 +5384,14 @@ static struct bpf_insn_aux_data *cur_aux

[PATCH 5.11 118/122] bpf: Move off_reg into sanitize_ptr_alu

2021-04-19 Thread Greg Kroah-Hartman
From: Daniel Borkmann [ Upstream commit 6f55b2f2a1178856c19bbce2f71449926e731914 ] Small refactor to drag off_reg into sanitize_ptr_alu(), so we later on can use off_reg for generalizing some of the checks for all pointer types. Signed-off-by: Daniel Borkmann Reviewed-by: John Fastabend

[PATCH 5.11 120/122] bpf: Rework ptr_limit into alu_limit and add common error path

2021-04-19 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit b658bbb844e28f1862867f37e8ca11a8e2aa94a3 upstream. Small refactor with no semantic changes in order to consolidate the max ptr_limit boundary check. Signed-off-by: Daniel Borkmann Reviewed-by: John Fastabend Acked-by: Alexei Starovoitov Signed-off-by: Greg Kroah

[PATCH 5.11 119/122] ARM: 9071/1: uprobes: Dont hook on thumb instructions

2021-04-19 Thread Greg Kroah-Hartman
are not permanently undefined. Signed-off-by: Fredrik Strupe Cc: sta...@vger.kernel.org Fixes: c7edc9e326d5 ("ARM: add uprobes support") Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/probes/uprobes/core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---

[PATCH 5.11 117/122] bpf: Ensure off_reg has no mixed signed bounds for all types

2021-04-19 Thread Greg Kroah-Hartman
From: Daniel Borkmann [ Upstream commit 24c109bb1537c12c02aeed2d51a347b4d6a9b76e ] The mixed signed bounds check really belongs into retrieve_ptr_limit() instead of outside of it in adjust_ptr_min_max_vals(). The reason is that this check is not tied to PTR_TO_MAP_VALUE only, but to all pointer

[PATCH 5.11 102/122] gro: ensure frag0 meets IP header alignment

2021-04-19 Thread Greg Kroah-Hartman
son Wang Acked-by: Michael S. Tsirkin Tested-by: Guenter Roeck Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/core/dev.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5877,7 +5877,8 @@ static void skb_gro_reset_offset(

[PATCH 5.11 115/122] r8169: tweak max read request size for newer chips also in jumbo mtu mode

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 5e00e16cb98935bcf06f51931876d898c226f65c ] So far we don't increase the max read request size if we switch to jumbo mode before bringing up the interface for the first time. Let's change this. Signed-off-by: Heiner Kallweit Signed-off-by: Jakub Kicinski

[PATCH 5.11 116/122] r8169: dont advertise pause in jumbo mode

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 453a77894efa4d9b6ef9644d74b9419c47ac427c ] It has been reported [0] that using pause frames in jumbo mode impacts performance. There's no available chip documentation, but vendor drivers r8168 and r8125 don't advertise pause in jumbo mode. So let's do the

[PATCH 5.11 114/122] kasan: remove redundant config option

2021-04-19 Thread Greg Kroah-Hartman
From: Walter Wu [ Upstream commit 02c587733c8161355a43e6e110c2e29bd0acff72 ] CONFIG_KASAN_STACK and CONFIG_KASAN_STACK_ENABLE both enable KASAN stack instrumentation, but we should only need one config, so that we remove CONFIG_KASAN_STACK_ENABLE and make CONFIG_KASAN_STACK workable. see [1].

[PATCH 5.11 113/122] kasan: fix hwasan build for gcc

2021-04-19 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 5c595ac4c776c44b5c59de22ab43b3fe256d9fbb ] gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes possible to enable CONFIG_KASAN_SW_TAGS. Unfortunately this fails to build at the moment, because the corresponding command line arguments use

[PATCH 5.11 112/122] KVM: VMX: Dont use vcpu->run->internal.ndata as an array index

2021-04-19 Thread Greg Kroah-Hartman
From: Reiji Watanabe [ Upstream commit 04c4f2ee3f68c9a4bf1653d15f1a9a435ae33f7a ] __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for an array access. Since vcpu->run is (can be) mapped to a user address space with a writer permission, the 'ndata' could be updated by the user

[PATCH 5.11 111/122] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2021-04-19 Thread Greg Kroah-Hartman
From: Sean Christopherson [ Upstream commit 8e53324021645f820a01bf8aa745711c802c8542 ] Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0, and single-bit modifiers in bits 31:16. Historically,

[PATCH 5.11 101/122] ch_ktls: do not send snd_una update to TCB in middle

2021-04-19 Thread Greg Kroah-Hartman
in un-acked TCP seq number, later causes problem in sending out complete record. Fixes: 429765a149f1 ("chcr: handle partial end part of a record") Signed-off-by: Vinay Kumar Yadav Signed-off-by: Rohit Maheshwari Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- d

[PATCH 5.11 110/122] bpf: Use correct permission flag for mixed signed bounds arithmetic

2021-04-19 Thread Greg Kroah-Hartman
From: Daniel Borkmann [ Upstream commit 9601148392520e2e134936e76788fc2a6371e7be ] We forbid adding unknown scalars with mixed signed bounds due to the spectre v1 masking mitigation. Hence this also needs bypass_spec_v1 flag instead of allow_ptr_leaks. Fixes: 2c78ee898d8f ("bpf: Implement

[PATCH 5.11 062/122] arm64: fix inline asm in load_unaligned_zeropad()

2021-04-19 Thread Greg Kroah-Hartman
-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/word-at-a-time.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/arch/arm64/include/asm/word-at-a-time.h +++ b/arch/arm64/include/asm/word-at-a-time.h @@ -53,7 +53,7 @@ static inline unsigned long

[PATCH 5.11 098/122] ch_ktls: Fix kernel panic

2021-04-19 Thread Greg Kroah-Hartman
cxgb4/chcr: complete record tx handling") Signed-off-by: Vinay Kumar Yadav Signed-off-by: Rohit Maheshwari Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 24 ++ 1 file changed, 5 insertions(+), 19

[PATCH 5.11 070/122] ixgbe: fix unbalanced device enable/disable in suspend/resume

2021-04-19 Thread Greg Kroah-Hartman
thread_park+0x90/0x90 ret_from_fork+0x1f/0x30 Fixes: 6f82b2558735 ("ixgbe: use generic power management") Signed-off-by: Yongxin Liu Tested-by: Dave Switzer Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |5 + 1

[PATCH 5.11 071/122] netfilter: flowtable: fix NAT IPv6 offload mangling

2021-04-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit 0e07e25b481aa021e4b48085ecb8a049e9614510 upstream. Fix out-of-bound access in the address array. Fixes: 5c27d8d76ce8 ("netfilter: nf_flow_table_offload: add IPv6 support") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net

[PATCH 5.11 069/122] ixgbe: Fix NULL pointer dereference in ethtool loopback test

2021-04-19 Thread Greg Kroah-Hartman
Alexander Duyck Acked-by: Björn Töpel Tested-by: Dave Switzer Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++

[PATCH 5.11 068/122] drm/vmwgfx: Make sure we unpin no longer needed buffers

2021-04-19 Thread Greg Kroah-Hartman
4/?series=86052=1 Cc: Huang Rui Cc: Christian König Cc: Daniel Vetter Cc: Christian Koenig Cc: dri-de...@lists.freedesktop.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |2 ++ drivers/gpu/drm/vmwgfx/vmwgfx_mob.c |4 2 files changed, 6 insertions(+) -

[PATCH 5.11 066/122] riscv: Fix spelling mistake "SPARSEMEM" to "SPARSMEM"

2021-04-19 Thread Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman --- arch/riscv/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -147,7 +147,7 @@ config ARCH_FLATMEM_ENABLE config ARCH_SPARSEMEM_ENABLE def_bool y depends on MMU -

[PATCH 5.11 067/122] scsi: libsas: Reset num_scatter if libata marks qc as NODATA

2021-04-19 Thread Greg Kroah-Hartman
: Jolly Shah Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/libsas/sas_ata.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -201,18 +201,17 @@ static unsigned int

[PATCH 5.11 096/122] ibmvnic: remove duplicate napi_schedule call in do_reset function

2021-04-19 Thread Greg Kroah-Hartman
et to call napi_schedule again at the end of the function though napi_schedule will neglect the request if napi is already scheduled. Fixes: ed651a10875f ("ibmvnic: Updated reset handling") Signed-off-by: Lijun Pan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.11 099/122] ch_ktls: fix device connection close

2021-04-19 Thread Greg Kroah-Hartman
on this connection. Fixes: 5a4b9fe7fece ("cxgb4/chcr: complete record tx handling") Signed-off-by: Vinay Kumar Yadav Signed-off-by: Rohit Maheshwari Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c |6

[PATCH 5.11 097/122] ibmvnic: remove duplicate napi_schedule call in open function

2021-04-19 Thread Greg Kroah-Hartman
t;) Signed-off-by: Lijun Pan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmvnic.c |5 - 1 file changed, 5 deletions(-) --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1187,11 +1187,6 @@

[PATCH 5.11 095/122] ibmvnic: avoid calling napi_disable() twice

2021-04-19 Thread Greg Kroah-Hartman
ich checks if napi is disabled or not before calling napi_disable. Fixes: bfc32f297337 ("ibmvnic: Move resource initialization to its own routine") Suggested-by: Thomas Falcon Signed-off-by: Lijun Pan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net

[PATCH 5.11 093/122] ia64: remove duplicate entries in generic_defconfig

2021-04-19 Thread Greg Kroah-Hartman
by: Randy Dunlap Reported-by: Geert Uytterhoeven Reviewed-by: Christoph Hellwig Cc: Tony Luck Cc: Fenghua Yu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/ia64/configs/generic_defconfig |2 -- 1 file changed, 2 deletions(-) --- a/a

[PATCH 5.11 094/122] ia64: tools: remove inclusion of ia64-specific version of errno.h header

2021-04-19 Thread Greg Kroah-Hartman
h was just a wrapper for the generic header. Fixes: c25f867ddd00 ("ia64: remove unneeded uapi asm-generic wrappers") Signed-off-by: John Paul Adrian Glaubitz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- tools/include/uapi/asm/errno

[PATCH 5.11 092/122] ethtool: pause: make sure we init driver stats

2021-04-19 Thread Greg Kroah-Hartman
are initialized to "not set" (which is -1) so the dumping code skips them. Fixes: 9a27a33027f2 ("ethtool: add standard pause stats") Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ethtool/pause.c |8 1 file c

[PATCH 5.11 065/122] vfio/pci: Add missing range check in vfio_pci_mmap

2021-04-19 Thread Greg Kroah-Hartman
Signed-off-by: Christian A. Ehrhardt Message-Id: <20210412214124.ga241...@lisa.in-ulm.de> Reviewed-by: David Gibson Reviewed-by: Cornelia Huck Signed-off-by: Alex Williamson Signed-off-by: Greg Kroah-Hartman --- drivers/vfio/pci/vfio_pci.c |4 +++- 1 file changed, 3 insertion

[PATCH 5.11 091/122] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-19 Thread Greg Kroah-Hartman
quot;) Co-developed-by: Shujin Li Signed-off-by: Shujin Li Signed-off-by: Jason Xing Reviewed-by: Jesse Brandeburg Acked-by: Jesper Dangaard Brouer Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e_main.c |6 ++ 1 file changed, 6

[PATCH 5.11 090/122] ibmvnic: correctly use dev_consume/free_skb_irq

2021-04-19 Thread Greg Kroah-Hartman
calls") Suggested-by: Thomas Falcon Signed-off-by: Lijun Pan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmvnic.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/et

[PATCH 5.11 089/122] net: Make tcp_allowed_congestion_control readonly in non-init netns

2021-04-19 Thread Greg Kroah-Hartman
access the struct net. Fixes: 9cb8e048e5d9 ("net/ipv4/sysctl: show tcp_{allowed, available}_congestion_control in non-initial netns") Signed-off-by: Jonathon Reinhart Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/sysctl_net_ipv4.c | 16 +

[PATCH 5.11 088/122] mm: ptdump: fix build failure

2021-04-19 Thread Greg Kroah-Hartman
Fixes: 30d621f6723b ("mm: add generic ptdump") Signed-off-by: Christophe Leroy Cc: Steven Price Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- mm/ptdump.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/ptdump

[PATCH 5.11 086/122] net: sit: Unregister catch-all devices

2021-04-19 Thread Greg Kroah-Hartman
f-by: Greg Kroah-Hartman --- net/ipv6/sit.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1867,9 +1867,9 @@ static void __net_exit sit_destroy_tunne if (dev->rtnl_link_ops

[PATCH 5.11 087/122] net: ip6_tunnel: Unregister catch-all devices

2021-04-19 Thread Greg Kroah-Hartman
ev Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ip6_tunnel.c | 10 ++ 1 file changed, 10 insertions(+) --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -2244,6 +2244,16 @@ static void __net_exit ip6_tnl_destroy_t

[PATCH 5.11 084/122] net: davicom: Fix regulator not turned off on failed probe

2021-04-19 Thread Greg Kroah-Hartman
missed one case. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/davicom/dm9000.c |6 -- 1 file changed, 4 insert

[PATCH 5.11 085/122] net: phy: marvell: fix detection of PHY on Topaz switches

2021-04-19 Thread Greg Kroah-Hartman
ewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/mv88e6xxx/chip.c | 30 +- drivers/net/phy/marvell.c| 32 +--- include/linux/marvell_phy.h |5 +++-- 3 files ch

[PATCH 5.11 083/122] net/mlx5e: Fix setting of RS FEC mode

2021-04-19 Thread Greg Kroah-Hartman
-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en/port.c | 23 +++--- 1 file changed, 4 insertions(+), 19 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en/port.c +++ b/drivers/net/ethernet/mellanox/mlx5/core

[PATCH 5.11 082/122] netfilter: nftables: clone set element expression template

2021-04-19 Thread Greg Kroah-Hartman
ported-by: Laura Garcia Liebana Fixes: 409444522976 ("netfilter: nf_tables: add elements with stateful expressions") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nf_tables_api.c | 46 +++--- 1 file change

[PATCH 5.11 064/122] arm64: alternatives: Move length validation in alternative_{insn, endif}

2021-04-19 Thread Greg Kroah-Hartman
Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/alternative-macros.h |8 1 file changed, 4 insertions(+), 4 deletions(-) --- a/arch/arm64/include/asm/alternative-macros.h +++ b/arch/arm64/include/asm/alternative-macros.h @@ -97,

[PATCH 5.11 081/122] netfilter: nft_limit: avoid possible divide error in nft_limit_init

2021-04-19 Thread Greg Kroah-Hartman
Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nft_limit.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/netfilter/nft_limit.c +++ b/net/netfilter/nft_limit.c @@ -76,13 +76,13 @@ static int nft_limit_init(struct nft_lim

[PATCH 5.11 077/122] libbpf: Fix potential NULL pointer dereference

2021-04-19 Thread Greg Kroah-Hartman
ink: https://lore.kernel.org/bpf/20210408052009.7844-1-ciara.lof...@intel.com Signed-off-by: Greg Kroah-Hartman --- tools/lib/bpf/xsk.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/tools/lib/bpf/xsk.c +++ b/tools/lib/bpf/xsk.c @@ -777,18 +777,19 @@ int xsk_socket__create_sha

[PATCH 5.11 076/122] netfilter: arp_tables: add pre_exit hook for table unregister

2021-04-19 Thread Greg Kroah-Hartman
al Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- include/linux/netfilter_arp/arp_tables.h |5 +++-- net/ipv4/netfilter/arp_tables.c |9 +++-- net/ipv4/netfilter/arptable_filter.c | 10 +- 3 files changed, 19 insertions(+), 5

[PATCH 5.11 075/122] netfilter: bridge: add pre_exit hooks for ebtable unregistration

2021-04-19 Thread Greg Kroah-Hartman
register usage") Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- include/linux/netfilter_bridge/ebtables.h |5 +++-- net/bridge/netfilter/ebtable_broute.c |8 +++- net/bridge/netfilter/ebtable_filter.c |8 +++

[PATCH 5.11 080/122] net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta

2021-04-19 Thread Greg Kroah-Hartman
: 6d65bc64e232 ("net/mlx5e: Add mlx5e_flower_parse_meta support") Signed-off-by: wenxu Acked-by: Pablo Neira Ayuso Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c |3 +++ 1 file changed, 3 insertions(+) --- a/d

[PATCH 5.11 078/122] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel

2021-04-19 Thread Greg Kroah-Hartman
"drm/i915: Shut down displays gracefully on reboot") Signed-off-by: Hans de Goede Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20210325114823.44922-1-hdego...@redhat.com (cherry picked from commit 2878b29fc25a0dac0e1c6c94177f07c7f94240f0) Signed-off-by:

[PATCH 5.11 079/122] net: macb: fix the restore of cmp registers

2021-04-19 Thread Greg Kroah-Hartman
macb::rx_fs_list::list without taking into account if the IP supports type 2 screeners or not. Fixes: a14d273ba159 ("net: macb: restore cmp registers on resume path") Signed-off-by: Claudiu Beznea Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet

[PATCH 5.11 073/122] ice: Fix potential infinite loop when using u8 loop counter

2021-04-19 Thread Greg Kroah-Hartman
f-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ice/ice_dcb.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/intel/ice/ice_dcb.c +++ b/drivers/net/ethernet/intel/ice/ice_dcb.c @@ -747,8 +747,8 @@ ice_cee_to_

[PATCH 5.11 024/122] ASoC: max98373: Changed amp shutdown register as volatile

2021-04-19 Thread Greg Kroah-Hartman
From: Ryan Lee [ Upstream commit a23f9099ff1541f15704e96b784d3846d2a4483d ] 0x20FF(amp global enable) register was defined as non-volatile, but it is not. Overheating, overcurrent can cause amp shutdown in hardware. 'regmap_write' compare register readback value before writing to avoid same

[PATCH 5.11 074/122] libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC

2021-04-19 Thread Greg Kroah-Hartman
208590-1-vaib...@linux.ibm.com Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- drivers/nvdimm/region_devs.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/nvdimm/region_devs.c +++ b/drivers/nvdimm/region_devs.c @@ -1239,6 +1239,11 @@ int nvdimm_has_flush(struct

[PATCH 5.11 063/122] arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically

2021-04-19 Thread Greg Kroah-Hartman
arm64: mte: Handle synchronous and asynchronous tag check faults") Cc: # 5.10.x Reported-by: Will Deacon Cc: Will Deacon Cc: Vincenzo Frascino Cc: Mark Rutland Link: https://lore.kernel.org/r/20210409173710.18582-1-catalin.mari...@arm.com Signed-off-by: Will Deacon Signed-off-by:

[PATCH 5.11 072/122] netfilter: conntrack: do not print icmpv6 as unknown via /proc

2021-04-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit fbea31808ca124dd73ff6bb1e67c9af4607c3e32 upstream. /proc/net/nf_conntrack shows icmpv6 as unknown. Fixes: 09ec82f5af99 ("netfilter: conntrack: remove protocol name from l4proto struct") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kro

[PATCH 5.11 032/122] ARM: omap1: fix building with clang IAS

2021-04-19 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 28399a5a6d569c9bdb612345e4933046ca37cde5 ] The clang integrated assembler fails to build one file with a complex asm instruction: arch/arm/mach-omap1/ams-delta-fiq-handler.S:249:2: error: invalid instruction, any one of the following would fix this: mov

[PATCH 5.11 033/122] drm/msm: Fix a5xx/a6xx timestamps

2021-04-19 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit 9fbd3088351b92e8c2cef6e37a39decb12a8d5bb ] They were reading a counter that was configured to ALWAYS_COUNT (ie. cycles that the GPU is doing something) rather than ALWAYS_ON. This isn't the thing that userspace is looking for. Signed-off-by: Rob Clark

[PATCH 5.11 031/122] ARM: keystone: fix integer overflow warning

2021-04-19 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 844b85dda2f569943e1e018fdd63b6f7d1d6f08e ] clang warns about an impossible condition when building with 32-bit phys_addr_t: arch/arm/mach-keystone/keystone.c:79:16: error: result of comparison of constant 51539607551 with expression of type 'phys_addr_t'

[PATCH 5.11 029/122] neighbour: Disregard DEAD dst in neigh_update

2021-04-19 Thread Greg Kroah-Hartman
From: Tong Zhu [ Upstream commit d47ec7a0a7271dda08932d6208e4ab65ab0c987c ] After a short network outage, the dst_entry is timed out and put in DST_OBSOLETE_DEAD. We are in this code because arp reply comes from this neighbour after network recovers. There is a potential race condition that

[PATCH 5.11 030/122] powerpc/signal32: Fix Oops on sigreturn with unmapped VDSO

2021-04-19 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit acca57217c688c5bbbd5140974533d81e8757cc9 ] PPC32 encounters a KUAP fault when trying to handle a signal with VDSO unmapped. Kernel attempted to read user page (7fc07ec0) - exploit attempt? (uid: 0) BUG: Unable to handle kernel data

[PATCH 5.11 028/122] bpf: Take module reference for trampoline in module

2021-04-19 Thread Greg Kroah-Hartman
From: Jiri Olsa [ Upstream commit 861de02e5f3f2a104eecc5af1d248cb7bf8c5f75 ] Currently module can be unloaded even if there's a trampoline register in it. It's easily reproduced by running in parallel: # while :; do ./test_progs -t module_attach; done # while :; do rmmod bpf_testmod; sleep

[PATCH 5.11 061/122] drm/i915: Dont zero out the Y planes watermarks

2021-04-19 Thread Greg Kroah-Hartman
f-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_pm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -5539,12 +5539,12 @@ static int icl_build_plane_wm(struct int struct skl_plane_wm *w

[PATCH 5.11 060/122] readdir: make sure to verify directory entry for legacy interfaces too

2021-04-19 Thread Greg Kroah-Hartman
Acked-by: Al Viro Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/readdir.c |6 ++ 1 file changed, 6 insertions(+) --- a/fs/readdir.c +++ b/fs/readdir.c @@ -150,6 +150,9 @@ static int fillonedir(struct dir_context if (buf->result) re

[PATCH 5.11 057/122] Input: i8042 - fix Pegatron C15B ID entry

2021-04-19 Thread Greg Kroah-Hartman
kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/serio/i8042-x86ia64io.h |1 + 1 file changed, 1 insertion(+) --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -588,6 +588,7 @@ static const struct dmi_system

[PATCH 5.11 059/122] dm verity fec: fix misaligned RS roots IO

2021-04-19 Thread Greg Kroah-Hartman
RS roots unaligned to block size") Cc: sta...@vger.kernel.org Signed-off-by: Jaegeuk Kim Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/dm-verity-fec.c | 11 --- drivers/md/dm-verity-fec.h |1 + 2 files changed, 9 insertions(+), 3 deletions(-)

[PATCH 5.11 058/122] HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices

2021-04-19 Thread Greg Kroah-Hartman
82 ("Input: refuse to register absolute devices without absinfo") Signed-off-by: Ping Cheng Reviewed-by: Jason Gerecke Tested-by: Juan Garrido CC: sta...@vger.kernel.org Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/wacom_wac.c |6 ++ 1 file changed

[PATCH 5.11 056/122] Input: s6sy761 - fix coordinate read bit shift

2021-04-19 Thread Greg Kroah-Hartman
Reviewed-by: Andi Shyti Link: https://lore.kernel.org/r/20210305185710.225168-1-ca...@connolly.tech Cc: sta...@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/s6sy761.c |4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 5.11 023/122] xfrm: BEET mode doesnt support fragments for inner packets

2021-04-19 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit 68dc022d04eb0fd60a540e242dcb11ec1bee07e2 ] BEET mode replaces the IP(6) Headers with new IP(6) Headers when sending packets. However, when it's a fragment before the replacement, currently kernel keeps the fragment flag and replace the address field then encaps

[PATCH 5.11 004/122] mtd: rawnand: mtk: Fix WAITRDY break condition and timeout

2021-04-19 Thread Greg Kroah-Hartman
From: Hauke Mehrtens [ Upstream commit 2fb164f0ce95e504e2688b4f984893c29ebd19ab ] This fixes NAND_OP_WAITRDY_INSTR operation in the driver. Without this change the driver waits till the system is busy, but we should wait till the busy flag is cleared. The readl_poll_timeout() function gets a

[PATCH 5.11 005/122] Input: nspire-keypad - enable interrupts only when opened

2021-04-19 Thread Greg Kroah-Hartman
From: Fabian Vogt [ Upstream commit 69d5ff3e9e51e23d5d81bf48480aa5671be67a71 ] The driver registers an interrupt handler in _probe, but didn't configure them until later when the _open function is called. In between, the keypad can fire an IRQ due to touchpad activity, which the handler

[PATCH 5.11 054/122] lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS

2021-04-19 Thread Greg Kroah-Hartman
From: Julian Braha [ Upstream commit 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 ] When LATENCYTOP, LOCKDEP, or FAULT_INJECTION_STACKTRACE_FILTER is enabled and ARCH_WANT_FRAME_POINTERS is disabled, Kbuild gives a warning such as: WARNING: unmet direct dependencies detected for FRAME_POINTER

[PATCH 5.11 020/122] lockdep: Add a missing initialization hint to the "INFO: Trying to register non-static key" message

2021-04-19 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit 3a85969e9d912d5dd85362ee37b5f81266e00e77 ] Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest to developers to check whether initialization functions for

[PATCH 5.11 055/122] net/sctp: fix race condition in sctp_destroy_sock

2021-04-19 Thread Greg Kroah-Hartman
_close. This addresses CVE-2021-23133. Reported-by: Or Cohen Reviewed-by: Xin Long Fixes: 610236587600 ("bpf: Add new cgroup attach type to enable sock modifications") Signed-off-by: Or Cohen Acked-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-H

[PATCH 5.11 027/122] gpu/xen: Fix a use after free in xen_drm_drv_init

2021-04-19 Thread Greg Kroah-Hartman
From: Lv Yunlong [ Upstream commit 52762efa2b256ed1c5274e5177cbd52ee11a2f6a ] In function displback_changed, has the call chain displback_connect(front_info)->xen_drm_drv_init(front_info). We can see that drm_info is assigned to front_info->drm_info and drm_info is freed in fail branch in

[PATCH 5.11 052/122] mac80211: clear sta->fast_rx when STA removed from 4-addr VLAN

2021-04-19 Thread Greg Kroah-Hartman
From: Seevalamuthu Mariappan [ Upstream commit dd0b45538146cb6a54d6da7663b8c3afd16ebcfd ] In some race conditions, with more clients and traffic configuration, below crash is seen when making the interface down. sta->fast_rx wasn't cleared when STA gets removed from 4-addr AP_VLAN interface.

[PATCH 5.11 053/122] virt_wifi: Return micros for BSS TSF values

2021-04-19 Thread Greg Kroah-Hartman
From: A. Cody Schuffelen [ Upstream commit b57aa17f07c9270e576ef7df09f142978b5a75f0 ] cfg80211_inform_bss expects to receive a TSF value, but is given the time since boot in nanoseconds. TSF values are expected to be at microsecond scale rather than nanosecond scale. Signed-off-by: A. Cody

[PATCH 5.11 051/122] drm/amd/display: Add missing mask for DCN3

2021-04-19 Thread Greg Kroah-Hartman
From: Qingqing Zhuo [ Upstream commit df7232c4c676be29f1cf45058ec156c1183539ff ] [Why] DCN3 is not reusing DCN1 mask_sh_list, causing SURFACE_FLIP_INT_MASK missing in the mapping. [How] Add the corresponding entry to DCN3 list. Signed-off-by: Qingqing Zhuo Reviewed-by: Nicholas Kazlauskas

[PATCH 5.11 050/122] net: tipc: Fix spelling errors in net/tipc module

2021-04-19 Thread Greg Kroah-Hartman
From: Zheng Yongjun [ Upstream commit a79ace4b312953c5835fafb12adc3cb6878b26bd ] These patches fix a series of spelling errors in net/tipc module. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/tipc/bearer.h | 6

[PATCH 5.11 049/122] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-19 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ] In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource is freed and later under spinlock, causing potential use-after-free. Set the free pointer to NULL to avoid undefined behavior. Signed-off-by:

[PATCH 5.11 048/122] pcnet32: Use pci_resource_len to validate PCI resource

2021-04-19 Thread Greg Kroah-Hartman
From: Guenter Roeck [ Upstream commit 66c3f05ddc538ee796321210c906b6ae6fc0792a ] pci_resource_start() is not a good indicator to determine if a PCI resource exists or not, since the resource may start at address 0. This is seen when trying to instantiate the driver in qemu for riscv32 or

[PATCH 5.11 047/122] net: ieee802154: forbid monitor for add llsec seclevel

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 9ec87e322428d4734ac647d1a8e507434086993d ] This patch forbids to add llsec seclevel for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link:

<    1   2   3   4   5   6   7   8   9   10   >