[PATCH 5.9 012/255] spi: imx: fix runtime pm support for !CONFIG_PM

2020-11-17 Thread Greg Kroah-Hartman
From: Sascha Hauer [ Upstream commit 43b6bf406cd0319e522638f97c9086b7beebaeaa ] 525c9e5a32bd introduced pm_runtime support for the i.MX SPI driver. With this pm_runtime is used to bring up the clocks initially. When CONFIG_PM is disabled the clocks are no longer enabled and the driver doesn't

[PATCH 5.9 011/255] ASoC: codecs: wsa881x: add missing stream rates and format

2020-11-17 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla [ Upstream commit f47d0742515748162d3fc35f04331c5b81c0ed47 ] Add missing supported rates and formats for the stream, without which attempt to do playback will fail to find any matching rates/format. Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support")

[PATCH 5.4 145/151] drm/i915: Correctly set SFC capability for video engines

2020-11-17 Thread Greg Kroah-Hartman
From: Venkata Sandeep Dhanalakota commit 5ce6861d36ed5207aff9e5eead4c7cc38a986586 upstream. SFC capability of video engines is not set correctly because i915 is testing for incorrect bits. Fixes: c5d3e39caa45 ("drm/i915: Engine discovery query") Cc: Matt Roper Cc: Tvrtko Ursulin

[PATCH 5.9 007/255] ASoC: Intel: kbl_rt5663_max98927: Fix kabylake_ssp_fixup function

2020-11-17 Thread Greg Kroah-Hartman
From: Tomasz Figa [ Upstream commit 9fe9efd6924c9a62ebb759025bb8927e398f51f7 ] This is a copy of commit 5c5f1baee85a ("ASoC: Intel: kbl_rt5663_rt5514_max98927: Fix kabylake_ssp_fixup function") applied to the kbl_rt5663_max98927 board file. Original explanation of the change:

[PATCH 5.4 148/151] perf scripting python: Avoid declaring function pointers with a visibility attribute

2020-11-17 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit d0e7b0c71fbb653de90a7163ef46912a96f0bdaf upstream. To avoid this: util/scripting-engines/trace-event-python.c: In function 'python_start_script': util/scripting-engines/trace-event-python.c:1595:2: error: 'visibility' attribute ignored

[PATCH 5.4 147/151] x86/speculation: Allow IBPB to be conditionally enabled on CPUs with always-on STIBP

2020-11-17 Thread Greg Kroah-Hartman
From: Anand K Mistry commit 1978b3a53a74e3230cd46932b149c6e62e832e9a upstream. On AMD CPUs which have the feature X86_FEATURE_AMD_STIBP_ALWAYS_ON, STIBP is set to on and spectre_v2_user_stibp == SPECTRE_V2_USER_STRICT_PREFERRED At the same time, IBPB can be set to conditional. However,

[PATCH 5.9 019/255] ASoC: codecs: wcd9335: Set digital gain range correctly

2020-11-17 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla [ Upstream commit 6d6bc54ab4f2404d46078abc04bf4dee4db01def ] digital gain range is -84dB min to 40dB max, however this was not correctly specified in the range. Fix this by with correct range! Fixes: 8c4f021d806a ("ASoC: wcd9335: add basic controls") Signed-off-by:

[PATCH 5.9 000/255] 5.9.9-rc1 review

2020-11-17 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.9.9 release. There are 255 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 19 Nov 2020 12:20:51 +. Anything

[PATCH 5.9 005/255] KVM: arm64: Force PTE mapping on fault resulting in a device mapping

2020-11-17 Thread Greg Kroah-Hartman
From: Santosh Shukla [ Upstream commit 91a2c34b7d6fadc9c5d9433c620ea4c32ee7cae8 ] VFIO allows a device driver to resolve a fault by mapping a MMIO range. This can be subsequently result in user_mem_abort() to try and compute a huge mapping based on the MMIO pfn, which is a sure recipe for

[PATCH 5.4 151/151] Convert trailing spaces and periods in path components

2020-11-17 Thread Greg Kroah-Hartman
From: Boris Protopopov commit 57c176074057531b249cf522d90c22313fa74b0b upstream. When converting trailing spaces and periods in paths, do so for every component of the path, not just the last component. If the conversion is not done for every path component, then subsequent operations in

[PATCH 5.9 039/255] ALSA: hda: prevent undefined shift in snd_hdac_ext_bus_get_link()

2020-11-17 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 158e1886b6262c1d1c96a18c85fac5219b8bf804 ] This is harmless, but the "addr" comes from the user and it could lead to a negative shift or to shift wrapping if it's too high. Fixes: 0b00a5615dc4 ("ALSA: hdac_ext: add hdac extended controller") Signed-off-by:

[PATCH 5.9 001/255] drm/i915: Hold onto an explicit ref to i915_vma_work.pinned

2020-11-17 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit 537457a979a02a410b555fab289dcb28b588f33b ] Since __vma_release is run by a kworker after the fence has been signaled, it is no longer protected by the active reference on the vma, and so the alias of vw->pinned to vma->obj is also not protected by a

[PATCH 5.4 142/151] net/x25: Fix null-ptr-deref in x25_connect

2020-11-17 Thread Greg Kroah-Hartman
From: Martin Schiller [ Upstream commit 361182308766a265b6c521879b34302617a8c209 ] This fixes a regression for blocking connects introduced by commit 4becb7ee5b3d ("net/x25: Fix x25_neigh refcnt leak when x25 disconnect"). The x25->neighbour is already set to "NULL" by x25_disconnect() now,

[PATCH 5.9 025/255] netfilter: nf_tables: missing validation from the abort path

2020-11-17 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit c0391b6ab810381df632677a1dcd63d05b6d ] If userspace does not include the trailing end of batch message, then nfnetlink aborts the transaction. This allows to check that ruleset updates trigger no errors. After this patch, invoking this command from

[PATCH 5.9 034/255] drm/panfrost: move devfreq_init()/fini() in device

2020-11-17 Thread Greg Kroah-Hartman
From: Clément Péron [ Upstream commit 25e247bbf85af3ad721dfeb2e2caf405f43b7e66 ] Later we will introduce devfreq probing regulator if they are present. As regulator should be probe only one time we need to get this logic in the device_init(). panfrost_device is already taking care of

[PATCH 5.9 050/255] can: j1939: j1939_sk_bind(): return failure if netdev is down

2020-11-17 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit 08c487d8d807535f509ed80c6a10ad90e6872139 ] When a netdev down event occurs after a successful call to j1939_sk_bind(), j1939_netdev_notify() can handle it correctly. But if the netdev already in down state before calling j1939_sk_bind(),

[PATCH 5.9 052/255] can: xilinx_can: handle failure cases of pm_runtime_get_sync

2020-11-17 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit 79c4bdd5a7026a5aab606b53053b643585e7 ] Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost Link:

[PATCH 5.9 035/255] drm/panfrost: Fix module unload

2020-11-17 Thread Greg Kroah-Hartman
From: Steven Price [ Upstream commit 876b15d2c88d8c005f1aebeaa23f1e448d834757 ] When unloading the call to pm_runtime_put_sync_suspend() will attempt to turn the GPU cores off, however panfrost_device_fini() will have turned the clocks off. This leads to the hardware locking up. Instead don't

[PATCH 5.9 043/255] afs: Fix incorrect freeing of the ACL passed to the YFS ACL store op

2020-11-17 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit f4c79144edd8a49ffca8fa737a31d606be742a34 ] The cleanup for the yfs_store_opaque_acl2_operation calls the wrong function to destroy the ACL content buffer. It's an afs_acl struct, not a yfs_acl struct - and the free function for latter may pass invalid

[PATCH 5.9 026/255] PCI: Always enable ACS even if no ACS Capability

2020-11-17 Thread Greg Kroah-Hartman
From: Rajat Jain [ Upstream commit 462b58fb033996e999cc213ed0b430d4f22a28fe ] Some devices support ACS functionality even though they don't have a spec-compliant ACS Capability; pci_enable_acs() has a quirk mechanism to handle them. We want to enable ACS whenever possible, but 52fbf5bdeeef

[PATCH 5.9 044/255] vfio/pci: Implement ioeventfd thread handler for contended memory lock

2020-11-17 Thread Greg Kroah-Hartman
From: Alex Williamson [ Upstream commit 38565c93c8a1306dc5f245572a545fbea908ac41 ] The ioeventfd is called under spinlock with interrupts disabled, therefore if the memory lock is contended defer code that might sleep to a thread context. Fixes: bc93b9ae0151 ("vfio-pci: Avoid recursive

[PATCH 5.9 027/255] netfilter: ipset: Update byte and packet counters regardless of whether they match

2020-11-17 Thread Greg Kroah-Hartman
From: Stefano Brivio [ Upstream commit 7d10e62c2ff8e084c136c94d32d9a94de4d31248 ] In ip_set_match_extensions(), for sets with counters, we take care of updating counters themselves by calling ip_set_update_counter(), and of checking if the given comparison and values match, by calling

[PATCH 5.9 098/255] cfg80211: initialize wdev data earlier

2020-11-17 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit 9bdaf3b91efd229dd272b228e13df10310c80d19 ] There's a race condition in the netdev registration in that NETDEV_REGISTER actually happens after the netdev is available, and so if we initialize things only there, we might get called with an uninitialized wdev

[PATCH 5.9 086/255] ALSA: hda: Separate runtime and system suspend

2020-11-17 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit f5dac54d9d93826a776dffc848df76746f7135bb ] Both pm_runtime_force_suspend() and pm_runtime_force_resume() have some implicit checks, so it can make code flow more straightforward if we separate runtime and system suspend callbacks. High Definition Audio

[PATCH 5.9 063/255] PCI: mvebu: Fix duplicate resource requests

2020-11-17 Thread Greg Kroah-Hartman
From: Rob Herring [ Upstream commit 832ea234277a2465ec6602fa6a4db5cd9ee87ae3 ] With commit 669cbc708122 ("PCI: Move DT resource setup into devm_pci_alloc_host_bridge()"), the DT 'ranges' is parsed and populated into resources when the host bridge is allocated. The resources are requested as

[PATCH 5.9 072/255] tpm: efi: Dont create binary_bios_measurements file for an empty log

2020-11-17 Thread Greg Kroah-Hartman
From: Tyler Hicks [ Upstream commit 8ffd778aff45be760292225049e0141255d4ad6e ] Mimic the pre-existing ACPI and Device Tree event log behavior by not creating the binary_bios_measurements file when the EFI TPM event log is empty. This fixes the following NULL pointer dereference that can occur

[PATCH 5.9 054/255] can: peak_usb: peak_usb_get_ts_time(): fix timestamp wrapping

2020-11-17 Thread Greg Kroah-Hartman
From: Stephane Grosjean [ Upstream commit ecc7b4187dd388549544195fb13a11b4ea8e6a84 ] Fabian Inostroza has discovered a potential problem in the hardware timestamp reporting from the PCAN-USB USB CAN interface (only), related to the fact that a timestamp of an event may precede the timestamp

[PATCH 5.9 083/255] usb: raw-gadget: fix memory leak in gadget_setup

2020-11-17 Thread Greg Kroah-Hartman
From: Zqiang [ Upstream commit 129aa9734559a17990ee933351c7b6956f1dba62 ] When fetch 'event' from event queue, after copy its address space content to user space, the 'event' the memory space pointed to by the 'event' pointer need be freed. BUG: memory leak unreferenced object

[PATCH 5.9 070/255] RISC-V: Fix the VDSO symbol generaton for binutils-2.35+

2020-11-17 Thread Greg Kroah-Hartman
From: Palmer Dabbelt [ Upstream commit c2c81bb2f69138f902e1a58d3bef6ad97fb8a92c ] We were relying on GNU ld's ability to re-link executable files in order to extract our VDSO symbols. This behavior was deemed a bug as of binutils-2.35 (specifically the binutils-gdb commit a87e1817a4 ("Have the

[PATCH 5.9 079/255] ASoC: SOF: loader: handle all SOF_IPC_EXT types

2020-11-17 Thread Greg Kroah-Hartman
From: Bard Liao [ Upstream commit 6e5329c6e6032cd997400b43b8299f607a61883e ] Do not emit a warning for extended firmware header fields that are not used by kernel. This creates unnecessary noise to kernel logs like: sof-audio-pci :00:1f.3: warning: unknown ext header type 3 size 0x1c

[PATCH 5.9 078/255] ASoC: cs42l51: manage mclk shutdown delay

2020-11-17 Thread Greg Kroah-Hartman
From: Olivier Moysan [ Upstream commit 20afe581c9b980848ad097c4d54dde9bec7593ef ] A delay must be introduced before the shutdown down of the mclk, as stated in CS42L51 datasheet. Otherwise the codec may produce some noise after the end of DAPM power down sequence. The delay between DAC and

[PATCH 5.9 056/255] can: flexcan: remove FLEXCAN_QUIRK_DISABLE_MECR quirk for LS1021A

2020-11-17 Thread Greg Kroah-Hartman
From: Joakim Zhang [ Upstream commit 018799649071a1638c0c130526af36747df4355a ] After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LS1021A doesn't support ECC feature, so remove FLEXCAN_QUIRK_DISABLE_MECR quirk. Fixes: 99b7668c04b27 ("can: flexcan: adding platform

[PATCH 5.9 099/255] mac80211: always wind down STA state

2020-11-17 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go

Re: [PATCH] random: avoid arch_get_random_seed_long() when collecting IRQ randomness

2020-11-17 Thread Ard Biesheuvel
On Wed, 11 Nov 2020 at 09:19, Ard Biesheuvel wrote: > > (+ Eric) > > On Thu, 5 Nov 2020 at 16:29, Ard Biesheuvel wrote: > > > > When reseeding the CRNG periodically, arch_get_random_seed_long() is > > called to obtain entropy from an architecture specific source if one > > is implemented. In

[PATCH 5.9 040/255] iommu/vt-d: Fix sid not set issue in intel_svm_bind_gpasid()

2020-11-17 Thread Greg Kroah-Hartman
From: Liu Yi L [ Upstream commit eea4e29ab8bef254b228d6e1e3de188087b2c7d0 ] Should get correct sid and set it into sdev. Because we execute 'sdev->sid != req->rid' in the loop of prq_event_thread(). Fixes: eb8d93ea3c1d ("iommu/vt-d: Report page request faults for guest SVA") Signed-off-by: Liu

[PATCH 5.9 055/255] can: peak_canfd: pucan_handle_can_rx(): fix echo management when loopback is on

2020-11-17 Thread Greg Kroah-Hartman
From: Stephane Grosjean [ Upstream commit 93ef65e5a6357cc7381f85fcec9283fe29970045 ] Echo management is driven by PUCAN_MSG_LOOPED_BACK bit, while loopback frames are identified with PUCAN_MSG_SELF_RECEIVE bit. Those bits are set for each outgoing frame written to the IP core so that a copy of

[PATCH 5.9 080/255] usb: dwc3: pci: add support for the Intel Alder Lake-S

2020-11-17 Thread Greg Kroah-Hartman
From: Heikki Krogerus [ Upstream commit 1384ab4fee12c4c4f8bd37bc9f8686881587b286 ] This patch adds the necessary PCI ID for Intel Alder Lake-S devices. Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/dwc3/dwc3-pci.c | 4 1 file

[PATCH 5.9 059/255] xfs: fix missing CoW blocks writeback conversion retry

2020-11-17 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit c2f09217a4305478c55adc9a98692488dd19cd32 ] In commit 7588cbeec6df, we tried to fix a race stemming from the lack of coordination between higher level code that wants to allocate and remap CoW fork extents into the data fork. Christoph cites as examples

[PATCH 5.9 029/255] powerpc/eeh_cache: Fix a possible debugfs deadlock

2020-11-17 Thread Greg Kroah-Hartman
From: Qian Cai [ Upstream commit fd552e0542b4532483289cce48fdbd27b692984b ] Lockdep complains that a possible deadlock below in eeh_addr_cache_show() because it is acquiring a lock with IRQ enabled, but eeh_addr_cache_insert_dev() needs to acquire the same lock with IRQ disabled. Let's just

[PATCH 5.9 069/255] kbuild: explicitly specify the build id style

2020-11-17 Thread Greg Kroah-Hartman
From: Bill Wendling [ Upstream commit a968433723310f35898b4a2f635a7991aeef66b1 ] ld's --build-id defaults to "sha1" style, while lld defaults to "fast". The build IDs are very different between the two, which may confuse programs that reference them. Signed-off-by: Bill Wendling Acked-by:

[PATCH 5.9 053/255] can: peak_usb: add range checking in decode operations

2020-11-17 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit a6921dd524fe31d1f460c161d3526a407533b6db ] These values come from skb->data so Smatch considers them untrusted. I believe Smatch is correct but I don't have a way to test this. The usb_if->dev[] array has 2 elements but the index is in the 0-15 range

[PATCH 5.9 060/255] xfs: fix scrub flagging rtinherit even if there is no rt device

2020-11-17 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit c1f6b1ac00756a7108e5fcb849a2f8230c0b62a5 ] The kernel has always allowed directories to have the rtinherit flag set, even if there is no rt device, so this check is wrong. Fixes: 80e4e1268802 ("xfs: scrub inodes") Signed-off-by: Darrick J. Wong

[PATCH 5.9 062/255] spi: fsl-dspi: fix wrong pointer in suspend/resume

2020-11-17 Thread Greg Kroah-Hartman
From: Zhao Qiang [ Upstream commit 9bd77a9ce31dd242fece27219d14fbee5068dd85 ] Since commit 530b5affc675 ("spi: fsl-dspi: fix use-after-free in remove path"), this driver causes a "NULL pointer dereference" in dspi_suspend/resume. This is because since this commit, the drivers private data point

[PATCH 5.9 068/255] x86/speculation: Allow IBPB to be conditionally enabled on CPUs with always-on STIBP

2020-11-17 Thread Greg Kroah-Hartman
From: Anand K Mistry [ Upstream commit 1978b3a53a74e3230cd46932b149c6e62e832e9a ] On AMD CPUs which have the feature X86_FEATURE_AMD_STIBP_ALWAYS_ON, STIBP is set to on and spectre_v2_user_stibp == SPECTRE_V2_USER_STRICT_PREFERRED At the same time, IBPB can be set to conditional. However,

[PATCH 5.9 089/255] gfs2: Free rd_bits later in gfs2_clear_rgrpd to fix use-after-free

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit d0f17d3883f1e3f085d38572c2ea8edbd5150172 ] Function gfs2_clear_rgrpd calls kfree(rgd->rd_bits) before calling return_all_reservations, but return_all_reservations still dereferences rgd->rd_bits in __rs_deltree. Fix that by moving the call to kfree below

[PATCH 5.9 073/255] KVM: arm64: ARM_SMCCC_ARCH_WORKAROUND_1 doesnt return SMCCC_RET_NOT_REQUIRED

2020-11-17 Thread Greg Kroah-Hartman
From: Stephen Boyd commit 1de111b51b829bcf01d2e57971f8fd07a665fa3f upstream. According to the SMCCC spec[1](7.5.2 Discovery) the ARM_SMCCC_ARCH_WORKAROUND_1 function id only returns 0, 1, and SMCCC_RET_NOT_SUPPORTED. 0 is "workaround required and safe to call this function" 1 is "workaround

[PATCH 5.9 084/255] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-11-17 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit e3e40312567087fbe6880f316cb2b0e1f3d8a82c ] More recent libc implementations are now using openat/openat2 system calls so also add do_sys_openat2 to the tracing so that the test passes on these systems because do_sys_open may not be called. Thanks to

[PATCH 5.9 076/255] ASoC: mediatek: mt8183-da7219: fix DAPM paths for rt1015

2020-11-17 Thread Greg Kroah-Hartman
From: Tzung-Bi Shih [ Upstream commit eb5a558705c7f63d06b4ddd072898b1ca894e053 ] RT1015's output widget name is "SPO" instead of "Speaker". Fixes it to use the correct names. Signed-off-by: Tzung-Bi Shih Link: https://lore.kernel.org/r/20201019044724.1601476-1-tzun...@google.com

[PATCH 5.9 109/255] nvme-tcp: avoid race between time out and tear down

2020-11-17 Thread Greg Kroah-Hartman
From: Chao Leng [ Upstream commit d6f66210f4b1aa2f5944f0e34e0f8db44f499f92 ] Now use teardown_lock to serialize for time out and tear down. This may cause abnormal: first cancel all request in tear down, then time out may complete the request again, but the request may already be freed or

[PATCH 5.9 101/255] wireguard: selftests: check that route_me_harder packets use the right sk

2020-11-17 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld [ Upstream commit af8afcf1fdd5f365f70e2386c2d8c7a1abd853d7 ] If netfilter changes the packet mark, the packet is rerouted. The ip_route_me_harder family of functions fails to use the right sk, opting to instead use skb->sk, resulting in a routing loop when used with

[PATCH 5.9 110/255] nvme-rdma: avoid repeated request completion

2020-11-17 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit fdf58e02adecbef4c7cbb2073d8ea225e6fd5f26 ] The request may be executed asynchronously, and rq->state may be changed to IDLE. To avoid repeated request completion, only MQ_RQ_COMPLETE of rq->state is checked in nvme_rdma_complete_timed_out. It is not safe,

[PATCH 5.9 103/255] Revert "nvme-pci: remove last_sq_tail"

2020-11-17 Thread Greg Kroah-Hartman
From: Keith Busch [ Upstream commit 38210800bf66d7302da1bb5b624ad68638da1562 ] Multiple CPUs may be mapped to the same hctx, allowing mulitple submission contexts to attempt commit_rqs(). We need to verify we're not writing the same doorbell value multiple times since that's a spec violation.

[PATCH 5.9 100/255] cfg80211: regulatory: Fix inconsistent format argument

2020-11-17 Thread Greg Kroah-Hartman
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link:

[PATCH 5.9 112/255] iommu/amd: Increase interrupt remapping table limit to 512 entries

2020-11-17 Thread Greg Kroah-Hartman
From: Suravee Suthikulpanit [ Upstream commit 73db2fc595f358460ce32bcaa3be1f0cce4a2db1 ] Certain device drivers allocate IO queues on a per-cpu basis. On AMD EPYC platform, which can support up-to 256 cpu threads, this can exceed the current MAX_IRQ_PER_TABLE limit of 256, and result in the

[PATCH 5.9 117/255] amd/amdgpu: Disable VCN DPG mode for Picasso

2020-11-17 Thread Greg Kroah-Hartman
From: Veerabadhran Gopalakrishnan [ Upstream commit c6d2b0fbb893d5c7dda405aa0e7bcbecf1c75f98 ] Concurrent operation of VCN and JPEG decoder in DPG mode is causing ring timeout due to power state. Signed-off-by: Veerabadhran Gopalakrishnan Reviewed-by: Leo Liu Signed-off-by: Alex Deucher

[PATCH 5.9 107/255] nvme: introduce nvme_sync_io_queues

2020-11-17 Thread Greg Kroah-Hartman
From: Chao Leng [ Upstream commit 04800fbff4764ab7b32c49d19628605a5d4cb85c ] Introduce sync io queues for some scenarios which just only need sync io queues not sync all queues. Signed-off-by: Chao Leng Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin

[PATCH 5.9 115/255] vfio/pci: Bypass IGD init in case of -ENODEV

2020-11-17 Thread Greg Kroah-Hartman
From: Fred Gao [ Upstream commit e4eccb853664de7bcf9518fb658f35e748bf1f68 ] Bypass the IGD initialization when -ENODEV returns, that should be the case if opregion is not available for IGD or within discrete graphics device's option ROM, or host/lpc bridge is not found. Then use of -ENODEV

[PATCH 5.9 116/255] i2c: mediatek: move dma reset before i2c reset

2020-11-17 Thread Greg Kroah-Hartman
From: Qii Wang [ Upstream commit aafced673c06b7c77040c1df42e2e965be5d0376 ] The i2c driver default do dma reset after i2c reset, but sometimes i2c reset will trigger dma tx2rx, then apdma write data to dram which has been i2c_put_dma_safe_msg_buf(kfree). Move dma reset before i2c reset in

[PATCH 5.9 092/255] scsi: hpsa: Fix memory leak in hpsa_init_one()

2020-11-17 Thread Greg Kroah-Hartman
From: Keita Suzuki [ Upstream commit af61bc1e33d2c0ec22612b46050f5b58ac56a962 ] When hpsa_scsi_add_host() fails, h->lastlogicals is leaked since it is missing a free() in the error handler. Fix this by adding free() when hpsa_scsi_add_host() fails. Link:

[PATCH 5.9 122/255] i2c: sh_mobile: implement atomic transfers

2020-11-17 Thread Greg Kroah-Hartman
From: Ulrich Hecht [ Upstream commit a49cc1fe9d64a2dc4e19b599204f403e5d25f44b ] Implements atomic transfers to fix reboot/shutdown on r8a7790 Lager and similar boards. Signed-off-by: Ulrich Hecht Tested-by: Wolfram Sang Tested-by: Geert Uytterhoeven [wsa: some whitespace fixing]

[PATCH 5.9 138/255] net/mlx5e: Use spin_lock_bh for async_icosq_lock

2020-11-17 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy [ Upstream commit f42139ba49791ab6b12443c60044872705b74a1e ] async_icosq_lock may be taken from softirq and non-softirq contexts. It requires protection with spin_lock_bh, otherwise a softirq may be triggered in the middle of the critical section, and it may deadlock if

[PATCH 5.9 133/255] libbpf, hashmap: Fix undefined behavior in hash_bits

2020-11-17 Thread Greg Kroah-Hartman
From: Ian Rogers [ Upstream commit 7a078d2d18801bba7bde7337a823d7342299acf7 ] If bits is 0, the case when the map is empty, then the >> is the size of the register which is undefined behavior - on x86 it is the same as a shift by 0. Fix by handling the 0 case explicitly and guarding calls to

[PATCH 5.9 091/255] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, but when it

[PATCH 5.9 097/255] mac80211: fix use of skb payload instead of header

2020-11-17 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for

[PATCH 5.9 096/255] drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running

2020-11-17 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 786436b453001dafe81025389f96bf9dac1e9690 ] This reverts commit f87812284172a9809820d10143b573d833cd3f75 ("drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume"). It was intended to fix Hawaii S4(hibernation) issue but break S3. As

[PATCH 5.9 137/255] net/mlx5e: Protect encap route dev from concurrent release

2020-11-17 Thread Greg Kroah-Hartman
From: Vlad Buslov [ Upstream commit 78c906e430b13d30a8cfbdef4ccbbe1686841a9e ] In functions mlx5e_route_lookup_ipv{4|6}() route_dev can be arbitrary net device and not necessary mlx5 eswitch port representor. As such, in order to ensure that route_dev is not destroyed concurrent the code needs

[PATCH 5.9 118/255] iomap: clean up writeback state logic on writepage error

2020-11-17 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit 50e7d6c7a5210063b9a6f0d8799d9d1440907fcf ] The iomap writepage error handling logic is a mash of old and slightly broken XFS writepage logic. When keepwrite writeback state tracking was introduced in XFS in commit 0d085a529b42 ("xfs: ensure WB_SYNC_ALL

[PATCH 5.9 088/255] x86/boot/compressed/64: Introduce sev_status

2020-11-17 Thread Greg Kroah-Hartman
From: Joerg Roedel [ Upstream commit 3ad84246a4097010f3ae3d6944120c0be00e9e7a ] Introduce sev_status and initialize it together with sme_me_mask to have an indicator which SEV features are enabled. Signed-off-by: Joerg Roedel Signed-off-by: Borislav Petkov Reviewed-by: Tom Lendacky Link:

[PATCH 5.9 095/255] drm/amd/pm: perform SMC reset on suspend/hibernation

2020-11-17 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 277b080f98803cb73a83fb234f0be83a10e63958 ] So that the succeeding resume can be performed based on a clean state. Signed-off-by: Evan Quan Tested-by: Sandeep Raghuraman Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 5.9 132/255] bpf: Dont rely on GCC __attribute__((optimize)) to disable GCSE

2020-11-17 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 080b6f40763565f65ebb9540219c71ce885cf568 ] Commit 3193c0836 ("bpf: Disable GCC -fgcse optimization for ___bpf_prog_run()") introduced a __no_fgcse macro that expands to a function scope __attribute__((optimize("-fno-gcse"))), to disable a GCC specific

[PATCH 5.9 120/255] arm64: kexec_file: try more regions if loading segments fails

2020-11-17 Thread Greg Kroah-Hartman
From: Benjamin Gwin [ Upstream commit 108aa503657ee2fe8aa071dc620d96372c252ecd ] It's possible that the first region picked for the new kernel will make it impossible to fit the other segments in the required 32GB window, especially if we have a very large initrd. Instead of giving up, we can

[PATCH 5.9 094/255] drm/amd/pm: correct the baco reset sequence for CI ASICs

2020-11-17 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit c108725ef589af462be6b957f63c7925e38213eb ] Correct some registers bitmasks and add mmBIOS_SCRATCH_7 reset. Signed-off-by: Evan Quan Tested-by: Sandeep Raghuraman Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 5.9 134/255] pinctrl: mcp23s08: Use full chunk of memory for regmap configuration

2020-11-17 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 2b12c13637134897ba320bd8906a8d918ee7069b ] It appears that simplification of mcp23s08_spi_regmap_init() made a regression due to wrong size calculation for dev_kmemdup() call. It misses the fact that config variable is already a pointer, thus the sizeof()

[PATCH 5.9 093/255] drm/amdgpu: perform srbm soft reset always on SDMA resume

2020-11-17 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 253475c455eb5f8da34faa1af92709e7bb414624 ] This can address the random SDMA hang after pci config reset seen on Hawaii. Signed-off-by: Evan Quan Tested-by: Sandeep Raghuraman Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin

[PATCH 5.9 113/255] s390/smp: move rcu_cpu_starting() earlier

2020-11-17 Thread Greg Kroah-Hartman
From: Qian Cai [ Upstream commit de5d9dae150ca1c1b5c7676711a9ca139d1a8dec ] The call to rcu_cpu_starting() in smp_init_secondary() is not early enough in the CPU-hotplug onlining process, which results in lockdep splats as follows: WARNING: suspicious RCU usage -

[PATCH 5.9 151/255] pinctrl: qcom: sm8250: Specify PDC map

2020-11-17 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit b41efeed507addecb92e83dd444d86c1fbe38ae0 ] Specify the PDC mapping for SM8250, so that gpio interrupts are propertly mapped to the wakeup IRQs of the PDC. Fixes: 4e3ec9e407ad ("pinctrl: qcom: Add sm8250 pinctrl driver.") Signed-off-by: Bjorn Andersson

[PATCH 5.9 180/255] perf: Simplify group_sched_in()

2020-11-17 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 251ff2d49347793d348babcff745289b11910e96 ] Collate the error paths. Code duplication only leads to divergence and extra bugs. Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20201029162901.972161...@infradead.org Signed-off-by:

[PATCH 5.9 167/255] cosa: Add missing kfree in error path of cosa_write

2020-11-17 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 52755b66ddcef2e897778fac5656df18817b59ab ] If memory allocation for 'kbuf' succeed, cosa_write() doesn't have a corresponding kfree() in exception handling. Thus add kfree() for this function implementation. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by:

[PATCH 5.9 176/255] perf: Fix get_recursion_context()

2020-11-17 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit ce0f17fc93f63ee91428af10b7b2ddef38cd19e5 ] One should use in_serving_softirq() to detect SoftIRQ context. Fixes: 96f6d302 ("perf_counter: avoid recursion") Signed-off-by: Peter Zijlstra (Intel) Link:

[PATCH 5.9 156/255] lan743x: correctly handle chips with internal PHY

2020-11-17 Thread Greg Kroah-Hartman
From: Sven Van Asbroeck [ Upstream commit 902a66e08ceaadb9a7a1ab3a4f3af611cd1d8cba ] Commit 6f197fb63850 ("lan743x: Added fixed link and RGMII support") assumes that chips with an internal PHY will never have a devicetree entry. This is incorrect: even for these chips, a devicetree entry can be

[PATCH 5.9 129/255] pinctrl: intel: Set default bias in case no particular value given

2020-11-17 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit f3c75e7a9349d1d33eb53ddc1b31640994969f73 ] When GPIO library asks pin control to set the bias, it doesn't pass any value of it and argument is considered boolean (and this is true for ACPI GpioIo() / GpioInt() resources, by the way). Thus, individual

[PATCH 5.9 174/255] mm: memcontrol: fix missing wakeup polling thread

2020-11-17 Thread Greg Kroah-Hartman
From: Muchun Song [ Upstream commit 8b21ca0218d29cc6bb7028125c7e5a10dfb4730c ] When we poll the swap.events, we can miss being woken up when the swap event occurs. Because we didn't notify. Fixes: f3a53a3a1e5b ("mm, memcontrol: implement memory.swap.events") Signed-off-by: Muchun Song

[PATCH 5.9 148/255] r8169: fix potential skb double free in an error path

2020-11-17 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit cc6528bc9a0c901c83b8220a2e2617f3354d6dd9 ] The caller of rtl8169_tso_csum_v2() frees the skb if false is returned. eth_skb_pad() internally frees the skb on error what would result in a double free. Therefore use __skb_put_padto() directly and instruct it

[PATCH 5.9 170/255] vrf: Fix fast path output packet handling with async Netfilter rules

2020-11-17 Thread Greg Kroah-Hartman
From: Martin Willi [ Upstream commit 9e2b7fa2df4365e99934901da4fb4af52d81e820 ] VRF devices use an optimized direct path on output if a default qdisc is involved, calling Netfilter hooks directly. This path, however, does not consider Netfilter rules completing asynchronously, such as with

[PATCH 5.9 181/255] perf: Fix event multiplexing for exclusive groups

2020-11-17 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 2714c3962f304d031d5016c963c4b459337b0749 ] Commit 9e6302056f80 ("perf: Use hrtimers for event multiplexing") placed the hrtimer (re)start call in the wrong place. Instead of capturing all scheduling failures, it only considered the PMU failure. The

[PATCH 5.9 136/255] net/mlx5e: Fix modify header actions memory leak

2020-11-17 Thread Greg Kroah-Hartman
From: Maor Dickman [ Upstream commit e68e28b4a9d71261e3f8fd05a72d6cf0b443a493 ] Modify header actions are allocated during parse tc actions and only freed during the flow creation, however, on error flow the allocated memory is wrongly unfreed. Fix this by calling dealloc_mod_hdr_actions in

[PATCH 5.9 121/255] riscv: Set text_offset correctly for M-Mode

2020-11-17 Thread Greg Kroah-Hartman
From: Sean Anderson [ Upstream commit 79605f1394261995c2b955c906a5a20fb27cdc84 ] M-Mode Linux is loaded at the start of RAM, not 2MB later. Perhaps this should be calculated based on PAGE_OFFSET somehow? Even better would be to deprecate text_offset and instead introduce something absolute.

[PATCH 5.9 173/255] kernel/watchdog: fix watchdog_allowed_mask not used warning

2020-11-17 Thread Greg Kroah-Hartman
From: Santosh Sivaraj [ Upstream commit e7e046155af04cdca5e1157f28b07e1651eb317b ] Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled. Fixes: 7feeb9cd4f5b ("watchdog/sysctl: Clean up sysctl variable name space") Signed-off-by: Santosh Sivaraj Signed-off-by: Andrew Morton

[PATCH 5.9 163/255] xfs: fix a missing unlock on error in xfs_fs_map_blocks

2020-11-17 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit 2bd3fa793aaa7e98b74e3653fdcc72fa753913b5 ] We also need to drop the iolock when invalidate_inode_pages2 fails, not only on all other error or successful cases. Fixes: 527851124d10 ("xfs: implement pNFS export operations") Signed-off-by: Christoph

[PATCH 5.9 172/255] arm64/mm: Validate hotplug range before creating linear mapping

2020-11-17 Thread Greg Kroah-Hartman
From: Anshuman Khandual [ Upstream commit 58284a901b426e6130672e9f14c30dfd5a9dbde0 ] During memory hotplug process, the linear mapping should not be created for a given memory range if that would fall outside the maximum allowed linear range. Else it might cause memory corruption in the kernel

[PATCH 5.9 143/255] SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()

2020-11-17 Thread Greg Kroah-Hartman
From: Chuck Lever [ Upstream commit d321ff589c16d8c2207485a6d7fbdb14e873d46e ] The TP_fast_assign() section is careful enough not to dereference xdr->rqst if it's NULL. The TP_STRUCT__entry section is not. Fixes: 5582863f450c ("SUNRPC: Add XDR overflow trace event") Signed-off-by: Chuck Lever

[PATCH 5.9 166/255] ch_ktls: tcb update fails sometimes

2020-11-17 Thread Greg Kroah-Hartman
From: Rohit Maheshwari [ Upstream commit 7d01c428c86b525dc780226924d74df2048cf411 ] context id and port id should be filled while sending tcb update. Fixes: 5a4b9fe7fece ("cxgb4/chcr: complete record tx handling") Signed-off-by: Rohit Maheshwari Signed-off-by: Jakub Kicinski Signed-off-by:

[PATCH 5.9 165/255] ch_ktls: Update cheksum information

2020-11-17 Thread Greg Kroah-Hartman
From: Rohit Maheshwari [ Upstream commit 86716b51d14fc2201938939b323ba3ad99186910 ] Checksum update was missing in the WR. Fixes: 429765a149f1 ("chcr: handle partial end part of a record") Signed-off-by: Rohit Maheshwari Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin ---

[PATCH 5.9 124/255] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED

2020-11-17 Thread Greg Kroah-Hartman
From: Michael Wu [ Upstream commit 3b5f7f10ff6e6b66f553e12cc50d9bb751ce60ad ] Sometimes we would get the following flow when doing an i2cset: 0x1 STATUS SLAVE_ACTIVITY=0x1 : RAW_INTR_STAT=0x514 : INTR_STAT=0x4 I2C_SLAVE_WRITE_RECEIVED 0x1 STATUS SLAVE_ACTIVITY=0x0 : RAW_INTR_STAT=0x714 :

[PATCH 5.9 119/255] selftests: proc: fix warning: _GNU_SOURCE redefined

2020-11-17 Thread Greg Kroah-Hartman
From: Tommi Rantala [ Upstream commit f3ae6c6e8a3ea49076d826c64e63ea78fbf9db43 ] Makefile already contains -D_GNU_SOURCE, so we can remove it from the *.c files. Signed-off-by: Tommi Rantala Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin ---

[PATCH 5.9 175/255] afs: Fix afs_write_end() when called with copied == 0 [ver #3]

2020-11-17 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 3ad216ee73abc554ed8f13f4f8b70845a7bef6da ] When afs_write_end() is called with copied == 0, it tries to set the dirty region, but there's no way to actually encode a 0-length region in the encoding in page->private. "0,0", for example, indicates a 1-byte

[PATCH 5.9 157/255] net: phy: realtek: support paged operations on RTL8201CP

2020-11-17 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit f3037c5a31b58a73b32a36e938ad0560085acadd ] The RTL8401-internal PHY identifies as RTL8201CP, and the init sequence in r8169, copied from vendor driver r8168, uses paged operations. Therefore set the same paged operation callbacks as for the other Realtek

[PATCH 5.9 184/255] erofs: derive atime instead of leaving it empty

2020-11-17 Thread Greg Kroah-Hartman
From: Gao Xiang commit d3938ee23e97bfcac2e0eb6b356875da73d700df upstream. EROFS has _only one_ ondisk timestamp (ctime is currently documented and recorded, we might also record mtime instead with a new compat feature if needed) for each extended inode since EROFS isn't mainly for archival

Re: [PATCH -next] irq-chip/gic-v3-its: Fixed an issue where the ITS executes the residual commands in the queue again when the ITS wakes up from sleep mode.

2020-11-17 Thread xuqiang (M)
在 2020/11/10 17:09, xuqiang (M) 写道: 在 2020/11/9 18:43, Marc Zyngier 写道: On 2020-11-09 03:05, xuqiang (M) wrote: 在 2020/11/8 0:54, Marc Zyngier 写道: [dropping Jason, whose email address has been bouncing for weeks now] On 2020-11-07 10:42, Xu Qiang wrote: On my platform,

[PATCH 5.9 185/255] ext4: correctly report "not supported" for {usr,grp}jquota when !CONFIG_QUOTA

2020-11-17 Thread Greg Kroah-Hartman
From: Kaixu Xia commit 174fe5ba2d1ea0d6c5ab2a7d4aa058d6d497ae4d upstream. The macro MOPT_Q is used to indicates the mount option is related to quota stuff and is defined to be MOPT_NOSUPPORT when CONFIG_QUOTA is disabled. Normally the quota options are handled explicitly, so it didn't matter

  1   2   3   4   5   6   7   8   9   10   >