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

[PATCH 5.6 046/118] 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.6 050/118] 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.6 054/118] net: enetc: fix an issue about leak system resources

2020-05-13 Thread Greg Kroah-Hartman
From: Dejin Zheng [ Upstream commit d975cb7ea915e64a3ebcfef8a33051f3e6bf22a8 ] the related system resources were not released when enetc_hw_alloc() return error in the enetc_pci_mdio_probe(), add iounmap() for error handling label "err_hw_alloc" to fix it. Fixes: 6517798dd3432a ("enetc: Make

[PATCH 5.6 085/118] 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.6 074/118] 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.6 063/118] usb: chipidea: msm: Ensure proper controller reset using role switch API

2020-05-13 Thread Greg Kroah-Hartman
From: Bryan O'Donoghue commit 91edf63d5022bd0464788ffb4acc3d5febbaf81d upstream. Currently we check to make sure there is no error state on the extcon handle for VBUS when writing to the HS_PHY_GENCONFIG_2 register. When using the USB role-switch API we still need to write to this register

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

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

2020-05-13 Thread Ido Schimmel
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 helpes to keep the code tidy. > > > > > > Signed-off-by: Christoph Hellwig

[PATCH 5.6 033/118] 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.6 076/118] driver core: platform: Initialize dma_parms for platform devices

2020-05-13 Thread Greg Kroah-Hartman
From: Ulf Hansson commit 9495b7e92f716ab2bd6814fab5e97ab4a39adfdd upstream. It's currently the platform driver's responsibility to initialize the pointer, dma_parms, for its corresponding struct device. The benefit with this approach allows us to avoid the initialization and to not waste memory

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

stable-rc 5.4.41-rc1/4fdbdad79626: no regressions found in project stable v5.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: 5.4.41-rc1 git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git branch: linux-5.4.y git

[PATCH 5.6 075/118] 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.6 080/118] drm/amd/display: work around fp code being emitted outside of DC_FP_START/END

2020-05-13 Thread Greg Kroah-Hartman
From: Daniel Kolesa commit 59dfb0c64d3853d20dc84f4561f28d4f5a2ddc7d upstream. The dcn20_validate_bandwidth function would have code touching the incorrect registers emitted outside of the boundaries of the DC_FP_START/END macros, at least on ppc64le. Work around the problem by wrapping the

[PATCH 5.6 081/118] 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.6 095/118] 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.6 098/118] 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 v3 6/7] pinctrl: madera: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- Changes since v2: - Remove some more redundant descriptions - Force pinctrl node to be called "pin-settings" - Force suffix on individual config nodes to -pins Thanks, Charles .../bindings/pinctrl/cirrus,madera-pinctrl.txt | 99 -

[PATCH 5.6 097/118] 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 v3 4/7] mfd: arizona: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- Changes since v2: - Removed a couple more redundant descriptions Thanks, Charles Documentation/devicetree/bindings/mfd/arizona.txt | 101 --- .../devicetree/bindings/mfd/wlf,arizona.yaml | 289 + MAINTAINERS

[PATCH v3 3/7] ASoC: arizona: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- No changes since v2. Thanks, Charles .../devicetree/bindings/sound/wlf,arizona.txt | 53 -- .../devicetree/bindings/sound/wlf,arizona.yaml | 114 + 2 files changed, 114 insertions(+), 53 deletions(-) delete mode 100644

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

Re: [PATCH v5 2/7] fpga: dfl: pci: add irq info for feature devices enumeration

2020-05-13 Thread Xu Yilun
On Mon, May 11, 2020 at 09:13:01PM -0700, Moritz Fischer wrote: > On Mon, Apr 20, 2020 at 04:11:38PM +0800, Xu Yilun wrote: > > Some DFL FPGA PCIe cards (e.g. Intel FPGA Programmable Acceleration > > Card) support MSI-X based interrupts. This patch allows PCIe driver > > to prepare and pass

[PATCH v3 1/7] regulator: arizona-regulator: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- No changes since v2. Thanks, Charles .../bindings/regulator/arizona-regulator.txt | 18 --- .../devicetree/bindings/regulator/wlf,arizona.yaml | 37 ++ 2 files changed, 37 insertions(+), 18 deletions(-) delete mode 100644

[PATCH v3 2/7] extcon: arizona: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Acked-by: Chanwoo Choi Signed-off-by: Charles Keepax --- No changes since v2. Thanks, Charles .../devicetree/bindings/extcon/extcon-arizona.txt | 76 - .../devicetree/bindings/extcon/wlf,arizona.yaml| 125 + 2 files changed, 125 insertions(+), 76

[PATCH v3 5/7] ASoC: madera: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- No changes since v2. Thanks, Charles .../devicetree/bindings/sound/cirrus,madera.yaml | 113 + Documentation/devicetree/bindings/sound/madera.txt | 67 2 files changed, 113 insertions(+), 67 deletions(-) create mode 100644

[PATCH 5.6 093/118] 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 v3 7/7] mfd: madera: Move binding over to dtschema

2020-05-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- Changes since v2: - Removed some more redundant descriptions - Updated pinctrl node naming in the example Thanks, Charles .../devicetree/bindings/mfd/cirrus,madera.yaml | 311 + Documentation/devicetree/bindings/mfd/madera.txt |

Re: [PATCH -next] iommu/msm: Make msm_iommu_lock static

2020-05-13 Thread Joerg Roedel
On Tue, May 12, 2020 at 10:17:19AM +0800, Samuel Zou wrote: > Fix the following sparse warning: > > drivers/iommu/msm_iommu.c:37:1: warning: symbol 'msm_iommu_lock' was not > declared. > > The msm_iommu_lock has only call site within msm_iommu.c > It should be static > > Fixes: 0720d1f052dc

[PATCH 5.6 108/118] 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 5.6 118/118] 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.6 112/118] 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 5.6 110/118] 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 5.6 111/118] 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

[PATCH 5.6 106/118] arch/x86/kvm/svm/sev.c: change flag passed to GUP fast in sev_pin_memory()

2020-05-13 Thread Greg Kroah-Hartman
From: Janakarajan Natarajan commit 996ed22c7a5251d76dcdfe5026ef8230e90066d9 upstream. When trying to lock read-only pages, sev_pin_memory() fails because FOLL_WRITE is used as the flag for get_user_pages_fast(). Commit 73b0140bf0fe ("mm/gup: change GUP fast to use flags rather than a write

[PATCH 5.6 114/118] bdi: move bdi_dev_name out of line

2020-05-13 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit eb7ae5e06bb6e6ac6bb86872d27c43ebab92f6b2 ] bdi_dev_name is not a fast path function, move it out of line. This prepares for using it from modular callers without having to export an implementation detail like bdi_unknown_name. Signed-off-by: Christoph

[PATCH 5.6 115/118] 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 101/118] 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 5.6 105/118] 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.6 073/118] 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

stable-rc 4.19.123-rc1/92ba0b6b33ad: no regressions found in project stable v4.19.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.19.123-rc1 git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git branch: linux-4.19.y

[PATCH 5.6 104/118] 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.6 113/118] 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 109/118] kvm: ioapic: Restrict lazy EOI update to edge-triggered interrupts

2020-05-13 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 8be8f932e3db5fe4ed178b8892eeffeab530273a upstream. Commit f458d039db7e ("kvm: ioapic: Lazy update IOAPIC EOI") introduces the following infinite loop: BUG: stack guard page was hit at 8f595917 \ (stack is bdefe5a4..ae2b06f5) kernel stack

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

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

[PATCH 5.6 094/118] 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 5.6 099/118] x86/entry/64: Fix unwind hints in __switch_to_asm()

2020-05-13 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 96c64806b4bf35f5edb465cafa6cec490e424a30 upstream. UNWIND_HINT_FUNC has some limitations: specifically, it doesn't reset all the registers to undefined. This causes objtool to get confused about the RBP push in __switch_to_asm(), resulting in bad ORC data. While

[PATCH 5.6 100/118] 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.6 072/118] 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.6 096/118] x86/mm/cpa: Flush direct map alias during cpa

2020-05-13 Thread Greg Kroah-Hartman
From: Rick Edgecombe commit ab5130186d7476dcee0d4e787d19a521ca552ce9 upstream. As an optimization, cpa_flush() was changed to optionally only flush the range in @cpa if it was small enough. However, this range does not include any direct map aliases changed in cpa_process_alias(). So small

[PATCH 5.6 067/118] tracing: Wait for preempt irq delay thread to finish

2020-05-13 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit d16a8c31077e75ecb9427fbfea59b74eed00f698 upstream. Running on a slower machine, it is possible that the preempt delay kernel thread may still be executing if the module was immediately removed after added, and this can cause the kernel to crash as the kernel

[PATCH 5.6 103/118] 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.6 069/118] 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.6 071/118] 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.6 070/118] crypto: arch/lib - limit simd usage to 4k chunks

2020-05-13 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit 706024a52c614b478b63f7728d202532ce6591a9 upstream. The initial Zinc patchset, after some mailing list discussion, contained code to ensure that kernel_fpu_enable would not be kept on for more than a 4k chunk, since it disables preemption. The choice of 4k isn't

[PATCH 5.6 064/118] 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.6 116/118] io_uring: dont use fd for openat/openat2/statx

2020-05-13 Thread Greg Kroah-Hartman
From: Max Kellermann Based on commit 63ff822358b276137059520cf16e587e8073e80f upstream. If an operation's flag `needs_file` is set, the function io_req_set_file() calls io_file_get() to obtain a `struct file*`. This fails for `O_PATH` file descriptors, because io_file_get() calls fget(), which

[PATCH 5.6 068/118] 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 5.6 091/118] iocost: protect iocg->abs_vdebt with iocg->waitq.lock

2020-05-13 Thread Greg Kroah-Hartman
From: Tejun Heo commit 0b80f9866e6bbfb905140ed8787ff2af03652c0c upstream. abs_vdebt is an atomic_64 which tracks how much over budget a given cgroup is and controls the activation of use_delay mechanism. Once a cgroup goes over budget from forced IOs, it has to pay it back with its future

[PATCH 5.6 087/118] ceph: demote quotarealm lookup warning to a debug message

2020-05-13 Thread Greg Kroah-Hartman
From: Luis Henriques commit 12ae44a40a1be891bdc6463f8c7072b4ede746ef upstream. A misconfigured cephx can easily result in having the kernel client flooding the logs with: ceph: Can't lookup inode 1 (err: -13) Change this message to debug level. Cc: sta...@vger.kernel.org URL:

[PATCH 5.6 090/118] 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.6 084/118] 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.6 086/118] ceph: fix endianness bug when handling MDS session feature bits

2020-05-13 Thread Greg Kroah-Hartman
From: Jeff Layton commit 0fa8263367db9287aa0632f96c1a5f93cc478150 upstream. Eduard reported a problem mounting cephfs on s390 arch. The feature mask sent by the MDS is little-endian, so we need to convert it before storing and testing against it. Cc: sta...@vger.kernel.org

[PATCH 5.6 066/118] tracing/kprobes: Reject new event if loc is NULL

2020-05-13 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 5b4dcd2d201a395ad4054067bfae4a07554fbd65 upstream. Reject the new event which has NULL location for kprobes. For kprobes, user must specify at least the location. Link: http://lkml.kernel.org/r/158779376597.6082.1411212055469099461.stgit@devnote2 Cc: Tom Zanussi

[PATCH 5.6 088/118] 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 5.6 078/118] mei: me: disable mei interface on LBG servers.

2020-05-13 Thread Greg Kroah-Hartman
From: Tomas Winkler commit d76bc8200f9cf8b6746e66b37317ba477eda25c4 upstream. Disable the MEI driver on LBG SPS (server) platforms, some corner flows such as recovery mode does not work, and the driver doesn't have working use cases. Cc: Signed-off-by: Tomas Winkler Link:

[PATCH 5.6 083/118] 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.6 082/118] 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.6 092/118] 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.6 079/118] 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.

[PATCH 5.6 065/118] tracing/boottime: Fix kprobe event API usage

2020-05-13 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit da0f1f4167e3af69e1d8b32d6d65195ddd2bfb64 upstream. Fix boottime kprobe events to use API correctly for multiple events. For example, when we set a multiprobe kprobe events in bootconfig like below, ftrace.event.kprobes.myevent { probes = "vfs_read $arg1

[PATCH 5.6 077/118] amba: Initialize dma_parms for amba devices

2020-05-13 Thread Greg Kroah-Hartman
From: Ulf Hansson commit f458488425f1cc9a396aa1d09bb00c48783936da upstream. It's currently the amba driver's responsibility to initialize the pointer, dma_parms, for its corresponding struct device. The benefit with this approach allows us to avoid the initialization and to not waste memory for

[PATCH 5.6 029/118] 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.6 059/118] Revert "HID: wacom: generic: read the number of expected touches on a per collection basis"

2020-05-13 Thread Greg Kroah-Hartman
From: Jason Gerecke commit b43f977dd281945960c26b3ef67bba0fa07d39d9 upstream. This reverts commit 15893fa40109f5e7c67eeb8da62267d0fdf0be9d. The referenced commit broke pen and touch input for a variety of devices such as the Cintiq Pro 32. Affected devices may appear to work normally for a

[PATCH 5.6 032/118] 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.6 056/118] wireguard: send/receive: cond_resched() when processing worker ringbuffers

2020-05-13 Thread Greg Kroah-Hartman
From: "Jason A. Donenfeld" [ Upstream commit 4005f5c3c9d006157ba716594e0d70c88a235c5e ] Users with pathological hardware reported CPU stalls on CONFIG_ PREEMPT_VOLUNTARY=y, because the ringbuffers would stay full, meaning these workers would never terminate. That turned out not to be okay on

[PATCH 5.6 057/118] 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 5.6 024/118] 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.6 055/118] wireguard: socket: remove errant restriction on looping to self

2020-05-13 Thread Greg Kroah-Hartman
From: "Jason A. Donenfeld" [ Upstream commit b673e24aad36981f327a6570412ffa7754de8911 ] It's already possible to create two different interfaces and loop packets between them. This has always been possible with tunnels in the kernel, and isn't specific to wireguard. Therefore, the networking

[PATCH 5.6 031/118] 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.6 060/118] 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.6 051/118] 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.6 048/118] 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 5.6 052/118] wireguard: queueing: cleanup ptr_ring in error path of packet_queue_init

2020-05-13 Thread Greg Kroah-Hartman
From: "Jason A. Donenfeld" [ Upstream commit 130c58606171326c81841a49cc913cd354113dd9 ] Prior, if the alloc_percpu of packet_percpu_multicore_worker_alloc failed, the previously allocated ptr_ring wouldn't be freed. This commit adds the missing call to ptr_ring_cleanup in the error case.

[PATCH 5.6 061/118] HID: wacom: Report 2nd-gen Intuos Pro S center button status over BT

2020-05-13 Thread Greg Kroah-Hartman
From: Jason Gerecke commit dcce8ef8f70a8e38e6c47c1bae8b312376c04420 upstream. The state of the center button was not reported to userspace for the 2nd-gen Intuos Pro S when used over Bluetooth due to the pad handling code not being updated to support its reduced number of buttons. This patch

[PATCH 5.6 047/118] 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.6 053/118] wireguard: receive: use tunnel helpers for decapsulating ECN markings

2020-05-13 Thread Greg Kroah-Hartman
From: "Toke H�iland-J�rgensen" [ Upstream commit eebabcb26ea1e3295704477c6cd4e772c96a9559 ] WireGuard currently only propagates ECN markings on tunnel decap according to the old RFC3168 specification. However, the spec has since been updated in RFC6040 to recommend slightly different

[PATCH 5.6 049/118] net/mlx5e: Fix q counters on uplink representors

2020-05-13 Thread Greg Kroah-Hartman
From: Roi Dayan [ Upstream commit 67b38de646894c9a94fe4d6d17719e70cc6028eb ] Need to allocate the q counters before init_rx which needs them when creating the rq. Fixes: 8520fa57a4e9 ("net/mlx5e: Create q counters on uplink representors") Signed-off-by: Roi Dayan Reviewed-by: Vlad Buslov

[PATCH 5.6 028/118] 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 5.6 062/118] 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.6 038/118] selftests: net: tcp_mmap: fix SO_RCVLOWAT setting

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a84724178bd7081cf3bd5b558616dd6a9a4ca63b ] Since chunk_size is no longer an integer, we can not use it directly as an argument of setsockopt(). This patch should fix tcp_mmap for Big Endian kernels. Fixes: 597b01edafac ("selftests: net: avoid ptl lock

[PATCH 5.6 036/118] 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.6 008/118] ext4: disable dioread_nolock whenever delayed allocation is disabled

2020-05-13 Thread Greg Kroah-Hartman
From: Eric Whitney [ Upstream commit c8980e1980ccdc2229aa2218d532ddc62e0aabe5 ] The patch "ext4: make dioread_nolock the default" (244adf6426ee) causes generic/422 to fail when run in kvm-xfstests' ext3conv test case. This applies both the dioread_nolock and nodelalloc mount options, a

[PATCH 5.6 005/118] 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.6 003/118] 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.6 006/118] 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

[PATCH 5.6 040/118] 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.6 025/118] 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

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