[PATCH 5.8 006/255] ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop

2020-09-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit d96f27c80b65437a7b572647ecb4717ec9a50c98 ] There's another HP desktop has buggy BIOS which flags the Port Connectivity bit as no connection. Apply force connectivity quirk to enable DP/HDMI audio. Signed-off-by: Kai-Heng Feng Link: https://lore.kernel.or

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread Paul E. McKenney
On Tue, Sep 01, 2020 at 05:50:14PM +0200, pet...@infradead.org wrote: > On Tue, Sep 01, 2020 at 09:44:17AM -0600, Lina Iyer wrote: > > > > > > > I could add RCU_NONIDLE for the calls to > > > > > > > pm_runtime_put_sync_suspend() > > > > > > > and pm_runtime_get_sync() in psci_enter_domain_idle_st

Re: [PATCH v2 1/1] netfilter: nat: add a range check for l3/l4 protonum

2020-09-01 Thread Will Deacon
Hi Will, Pablo, On Tue, Aug 04, 2020 at 01:37:11PM +0200, Pablo Neira Ayuso wrote: > This patch is much smaller and if you confirm this is address the > issue, then this is awesome. Did that ever get confirmed? AFAICT, nothing ended up landing in the stable trees for this. Cheers, Will > On M

[PATCH 5.8 014/255] powerpc/xive: Ignore kmemleak false positives

2020-09-01 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy [ Upstream commit f0993c839e95dd6c7f054a1015e693c87e33e4fb ] xive_native_provision_pages() allocates memory and passes the pointer to OPAL so kmemleak cannot find the pointer usage in the kernel memory and produces a false positive report (below) (even if the kernel di

[PATCH 5.8 013/255] arm64: dts: qcom: msm8916: Pull down PDM GPIOs during sleep

2020-09-01 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit e2ee9edc282961783d519c760bbaa20fed4dec38 ] The original qcom kernel changed the PDM GPIOs to be pull-down during sleep at some point. Reportedly this was done because there was some "leakage at PDM outputs during sleep": https://source.codeaurora.org/q

[PATCH 5.4 210/214] kbuild: add variables for compression tools

2020-09-01 Thread Greg Kroah-Hartman
From: Denis Efremov commit 8dfb61dcbaceb19a5ded5e9c9dcf8d05acc32294 upstream. Allow user to use alternative implementations of compression tools, such as pigz, pbzip2, pxz. For example, multi-threaded tools to speed up the build: $ make GZIP=pigz BZIP2=pbzip2 Variables _GZIP, _BZIP2, _LZOP are

[PATCH 5.4 212/214] HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()

2020-09-01 Thread Greg Kroah-Hartman
From: Peilin Ye commit 25a097f5204675550afb879ee18238ca917cba7a upstream. `uref->usage_index` is not always being properly checked, causing hiddev_ioctl_usage() to go out of bounds under some cases. Fix it. Reported-by: syzbot+34ee1b45d88571c2f...@syzkaller.appspotmail.com Link: https://syzkal

[PATCH 5.4 208/214] kheaders: remove the last bashism to allow sh to run it

2020-09-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 1463f74f492eea7191f0178e01f3d38371a48210 upstream. 'pushd' ... 'popd' is the last bash-specific code in this script. One way to avoid it is to run the code in a sub-shell. With that addressed, you can run this script with sh. I replaced $(BASH) with $(CONFIG_SHELL)

[PATCH 5.4 199/214] usb: storage: Add unusual_uas entry for Sony PSZ drives

2020-09-01 Thread Greg Kroah-Hartman
From: Alan Stern commit 20934c0de13b49a072fb1e0ca79fe0fe0e40eae5 upstream. The PSZ-HA* family of USB disk drives from Sony can't handle the REPORT OPCODES command when using the UAS protocol. This patch adds an appropriate quirks entry. Reported-and-tested-by: Till Dörges Signed-off-by: Alan

[PATCH 5.4 206/214] kheaders: optimize md5sum calculation for in-tree builds

2020-09-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 0e11773e76098729552b750ccff79374d1e62002 upstream. This script computes md5sum of headers in srctree and in objtree. However, when we are building in-tree, we know the srctree and the objtree are the same. That is, we end up with the same computation twice. In fact,

[PATCH 5.8 012/255] mfd: intel-lpss: Add Intel Emmitsburg PCH PCI IDs

2020-09-01 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 3ea2e4eab64cefa06055bb0541fcdedad4b48565 ] Intel Emmitsburg PCH has the same LPSS than Intel Ice Lake. Add the new IDs to the list of supported devices. Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd

[PATCH 5.4 205/214] kheaders: remove unneeded cat command piped to head / tail

2020-09-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 9a066357184485784f782719093ff804d05b85db upstream. The 'head' and 'tail' commands can take a file path directly. So, you do not need to run 'cat'. cat kernel/kheaders.md5 | head -1 ... is equivalent to: head -1 kernel/kheaders.md5 and the latter saves forking

[PATCH 5.4 165/214] serial: 8250_exar: Fix number of ports for Commtech PCIe cards

2020-09-01 Thread Greg Kroah-Hartman
From: Valmer Huhn commit c6b9e95dde7b54e6a53c47241201ab5a4035c320 upstream. The following in 8250_exar.c line 589 is used to determine the number of ports for each Exar board: nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; If the number of ports a card has is not expli

[PATCH 5.4 161/214] serial: samsung: Removes the IRQ not found warning

2020-09-01 Thread Greg Kroah-Hartman
From: Tamseel Shams commit 8c6c378b0cbe0c9f1390986b5f8ffb5f6ff7593b upstream. In few older Samsung SoCs like s3c2410, s3c2412 and s3c2440, UART IP is having 2 interrupt lines. However, in other SoCs like s3c6400, s5pv210, exynos5433, and exynos4210 UART is having only 1 interrupt line. Due to th

[PATCH 5.4 214/214] ALSA: usb-audio: Update documentation comment for MS2109 quirk

2020-09-01 Thread Greg Kroah-Hartman
From: Hector Martin commit 74a2a7de81a2ef20732ec02087314e92692a7a1b upstream. As the recent fix addressed the channel swap problem more properly, update the comment as well. Fixes: 1b7ecc241a67 ("ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109") Signed-off-by: Hector Marti

[PATCH 5.4 179/214] genirq/matrix: Deal with the sillyness of for_each_cpu() on UP

2020-09-01 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 784a0830377d0761834e385975bc46861fea9fa0 upstream. Most of the CPU mask operations behave the same way, but for_each_cpu() and it's variants ignore the cpumask argument and claim that CPU0 is always in the mask. This is historical, inconsistent and annoying behaviour

[PATCH 5.4 204/214] fbmem: pull fbcon_update_vcs() out of fb_set_var()

2020-09-01 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit d88ca7e1a27eb2df056bbf37ddef62e1c73d37ea ] syzbot is reporting OOB read bug in vc_do_resize() [1] caused by memcpy() based on outdated old_{rows,row_size} values, for resize_screen() can recurse into vc_do_resize() which changes vc->vc_{cols,rows} that outdat

[PATCH 5.4 162/214] serial: pl011: Fix oops on -EPROBE_DEFER

2020-09-01 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 27afac93e3bd7fa89749cf11da5d86ac9cde4dba upstream. If probing of a pl011 gets deferred until after free_initmem(), an oops ensues because pl011_console_match() is called which has been freed. Fix by removing the __init attribute from the function and those it calls. C

[PATCH 5.4 158/214] USB: lvtest: return proper error code in probe

2020-09-01 Thread Greg Kroah-Hartman
From: Evgeny Novikov commit 531412492ce93ea29b9ca3b4eb5e3ed771f851dd upstream. lvs_rh_probe() can return some nonnegative value from usb_control_msg() when it is less than "USB_DT_HUB_NONVAR_SIZE + 2" that is considered as a failure. Make lvs_rh_probe() return -EINVAL in this case. Found by Lin

[PATCH v7 0/3] Anonymous VMA naming patches

2020-09-01 Thread Sumit Semwal
Version v4 of these patches was sent by Colin Cross a long time ago [1] and [2]. At the time, these patches were not merged, and it looks like they just fell off the radar since. In our efforts to run Android on mainline kernels, we realised that since past some time, this patchset is needed for A

[PATCH v7 2/3] mm: memory: Add access_remote_vm_locked variant

2020-09-01 Thread Sumit Semwal
This allows accessing a remote vm while the mmap_lock is already held by the caller. While adding support for anonymous vma naming, show_map_vma() needs to access the remote vm to get the name of the anonymous vma. Since show_map_vma() already holds the mmap_lock, so this _locked variant was requi

[PATCH 5.4 175/214] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-09-01 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit e3eb6e8fba65094328b8dca635d00de74ba75b45 upstream. It has been reported that system-wide suspend may be aborted in the absence of any wakeup events due to unforseen interactions of it with the runtume PM framework. One failing scenario is when there are multiple d

[PATCH 5.4 189/214] USB: yurex: Fix bad gfp argument

2020-09-01 Thread Greg Kroah-Hartman
From: Alan Stern commit f176ede3a3bde5b398a6777a7f9ff091baa2d3ff upstream. The syzbot fuzzer identified a bug in the yurex driver: It passes GFP_KERNEL as a memory-allocation flag to usb_submit_urb() at a time when its state is TASK_INTERRUPTIBLE, not TASK_RUNNING: do not call blocking ops when

[PATCH 5.4 187/214] drm/amd/pm: correct Vega20 swctf limit setting

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan commit 9b51c4b2ba31396f3894ccc7df8bdf067243e9f5 upstream. Correct the Vega20 thermal swctf limit. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/h

[PATCH 5.4 188/214] drm/amd/pm: correct the thermal alert temperature limit settings

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan commit 28e628645333b7e581c4a7b04d958e4804ea10fe upstream. Do the maths in celsius degree. This can fix the issues caused by the changes below: drm/amd/pm: correct Vega20 swctf limit setting drm/amd/pm: correct Vega12 swctf limit setting drm/amd/pm: correct Vega10 swctf limit set

Re: [PATCH 0/1] block io layer filters api

2020-09-01 Thread Bart Van Assche
On 2020-09-01 06:29, Sergei Shtepa wrote: > However, the same time requirement also presents a big immediate problem - > as until this is done, over a hundred thousands of Linux users will not be > able to protect their servers running the impacted kernels > (our backup agent is free). > They will

[PATCH 5.4 185/214] drm/amd/pm: correct Vega10 swctf limit setting

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan commit b05d71b51078fc428c6b72582126d9d75d3c1f4c upstream. Correct the Vega10 thermal swctf limit. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1267 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by

[PATCH 5.4 183/214] drm/amdgpu/gfx10: refine mgcg setting

2020-09-01 Thread Greg Kroah-Hartman
From: Jiansong Chen commit de7a1b0b8753e1b084f0e339ffab295d27ef upstream. 1. enable ENABLE_CGTS_LEGACY to fix specviewperf11 random hang. 2. remove obsolete RLC_CGTT_SCLK_OVERRIDE workaround. Signed-off-by: Jiansong Chen Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Cc: sta...@v

[PATCH 5.4 174/214] arm64: vdso32: make vdso32 install conditional

2020-09-01 Thread Greg Kroah-Hartman
From: Frank van der Linden commit 5d28ba5f8a0cfa3a874fa96c33731b8fcd141b3a upstream. vdso32 should only be installed if CONFIG_COMPAT_VDSO is enabled, since it's not even supposed to be compiled otherwise, and arm64 builds without a 32bit crosscompiler will fail. Fixes: 8d75785a8142 ("ARM64: vd

[PATCH 5.4 160/214] vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize()

2020-09-01 Thread Greg Kroah-Hartman
From: George Kennedy commit bc5269ca765057a1b762e79a1cfd267cd7bf1c46 upstream. vc_resize() can return with an error after failure. Change VT_RESIZEX ioctl to save struct vc_data values that are modified and restore the original values in case of error. Signed-off-by: George Kennedy Cc: stable

[PATCH 5.4 181/214] x86/hotplug: Silence APIC only after all interrupts are migrated

2020-09-01 Thread Greg Kroah-Hartman
From: Ashok Raj commit 52d6b926aabc47643cd910c85edb262b7f44c168 upstream. There is a race when taking a CPU offline. Current code looks like this: native_cpu_disable() { ... apic_soft_disable(); /* * Any existing set bits for pending interrupt to * this

[PATCH 5.4 182/214] drm/amdgpu: Fix buffer overflow in INFO ioctl

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Deucher commit b5b97cab55eb71daba3283c8b1d2cce456d511a1 upstream. The values for "se_num" and "sh_num" come from the user in the ioctl. They can be in the 0-255 range but if they're more than AMDGPU_GFX_MAX_SE (4) or AMDGPU_GFX_MAX_SH_PER_SE (2) then it results in an out of bounds rea

[PATCH 5.4 177/214] device property: Fix the secondary firmware node handling in set_primary_fwnode()

2020-09-01 Thread Greg Kroah-Hartman
From: Heikki Krogerus commit c15e1bdda4365a5f17cdadf22bf1c1df13884a9e upstream. When the primary firmware node pointer is removed from a device (set to NULL) the secondary firmware node pointer, when it exists, is made the primary node for the device. However, the secondary firmware node pointer

[PATCH 5.4 173/214] xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed

2020-09-01 Thread Greg Kroah-Hartman
From: Ding Hui commit f1ec7ae6c9f8c016db320e204cb519a1da1581b8 upstream. Some device drivers call libusb_clear_halt when target ep queue is not empty. (eg. spice client connected to qemu for usb redir) Before commit f5249461b504 ("xhci: Clear the host side toggle manually when endpoint is soft

Re: [PATCH] net: ipv6: fix __rt6_purge_dflt_routers when forwarding is not set on all ifaces

2020-09-01 Thread Brian Vazquez
On Tue, Sep 1, 2020 at 12:56 AM Eric Dumazet wrote: > > On Tue, Sep 1, 2020 at 8:58 AM Brian Vazquez wrote: > > > > The problem is exposed when the system has multiple ifaces and > > forwarding is enabled on a subset of them, __rt6_purge_dflt_routers will > > clean the default route on all the if

[PATCH 5.4 176/214] powerpc/perf: Fix crashes with generic_compat_pmu & BHRB

2020-09-01 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy commit b460b512417ae9c8b51a3bdcc09020cd6c60ff69 upstream. The bhrb_filter_map ("The Branch History Rolling Buffer") callback is only defined in raw CPUs' power_pmu structs. The "architected" CPUs use generic_compat_pmu, which does not have this callback, and crashes oc

[PATCH 5.4 171/214] usb: host: xhci: fix ep context print mismatch in debugfs

2020-09-01 Thread Greg Kroah-Hartman
From: Li Jun commit 0077b1b2c8d9ad5f7a08b62fb8524cdb9938388f upstream. dci is 0 based and xhci_get_ep_ctx() will do ep index increment to get the ep context. [rename dci to ep_index -Mathias] Cc: stable # v4.15+ Fixes: 02b6fdc2a153 ("usb: xhci: Add debugfs interface for xHCI driver") Signed-of

[PATCH 5.4 133/214] s390/cio: add cond_resched() in the slow_eval_known_fn() loop

2020-09-01 Thread Greg Kroah-Hartman
From: Vineeth Vijayan [ Upstream commit 0b8eb2ee9da1e8c9b8082f404f3948aa82a057b2 ] The scanning through subchannels during the time of an event could take significant amount of time in case of platforms with lots of known subchannels. This might result in higher scheduling latencies for other ta

[PATCH 5.4 170/214] XEN uses irqdesc::irq_data_common::handler_data to store a per interrupt XEN data pointer which contains XEN specific information.

2020-09-01 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit c330fb1ddc0a922f044989492b7fcca77ee1db46 upstream. handler data is meant for interrupt handlers and not for storing irq chip specific information as some devices require handler data to store internal per interrupt information, e.g. pinctrl/GPIO chained interrupt han

[PATCH 5.4 134/214] ASoC: wm8994: Avoid attempts to read unreadable registers

2020-09-01 Thread Greg Kroah-Hartman
From: Sylwester Nawrocki [ Upstream commit f082bb59b72039a2326ec1a44496899fb8aa6d0e ] The driver supports WM1811, WM8994, WM8958 devices but according to documentation and the regmap definitions the WM8958_DSP2_* registers are only available on WM8958. In current code these registers are being a

[PATCH 5.4 169/214] writeback: Fix sync livelock due to b_dirty_time processing

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara commit f9cae926f35e8230330f28c7b743ad088611a8de upstream. When we are processing writeback for sync(2), move_expired_inodes() didn't set any inode expiry value (older_than_this). This can result in writeback never completing if there's steady stream of inodes added to b_dirty_time

[PATCH 5.4 168/214] writeback: Avoid skipping inode writeback

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara commit 5afced3bf28100d81fb2fe7e98918632a08feaf5 upstream. Inode's i_io_list list head is used to attach inode to several different lists - wb->{b_dirty, b_dirty_time, b_io, b_more_io}. When flush worker prepares a list of inodes to writeback e.g. for sync(2), it moves inodes to b_

[PATCH 5.4 132/214] ALSA: hda/realtek: Add model alc298-samsung-headphone

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Pozulp [ Upstream commit 23dc958689449be85e39351a8c809c3d344b155b ] The very quiet and distorted headphone output bug that afflicted my Samsung Notebook 9 is appearing in many other Samsung laptops. Expose the quirk which fixed my laptop as a model so other users can try it. BugLink:

[PATCH 5.4 130/214] netfilter: avoid ipv6 -> nf_defrag_ipv6 module dependency

2020-09-01 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 2404b73c3f1a5f15726c6ecd226b56f6f992767f ] nf_ct_frag6_gather is part of nf_defrag_ipv6.ko, not ipv6 core. The current use of the netfilter ipv6 stub indirections causes a module dependency between ipv6 and nf_defrag_ipv6. This prevents nf_defrag_ipv6

[PATCH] memory: tegra: Remove GPU from DRM IOMMU group

2020-09-01 Thread Thierry Reding
From: Thierry Reding Commit 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU group") added the GPU to the DRM IOMMU group, which doesn't make any sense. This causes problems when Nouveau tries to attach to the SMMU and causes it to fall back to using the DMA API. Remove the GPU from

[PATCH 5.4 129/214] libbpf: Handle GCC built-in types for Arm NEON

2020-09-01 Thread Greg Kroah-Hartman
From: Jean-Philippe Brucker [ Upstream commit 702eddc77a905782083b14ccd05b23840675fd18 ] When building Arm NEON (SIMD) code from lib/raid6/neon.uc, GCC emits DWARF information using a base type "__Poly8_t", which is internal to GCC and not recognized by Clang. This causes build failures when bui

[PATCH 5.4 154/214] btrfs: check the right error variable in btrfs_del_dir_entries_in_log

2020-09-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit fb2fecbad50964b9f27a3b182e74e437b40753ef upstream. With my new locking code dbench is so much faster that I tripped over a transaction abort from ENOSPC. This turned out to be because btrfs_del_dir_entries_in_log was checking for ret == -ENOSPC, but this function sets e

Re: [PATCH 2/4] exit: support non-blocking pidfds

2020-09-01 Thread Christian Brauner
On Tue, Sep 01, 2020 at 06:11:54PM +0200, Oleg Nesterov wrote: > On 08/31, Christian Brauner wrote: > > > > --- a/kernel/exit.c > > +++ b/kernel/exit.c > > @@ -934,6 +934,7 @@ struct wait_opts { > > > > wait_queue_entry_t child_wait; > > int notask_error;

[PATCH 5.4 151/214] HID: i2c-hid: Always sleep 60ms after I2C_HID_PWR_ON commands

2020-09-01 Thread Greg Kroah-Hartman
From: Hans de Goede commit eef4016243e94c438f177ca8226876eb873b9c75 upstream. Before this commit i2c_hid_parse() consists of the following steps: 1. Send power on cmd 2. usleep_range(1000, 5000) 3. Send reset cmd 4. Wait for reset to complete (device interrupt, or msleep(100)) 5. Send power on

[PATCH 5.4 131/214] can: j1939: transport: j1939_xtp_rx_dat_one(): compare own packets to detect corruptions

2020-09-01 Thread Greg Kroah-Hartman
From: Oleksij Rempel [ Upstream commit e052d0540298bfe0f6cbbecdc7e2ea9b859575b2 ] Since the stack relays on receiving own packets, it was overwriting own transmit buffer from received packets. At least theoretically, the received echo buffer can be corrupt or changed and the session partner can

Re: [RFC RESEND PATCH 0/1] USB EHCI: repeated resets on full and low speed devices

2020-09-01 Thread Alan Stern
On Tue, Sep 01, 2020 at 08:51:14AM -0700, Khalid Aziz wrote: > >> At the time of failure, when we reach this conditional, token is > >> either 0x80408d46 or 0x408d46 which means following bits are set: > >> > >> QTD_STS_STS, QTD_STS_MMF, QTD_STS_HALT, QTD_IOC, QTD_TOGGLE > >> > >> and > >> > >>

[PATCH] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-01 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH 5.4 155/214] btrfs: fix space cache memory leak after transaction abort

2020-09-01 Thread Greg Kroah-Hartman
From: Filipe Manana commit bbc37d6e475eee8ffa2156ec813efc6bbb43c06d upstream. If a transaction aborts it can cause a memory leak of the pages array of a block group's io_ctl structure. The following steps explain how that can happen: 1) Transaction N is committing, currently in state TRANS_STAT

[PATCH 5.4 145/214] net: gianfar: Add of_node_put() before goto statement

2020-09-01 Thread Greg Kroah-Hartman
From: Sumera Priyadarsini [ Upstream commit 989e4da042ca4a56bbaca9223d1a93639ad11e17 ] Every iteration of for_each_available_child_of_node() decrements reference count of the previous node, however when control is transferred from the middle of the loop, as in the case of a return or break or go

Re: [PATCH 1/2] mm: memcontrol: flush percpu vmstats before releasing memcg

2020-09-01 Thread Yang Shi
This report is kind of late, hope everyone still remembers the context. I just happened to see a similar problem on our v4.19 kernel, please see the below output from memory.stat: total_cache 7361626112 total_rss 8268165120 total_rss_huge 0 total_shmem 0 total_mapped_file 4154929152 total_dirty 3

[PATCH 5.4 095/214] PCI: qcom: Add missing reset for ipq806x

2020-09-01 Thread Greg Kroah-Hartman
From: Ansuel Smith [ Upstream commit ee367e2cdd2202b5714982739e684543cd2cee0e ] Add missing ext reset used by ipq8064 SoC in PCIe qcom driver. Link: https://lore.kernel.org/r/20200615210608.21469-5-ansuels...@gmail.com Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signe

[PATCH 5.4 121/214] fs: prevent BUG_ON in submit_bh_wbc()

2020-09-01 Thread Greg Kroah-Hartman
From: Xianting Tian [ Upstream commit 377254b2cd2252c7c3151b113cbdf93a7736c2e9 ] If a device is hot-removed --- for example, when a physical device is unplugged from pcie slot or a nbd device's network is shutdown --- this can result in a BUG_ON() crash in submit_bh_wbc(). This is because the w

[PATCH 5.4 153/214] btrfs: reset compression level for lzo on remount

2020-09-01 Thread Greg Kroah-Hartman
From: Marcos Paulo de Souza commit 282dd7d7718444679b046b769d872b188818ca35 upstream. Currently a user can set mount "-o compress" which will set the compression algorithm to zlib, and use the default compress level for zlib (3): relatime,compress=zlib:3,space_cache If the user remounts the

[PATCH 5.4 142/214] scsi: qla2xxx: Fix null pointer access during disconnect from subsystem

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit 83949613fac61e8e37eadf8275bf072342302f4e ] NVMEAsync command is being submitted to QLA while the same NVMe controller is in the middle of reset. The reset path has deleted the association and freed aen_op->fcp_req.private. Add a check for this private pointer b

RE: [PATCH 1/1] RAS: Add CPU Correctable Error Collector to isolate an erroneous CPU core

2020-09-01 Thread Shiju Jose
Hi Boris, >-Original Message- >From: Borislav Petkov [mailto:b...@alien8.de] >Sent: 01 September 2020 15:36 >To: Shiju Jose >Cc: linux-e...@vger.kernel.org; linux-a...@vger.kernel.org; linux- >ker...@vger.kernel.org; tony.l...@intel.com; r...@rjwysocki.net; >james.mo...@arm.com; l...@kern

[PATCH 5.4 149/214] block: fix get_max_io_size()

2020-09-01 Thread Greg Kroah-Hartman
From: Keith Busch commit e4b469c66f3cbb81c2e94d31123d7bcdf3c1dabd upstream. A previous commit aligning splits to physical block sizes inadvertently modified one return case such that that it now returns 0 length splits when the number of sectors doesn't exceed the physical offset. This later hit

[PATCH 5.4 144/214] macvlan: validate setting of multiple remote source MAC addresses

2020-09-01 Thread Greg Kroah-Hartman
From: Alvin Šipraga [ Upstream commit 8b61fba503904acae24aeb2bd5569b4d6544d48f ] Remote source MAC addresses can be set on a 'source mode' macvlan interface via the IFLA_MACVLAN_MACADDR_DATA attribute. This commit tightens the validation of these MAC addresses to match the validation already per

[PATCH 5.4 148/214] arm64: Allow booting of late CPUs affected by erratum 1418040

2020-09-01 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit bf87bb0881d0f59181fe3bbcf29c609f36483ff8 ] As we can now switch from a system that isn't affected by 1418040 to a system that globally is affected, let's allow affected CPUs to come in at a later time. Signed-off-by: Marc Zyngier Tested-by: Sai Prakash Ranj

[PATCH 5.4 141/214] scsi: qla2xxx: Check if FW supports MQ before enabling

2020-09-01 Thread Greg Kroah-Hartman
From: Saurav Kashyap [ Upstream commit dffa11453313a115157b19021cc2e27ea98e624c ] OS boot during Boot from SAN was stuck at dracut emergency shell after enabling NVMe driver parameter. For non-MQ support the driver was enabling MQ. Add a check to confirm if FW supports MQ. Link: https://lore.ke

[PATCH 5.4 113/214] spi: stm32: clear only asserted irq flags on interrupt

2020-09-01 Thread Greg Kroah-Hartman
From: Tobias Schramm [ Upstream commit ae1ba50f1e706dfd7ce402ac52c1f1f10becad68 ] Previously the stm32h7 interrupt thread cleared all non-masked interrupts. If an interrupt was to occur during the handling of another interrupt its flag would be unset, resulting in a lost interrupt. This patches

[PATCH 5.4 114/214] jbd2: make sure jh have b_transaction set in refile/unfile_buffer

2020-09-01 Thread Greg Kroah-Hartman
From: Lukas Czerner [ Upstream commit 24dc9864914eb5813173cfa53313fcd02e4aea7d ] Callers of __jbd2_journal_unfile_buffer() and __jbd2_journal_refile_buffer() assume that the b_transaction is set. In fact if it's not, we can end up with journal_head refcounting errors leading to crash much later

[PATCH 2/2] serial: core: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/tty/serial/serial_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/serial_

[PATCH 5.4 140/214] scsi: qla2xxx: Fix login timeout

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit abb31aeaa9b20680b0620b23fea5475ea4591e31 ] Multipath errors were seen during failback due to login timeout. The remote device sent LOGO, the local host tore down the session and did relogin. The RSCN arrived indicates remote device is going through failover af

Re: [PATCH 22/28] sgiseeq: convert from dma_cache_sync to dma_sync_single_for_device

2020-09-01 Thread Thomas Bogendoerfer
On Wed, Aug 19, 2020 at 08:55:49AM +0200, Christoph Hellwig wrote: > Use the proper modern API to transfer cache ownership for incoherent DMA. > > Signed-off-by: Christoph Hellwig > --- > drivers/net/ethernet/seeq/sgiseeq.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) >

Re: [PATCH] drm/radeon: Reset ASIC if suspend is not managed by platform firmware

2020-09-01 Thread Kai-Heng Feng
> On Sep 1, 2020, at 22:19, Alex Deucher wrote: > > On Tue, Sep 1, 2020 at 3:32 AM Kai-Heng Feng > wrote: >> >> Suspend with s2idle or by the following steps cause screen frozen: >> # echo devices > /sys/power/pm_test >> # echo freeze > /sys/power/mem >> >> [ 289.625461] [drm:uvd_v1_0_ib_t

[PATCH 5.4 116/214] ext4: handle read only external journal device

2020-09-01 Thread Greg Kroah-Hartman
From: Lukas Czerner [ Upstream commit 273108fa5015eeffc4bacfa5ce272af3434b96e4 ] Ext4 uses blkdev_get_by_dev() to get the block_device for journal device which does check to see if the read-only block device was opened read-only. As a result ext4 will hapily proceed mounting the file system wit

[PATCH 5.4 118/214] ext4: handle option set by mount flags correctly

2020-09-01 Thread Greg Kroah-Hartman
From: Lukas Czerner [ Upstream commit f25391ebb475d3ffb3aa61bb90e3594c841749ef ] Currently there is a problem with mount options that can be both set by vfs using mount flags or by a string parsing in ext4. i_version/iversion options gets lost after remount, for example $ mount -o i_version /d

[PATCH 5.4 120/214] ext4: correctly restore system zone info when remount fails

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit 0f5bde1db174f6c471f0bd27198575719dabe3e5 ] When remounting filesystem fails late during remount handling and block_validity mount option is also changed during the remount, we fail to restore system zone information to a state matching the mount option. This is m

[PATCH v2 1/3] regmap: sdw: add required header files

2020-09-01 Thread Pierre-Louis Bossart
Explicitly add header files used by regmap SoundWire support. Suggested-by: Guennadi Liakhovetski Reviewed-by: Rander Wang Reviewed-by: Guennadi Liakhovetski Reviewed-by: Kai Vehmanen Signed-off-by: Pierre-Louis Bossart --- drivers/base/regmap/regmap-sdw.c | 2 ++ 1 file changed, 2 insertion

[PATCH v2 2/3] soundwire: SDCA: add helper macro to access controls

2020-09-01 Thread Pierre-Louis Bossart
The upcoming SDCA (SoundWire Device Class Audio) specification defines a hierarchical encoding to interface with Class-defined capabilities. The specification is not yet accessible to the general public but this information is released with explicit permission from the MIPI Board to avoid delays w

[PATCH 5.4 106/214] blkcg: fix memleak for iolatency

2020-09-01 Thread Greg Kroah-Hartman
From: Yufen Yu [ Upstream commit 27029b4b18aa5d3b060f0bf2c26dae254132cfce ] Normally, blkcg_iolatency_exit() will free related memory in iolatency when cleanup queue. But if blk_throtl_init() return error and queue init fail, blkcg_iolatency_exit() will not do that for us. Then it cause memory l

[PATCH 5.4 108/214] nvme: multipath: round-robin: fix single non-optimized path case

2020-09-01 Thread Greg Kroah-Hartman
From: Martin Wilck [ Upstream commit 93eb0381e13d249a18ed4aae203291ff977e7ffb ] If there's only one usable, non-optimized path, nvme_round_robin_path() returns NULL, which is wrong. Fix it by falling back to "old", like in the single optimized path case. Also, if the active path isn't changed, t

[PATCH 5.4 110/214] i2c: core: Dont fail PRP0001 enumeration when no ID table exist

2020-09-01 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit e3cb82c6d6f6c27ab754e13ae29bdd6b949982e2 ] When commit c647a9d1 ("i2c: core: Allow empty id_table in ACPI case as well") fixed the enumeration of I²C devices on ACPI enabled platforms when driver has no ID table, it missed the PRP0001 support. i2c_dev

[PATCH 5.4 139/214] scsi: ufs: Clean up completed request without interrupt notification

2020-09-01 Thread Greg Kroah-Hartman
From: Stanley Chu [ Upstream commit b10178ee7fa88b68a9e8adc06534d2605cb0ec23 ] If somehow no interrupt notification is raised for a completed request and its doorbell bit is cleared by host, UFS driver needs to cleanup its outstanding bit in ufshcd_abort(). Otherwise, system may behave abnormall

[PATCH] x86/special_insn: reverse __force_order logic

2020-09-01 Thread Nadav Amit
From: Nadav Amit The __force_order logic seems to be inverted. __force_order is supposedly used to manipulate the compiler to use its memory dependencies analysis to enforce orders between CR writes and reads. Therefore, the memory should behave as a "CR": when the CR is read, the memory should b

[PATCH 5.4 094/214] PCI: qcom: Change duplicate PCI reset to phy reset

2020-09-01 Thread Greg Kroah-Hartman
From: Abhishek Sahu [ Upstream commit dd58318c019f10bc94db36df66af6c55d4c0cbba ] The deinit issues reset_control_assert for PCI twice and does not contain phy reset. Link: https://lore.kernel.org/r/20200615210608.21469-4-ansuels...@gmail.com Signed-off-by: Abhishek Sahu Signed-off-by: Ansuel S

[PATCH 5.4 105/214] blk-mq: insert request not through ->queue_rq into sw/scheduler queue

2020-09-01 Thread Greg Kroah-Hartman
From: Ming Lei [ Upstream commit db03f88fae8a2c8007caafa70287798817df2875 ] c616cbee97ae ("blk-mq: punt failed direct issue to dispatch list") supposed to add request which has been through ->queue_rq() to the hw queue dispatch list, however it adds request running out of budget or driver tag to

[PATCH 5.4 103/214] bfq: fix blkio cgroup leakage v4

2020-09-01 Thread Greg Kroah-Hartman
From: Dmitry Monakhov [ Upstream commit 2de791ab4918969d8108f15238a701968375f235 ] Changes from v1: - update commit description with proper ref-accounting justification commit db37a34c563b ("block, bfq: get a ref to a group when adding it to a service tree") introduce leak forbfq_group and

Re: [PATCH 07/28] 53c700: improve non-coherent DMA handling

2020-09-01 Thread Helge Deller
On 01.09.20 17:22, James Bottomley wrote: > On Tue, 2020-09-01 at 16:05 +0100, Matthew Wilcox wrote: >> On Tue, Sep 01, 2020 at 07:52:40AM -0700, James Bottomley wrote: >>> I think this looks mostly OK, except for one misnamed parameter >>> below. Unfortunately, the last non-coherent parisc was the

Re: [PATCH 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

2020-09-01 Thread Oleg Nesterov
On 08/31, Christian Brauner wrote: > > --- /dev/null > +++ b/include/uapi/linux/pidfd.h > @@ -0,0 +1,12 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > + > +#ifndef _UAPI_LINUX_PIDFD_H > +#define _UAPI_LINUX_PIDFD_H > + > +#include > +#include > + > +/* Flags for pidfd_open

[PATCH v2 3/3] regmap: sdw: add support for SoundWire 1.2 MBQ

2020-09-01 Thread Pierre-Louis Bossart
The SoundWire 1.1 specification only allowed for reads and writes of bytes. The SoundWire 1.2 specification adds a new capability to transfer "Multi-Byte Quantities" (MBQ) across the bus. The transfers still happens one-byte-at-a-time, but the update is atomic. For example when writing a 16-bit vo

[PATCH v2] x86/uaccess: Use pointer masking to limit uaccess speculation

2020-09-01 Thread Josh Poimboeuf
The x86 uaccess code uses barrier_nospec() in various places to prevent speculative dereferencing of user-controlled pointers (which might be combined with further gadgets or CPU bugs to leak data). There are some issues with the current implementation: - The barrier_nospec() in copy_from_user()

[PATCH 5.4 063/214] USB: sisusbvga: Fix a potential UB casued by left shifting a negative value

2020-09-01 Thread Greg Kroah-Hartman
From: Changming Liu [ Upstream commit 2b53a19284f537168fb506f2f40d7fda40a01162 ] The char buffer buf, receives data directly from user space, so its content might be negative and its elements are left shifted to form an unsigned integer. Since left shifting a negative value is undefined behavio

[PATCH 5.4 065/214] efi: provide empty efi_enter_virtual_mode implementation

2020-09-01 Thread Greg Kroah-Hartman
From: Andrey Konovalov [ Upstream commit 2c547f9da0539ad1f7ef7f08c8c82036d61b011a ] When CONFIG_EFI is not enabled, we might get an undefined reference to efi_enter_virtual_mode() error, if this efi_enabled() call isn't inlined into start_kernel(). This happens in particular, if start_kernel()

[PATCH 5.4 059/214] hugetlbfs: prevent filesystem stacking of hugetlbfs

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Kravetz [ Upstream commit 15568299b7d9988063afce60731df605ab236e2a ] syzbot found issues with having hugetlbfs on a union/overlay as reported in [1]. Due to the limitations (no write) and special functionality of hugetlbfs, it does not work well in filesystem stacking. There are no

[PATCH 5.4 102/214] block: Fix page_is_mergeable() for compound pages

2020-09-01 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit d81665198b83e55a28339d1f3e4890ed8a434556 ] If we pass in an offset which is larger than PAGE_SIZE, then page_is_mergeable() thinks it's not mergeable with the previous bio_vec, leading to a large number of bio_vecs being used. Use a slightly more

[PATCH 5.4 067/214] Revert "ath10k: fix DMA related firmware crashes on multiple devices"

2020-09-01 Thread Greg Kroah-Hartman
From: Zhi Chen [ Upstream commit a1769bb68a850508a492e3674ab1e5e479b11254 ] This reverts commit 76d164f582150fd0259ec0fcbc485470bcd8033e. PCIe hung issue was observed on multiple platforms. The issue was reproduced when DUT was configured as AP and associated with 50+ STAs. For QCA9984/QCA9888,

[PATCH 5.4 064/214] brcmfmac: Set timeout value when configuring power save

2020-09-01 Thread Greg Kroah-Hartman
From: Nicolas Saenz Julienne [ Upstream commit 3dc05ffb04436020f63138186dbc4f37bd938552 ] Set the timeout value as per cfg80211's set_power_mgmt() request. If the requested value value is left undefined we set it to 2 seconds, the maximum supported value. Signed-off-by: Nicolas Saenz Julienne

[PATCH 5.4 068/214] sched/uclamp: Protect uclamp fast path code with static key

2020-09-01 Thread Greg Kroah-Hartman
From: Qais Yousef [ Upstream commit 46609ce227039fd192e0ecc7d940bed587fd2c78 ] There is a report that when uclamp is enabled, a netperf UDP test regresses compared to a kernel compiled without uclamp. https://lore.kernel.org/lkml/20200529100806.ga3...@suse.de/ While investigating the root caus

[PATCH 5.4 138/214] scsi: ufs: Improve interrupt handling for shared interrupts

2020-09-01 Thread Greg Kroah-Hartman
From: Adrian Hunter [ Upstream commit 127d5f7c4b653b8be5eb3b2c7bbe13728f9003ff ] For shared interrupts, the interrupt status might be zero, so check that first. Link: https://lore.kernel.org/r/20200811133936.19171-2-adrian.hun...@intel.com Reviewed-by: Avri Altman Signed-off-by: Adrian Hunter

[PATCH 5.4 137/214] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-09-01 Thread Greg Kroah-Hartman
From: Stanley Chu [ Upstream commit 93b6c5db06028a3b55122bbb74d0715dd8ca4ae0 ] In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC commands

[PATCH 5.4 126/214] drm/amd/powerplay: correct Vega20 cached smu feature state

2020-09-01 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 266d81d9eed30f4994d76a2b237c63ece062eefe ] Correct the cached smu feature state on pp_features sysfs setting. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/powerplay/hwmgr/vega20_hwmg

[PATCH 5.4 062/214] powerpc/spufs: add CONFIG_COREDUMP dependency

2020-09-01 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit b648a5132ca3237a0f1ce5d871fff342b0efcf8a ] The kernel test robot pointed out a slightly different error message after recent commit 5456ffdee666 ("powerpc/spufs: simplify spufs core dumping") to spufs for a configuration that never worked: powerpc64-linu

[PATCH 5.4 136/214] scsi: fcoe: Fix I/O path allocation

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Christie [ Upstream commit fa39ab5184d64563cd36f2fb5f0d3fbad83a432c ] ixgbe_fcoe_ddp_setup() can be called from the main I/O path and is called with a spin_lock held, so we have to use GFP_ATOMIC allocation instead of GFP_KERNEL. Link: https://lore.kernel.org/r/1596831813-9839-1-git

[PATCH 5.4 089/214] mm/vunmap: add cond_resched() in vunmap_pmd_range

2020-09-01 Thread Greg Kroah-Hartman
[ Upstream commit e47110e90584a22e9980510b00d0dfad3a83354e ] Like zap_pte_range add cond_resched so that we can avoid softlockups as reported below. On non-preemptible kernel with large I/O map region (like the one we get when using persistent memory with sector mode), an unmap of the namespace c

<    4   5   6   7   8   9   10   11   12   13   >