[PATCH 5.4 05/83] usb: dwc3: gadget: Do link recovery for SS and SSP

2020-05-01 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit d0550cd20e52558ecf6847a0f96ebd5d944c17e4 upstream. The controller always supports link recovery for device in SS and SSP. Remove the speed limit check. Also, when the device is in RESUME or RESET state, it means the controller received the resume/reset request. The

[PATCH 5.4 23/83] rxrpc: Fix DATA Tx to disable nofrag for UDP on AF_INET6 socket

2020-05-01 Thread Greg Kroah-Hartman
From: David Howells commit 0e631eee17dcea576ab922fa70e4fdbd596ee452 upstream. Fix the DATA packet transmission to disable nofrag for UDPv4 on an AF_INET6 socket as well as UDPv6 when trying to transmit fragmentably. Without this, packets filled to the normal size used by the kernel AFS client

[PATCH 5.4 17/83] ASoC: meson: axg-card: fix codec-to-codec link setup

2020-05-01 Thread Greg Kroah-Hartman
From: Jerome Brunet commit 1164284270779e1865cc2046a2a01b58a1e858a9 upstream. Since the addition of commit 9b5db059366a ("ASoC: soc-pcm: dpcm: Only allow playback/capture if supported"), meson-axg cards which have codec-to-codec links fail to init and Oops: Unable to handle kernel NULL

[PATCH 5.4 06/83] kbuild: fix DT binding schema rule again to avoid needless rebuilds

2020-05-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 3d4b2238684ac919394eba7fb51bb7c6ab57 upstream. Since commit 7a0496056064 ("kbuild: fix DT binding schema rule to detect command line changes"), this rule is every time re-run even if you change nothing. cmd_dtc takes one additional parameter to pass to the -O

[PATCH 5.4 35/83] PCI: Add ACS quirk for Zhaoxin Root/Downstream Ports

2020-05-01 Thread Greg Kroah-Hartman
From: Raymond Pang commit 299bd044a6f332b4a6c8f708575c27cad70a35c1 upstream. Many Zhaoxin Root Ports and Switch Downstream Ports do provide ACS-like capability but have no ACS Capability Structure. Peer-to-Peer transactions could be blocked between these ports, so add quirk so devices behind

[PATCH 5.4 25/83] xfs: acquire superblock freeze protection on eofblocks scans

2020-05-01 Thread Greg Kroah-Hartman
From: Brian Foster commit 4b674b9ac852937af1f8c62f730c325fb6eadcdb upstream. The filesystem freeze sequence in XFS waits on any background eofblocks or cowblocks scans to complete before the filesystem is quiesced. At this point, the freezer has already stopped the transaction subsystem,

Re: [PATCH] power: charger-manager: fix adding of optional properties

2020-05-01 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 03:39:53PM +0200, Michał Mirosław wrote: > Use num_properties to index added property. > This will prevent overwriting POWER_SUPPLY_PROP_CHARGE_NOW with > POWER_SUPPLY_PROP_CURRENT_NOW and leaving the latter entry > uninitialized. > > For clarity, num_properties is

[PATCH 5.4 32/83] PCI: Make ACS quirk implementations more uniform

2020-05-01 Thread Greg Kroah-Hartman
From: Bjorn Helgaas commit c8de8ed2dcaac82e5d76d467dc0b02e0ee79809b upstream. The ACS quirks differ in needless ways, which makes them look more different than they really are. Reorder the ACS flags in order of definitions in the spec: PCI_ACS_SV Source Validation PCI_ACS_TB

[PATCH 5.4 50/83] mm: shmem: disable interrupt when acquiring info->lock in userfaultfd_copy path

2020-05-01 Thread Greg Kroah-Hartman
From: Yang Shi commit 94b7cc01da5a3cc4f3da5e0ff492ef008bb555d6 upstream. Syzbot reported the below lockdep splat: WARNING: possible irq lock inversion dependency detected 5.6.0-rc7-syzkaller #0 Not tainted

[PATCH 5.4 48/83] bpf, x86_32: Fix clobbering of dst for BPF_JSET

2020-05-01 Thread Greg Kroah-Hartman
From: Luke Nelson commit 50fe7ebb6475711c15b3397467e6424e20026d94 upstream. The current JIT clobbers the destination register for BPF_JSET BPF_X and BPF_K by using "and" and "or" instructions. This is fine when the destination register is a temporary loaded from a register stored on the stack

[PATCH 5.4 53/83] libbpf: Initialize *nl_pid so gcc 10 is happy

2020-05-01 Thread Greg Kroah-Hartman
From: Jeremy Cline [ Upstream commit 4734b0fefbbf98f8c119eb8344efa19dac82cd2c ] Builds of Fedora's kernel-tools package started to fail with "may be used uninitialized" warnings for nl_pid in bpf_set_link_xdp_fd() and bpf_get_link_xdp_info() on the s390 architecture. Although

[PATCH 5.4 66/83] xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status

2020-05-01 Thread Greg Kroah-Hartman
From: Juergen Gross [ Upstream commit 6b51fd3f65a22e3d1471b18a1d56247e246edd46 ] xenbus_map_ring_valloc() maps a ring page and returns the status of the used grant (0 meaning success). There are Xen hypervisors which might return the value 1 for the status of a failed grant mapping due to a

[PATCH] power: charger-manager: fix adding of optional properties

2020-05-01 Thread Michał Mirosław
Use num_properties to index added property. This will prevent overwriting POWER_SUPPLY_PROP_CHARGE_NOW with POWER_SUPPLY_PROP_CURRENT_NOW and leaving the latter entry uninitialized. For clarity, num_properties is initialized with length of the copied array instead of relying on previously

[PATCH 5.4 33/83] PCI: Unify ACS quirk desired vs provided checking

2020-05-01 Thread Greg Kroah-Hartman
From: Bjorn Helgaas commit 7cf2cba43f15c74bac46dc5f0326805d25ef514d upstream. Most of the ACS quirks have a similar pattern of: acs_flags &= ~( ); return acs_flags ? 0 : 1; Pull this out into a helper function to simplify the quirks slightly. The helper function is also a convenient

[PATCH 5.4 46/83] um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/

2020-05-01 Thread Greg Kroah-Hartman
From: Vitor Massaru Iha commit 63ec90f18204f2fe072df108de8a021b28b1b173 upstream. In this workflow: $ make ARCH=um defconfig && make ARCH=um -j8 [snip] $ make ARCH=um mrproper [snip] $ make ARCH=um defconfig O=./build_um && make ARCH=um -j8 O=./build_um [snip] CC

[PATCH 5.4 56/83] signal: check sig before setting info in kill_pid_usb_asyncio

2020-05-01 Thread Greg Kroah-Hartman
From: Zhiqiang Liu [ Upstream commit eaec2b0bd30690575c581eebffae64bfb7f684ac ] In kill_pid_usb_asyncio, if signal is not valid, we do not need to set info struct. Signed-off-by: Zhiqiang Liu Acked-by: Christian Brauner Link:

[PATCH 5.4 28/83] net/mlx5e: Dont trigger IRQ multiple times on XSK wakeup to avoid WQ overruns

2020-05-01 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy commit e7e0004abdd6f83ae4be5613b29ed396beff576c upstream. XSK wakeup function triggers NAPI by posting a NOP WQE to a special XSK ICOSQ. When the application floods the driver with wakeup requests by calling sendto() in a certain pattern that ends up in

[PATCH 5.4 72/83] ext4: increase wait time needed before reuse of deleted inode numbers

2020-05-01 Thread Greg Kroah-Hartman
From: Theodore Ts'o [ Upstream commit a17a9d935dc4a50acefaf319d58030f1da7f115a ] Current wait times have proven to be too short to protect against inode reuses that lead to metadata inconsistencies. Now that we will retry the inode allocation if we can't find any recently deleted inodes, it's

[PATCH 5.4 68/83] net: stmmac: socfpga: Allow all RGMII modes

2020-05-01 Thread Greg Kroah-Hartman
From: Atsushi Nemoto [ Upstream commit a7a0d6269652846671312b29992143f56e2866b8 ] Allow all the RGMII modes to be used. (Not only "rgmii", "rgmii-id" but "rgmii-txid", "rgmii-rxid") Signed-off-by: Atsushi Nemoto Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 5.4 60/83] ALSA: hda: Keep the controller initialization even if no codecs found

2020-05-01 Thread Greg Kroah-Hartman
From: Takashi Iwai [ Upstream commit 9479e75fca370a5220784f7596bf598c4dad0b9b ] Currently, when the HD-audio controller driver doesn't detect any codecs, it tries to abort the probe. But this abort happens at the delayed probe, i.e. the primary probe call already returned success, hence the

[PATCH 5.4 71/83] ext4: use matching invalidatepage in ext4_writepage

2020-05-01 Thread Greg Kroah-Hartman
From: yangerkun [ Upstream commit c2a559bc0e7ed5a715ad6b947025b33cb7c05ea7 ] Run generic/388 with journal data mode sometimes may trigger the warning in ext4_invalidatepage. Actually, we should use the matching invalidatepage in ext4_writepage. Signed-off-by: yangerkun Signed-off-by: Theodore

[PATCH 5.4 77/83] qed: Fix race condition between scheduling and destroying the slowpath workqueue

2020-05-01 Thread Greg Kroah-Hartman
From: Yuval Basson commit 3b85720d3fd72e6ef4de252cd2f67548eb645eb4 upstream. Calling queue_delayed_work concurrently with destroy_workqueue might race to an unexpected outcome - scheduled task after wq is destroyed or other resources (like ptt_pool) are freed (yields NULL pointer dereference).

Re: [PATCH 2/2] mfd: Introduce QTI I2C PMIC controller

2020-05-01 Thread kbuild test robot
Hi Guru, Thank you for the patch! Yet something to improve: [auto build test ERROR on ljones-mfd/for-mfd-next] [also build test ERROR on v5.7-rc3 next-20200501] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base

[PATCH 5.6 001/106] ubifs: Fix ubifs_tnc_lookup() usage in do_kill_orphans()

2020-05-01 Thread Greg Kroah-Hartman
From: Richard Weinberger commit 4ab25ac8b2b5514151d5f91cf9514df08dd26938 upstream. Orphans are allowed to point to deleted inodes. So -ENOENT is not a fatal error. Reported-by: Кочетков Максим Reported-and-tested-by: "Christian Berger" Tested-by: Karl Olsen Tested-by: Jef Driesen Fixes:

[PATCH 5.6 003/106] ASoC: stm32: sai: fix sai probe

2020-05-01 Thread Greg Kroah-Hartman
From: Olivier Moysan commit e2bcb65782f91390952e849e21b82ed7cb05697f upstream. pcm config must be set before snd_dmaengine_pcm_register() call. Fixes: 0d6defc7e0e4 ("ASoC: stm32: sai: manage rebind issue") Signed-off-by: Olivier Moysan Link:

[PATCH 5.4 82/83] ASoC: soc-core: disable route checks for legacy devices

2020-05-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart commit a22ae72b86a4f754e8d25fbf9ea5a8f77365e531 upstream. v5.4 changes in soc-core tightened the checks on soc_dapm_add_routes, which results in the ASoC card probe failing. Introduce a flag to be set in machine drivers to prevent the probe from stopping in case of

[PATCH 5.4 54/83] net: fec: set GPR bit on suspend by DT configuration.

2020-05-01 Thread Greg Kroah-Hartman
From: Martin Fuzzey [ Upstream commit da722186f6549d752ea5b5fbc18111833c81a133 ] On some SoCs, such as the i.MX6, it is necessary to set a bit in the SoC level GPR register before suspending for wake on lan to work. The fec platform callback sleep_mode_enable was intended to allow this but the

[PATCH 5.4 80/83] qed: Fix use after free in qed_chain_free

2020-05-01 Thread Greg Kroah-Hartman
From: Yuval Basson commit 8063f761cd7c17fc1d0018728936e0c33a25388a upstream. The qed_chain data structure was modified in commit 1a4a69751f4d ("qed: Chain support for external PBL") to support receiving an external pbl (due to iWARP FW requirements). The pages pointed to by the pbl are

[PATCH 5.4 73/83] ext4: convert BUG_ONs to WARN_ONs in mballoc.c

2020-05-01 Thread Greg Kroah-Hartman
From: Theodore Ts'o [ Upstream commit 907ea529fc4c3296701d2bfc8b831dd2a8121a34 ] If the in-core buddy bitmap gets corrupted (or out of sync with the block bitmap), issue a WARN_ON and try to recover. In most cases this involves skipping trying to allocate out of a particular block group. We

[PATCH 5.6 008/106] usb: gadget: udc: atmel: Fix vbus disconnect handling

2020-05-01 Thread Greg Kroah-Hartman
From: Cristian Birsan commit 12b94da411f9c6d950beb067d913024fd5617a61 upstream. A DMA transfer can be in progress while vbus is lost due to a cable disconnect. For endpoints that use DMA, this condition can lead to peripheral hang. The patch ensures that endpoints are disabled before the clocks

Re: [PATCH v3 6/7] drm/mediatek: mtk_dsi: Use the drm_panel_bridge API

2020-05-01 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年4月17日 週五 下午11:06寫道: > > Replace the manual panel handling code by a drm_panel_bridge. This > simplifies the driver and allows all components in the display pipeline > to be treated as bridges, paving the way to generic connector handling. > Reviewed-by:

[PATCH 5.6 022/106] ASoC: wm8960: Fix wrong clock after suspend & resume

2020-05-01 Thread Greg Kroah-Hartman
From: Shengjiu Wang commit 1e060a453c8604311fb45ae2f84f67ed673329b4 upstream. After suspend & resume, wm8960_hw_params may be called when bias_level is not SND_SOC_BIAS_ON, then wm8960_configure_clocking is not called. But if sample rate is changed at that time, then the output clock rate will

[PATCH 5.6 000/106] 5.6.9-rc1 review

2020-05-01 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.6.9 release. There are 106 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 Sun, 03 May 2020 13:12:02 +. Anything

[PATCH 5.6 004/106] usb: dwc3: gadget: Do link recovery for SS and SSP

2020-05-01 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit d0550cd20e52558ecf6847a0f96ebd5d944c17e4 upstream. The controller always supports link recovery for device in SS and SSP. Remove the speed limit check. Also, when the device is in RESUME or RESET state, it means the controller received the resume/reset request. The

Re: [PATCH v3 6/7] drm/mediatek: mtk_dsi: Use the drm_panel_bridge API

2020-05-01 Thread Chun-Kuang Hu
Enric Balletbo i Serra 於 2020年4月17日 週五 下午11:06寫道: > > Replace the manual panel handling code by a drm_panel_bridge. This > simplifies the driver and allows all components in the display pipeline > to be treated as bridges, paving the way to generic connector handling. > > Signed-off-by: Enric

[PATCH 5.6 019/106] ASoC: samsung: s3c24xx-i2s: Fix build after removal of DAI suspend/resume

2020-05-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit ec21bdc6dd16d74b3674ef1fd12ae8e4e7418603 upstream. Commit 450312b640f9 ("ASoC: soc-core: remove DAI suspend/resume") removed the DAI side suspend/resume hooks and switched entirely to component suspend/resume. However the Samsung SoC s3c-i2s-v2 driver was not

Re: [PATCH net-next 1/3] ptp: Add adjphase function to support phase offset control.

2020-05-01 Thread Vincent Cheng
On Thu, Apr 30, 2020 at 11:37:34PM EDT, Richard Cochran wrote: >On Wed, Apr 29, 2020 at 08:28:23PM -0400, vincent.cheng...@renesas.com wrote: >> diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c >> index acabbe7..c46ff98 100644 >> --- a/drivers/ptp/ptp_clock.c >> +++

[PATCH 5.6 032/106] hwmon: (drivetemp) Return -ENODATA for invalid temperatures

2020-05-01 Thread Greg Kroah-Hartman
From: Guenter Roeck commit ed08ebb7124e90a99420bb913d602907d377d03d upstream. Holger Hoffstätte observed that Samsung 850 Pro may return invalid temperatures for a short period of time after resume. Return -ENODATA to userspace if this is observed. Fixes: 5b46903d8bf3 ("hwmon: Driver for disk

Re: [PATCH v3 02/11] power: charger-manager: don't write through desc->properties

2020-05-01 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 03:30:08PM +0200, Michał Mirosław wrote: > On Fri, May 01, 2020 at 02:38:49PM +0200, Sebastian Reichel wrote: > > Hi, > > > > On Fri, Apr 03, 2020 at 10:20:31PM +0200, Michał Mirosław wrote: > > > psy_desc->properties will become pointer to const. Avoid writing > > >

[PATCH 5.6 016/106] s390/ftrace: fix potential crashes when switching tracers

2020-05-01 Thread Greg Kroah-Hartman
From: Philipp Rudo commit 8ebf6da9db1b2a20bb86cc1bee2552e894d03308 upstream. Switching tracers include instruction patching. To prevent that a instruction is patched while it's read the instruction patching is done in stop_machine 'context'. This also means that any function called during

[PATCH 5.6 026/106] bpf: Forbid XADD on spilled pointers for unprivileged users

2020-05-01 Thread Greg Kroah-Hartman
From: Jann Horn commit 6e7e63cbb023976d828cdb22422606bf77baa8a9 upstream. When check_xadd() verifies an XADD operation on a pointer to a stack slot containing a spilled pointer, check_stack_read() verifies that the read, which is part of XADD, is valid. However, since the placeholder value -1

[PATCH 5.6 009/106] afs: Make record checking use TASK_UNINTERRUPTIBLE when appropriate

2020-05-01 Thread Greg Kroah-Hartman
From: David Howells commit c4bfda16d1b40d1c5941c61b5aa336bdd2d9904a upstream. When an operation is meant to be done uninterruptibly (such as FS.StoreData), we should not be allowing volume and server record checking to be interrupted. Fixes: d2ddc776a458 ("afs: Overhaul volume and server

[PATCH 5.6 015/106] counter: 104-quad-8: Add lock guards - generic interface

2020-05-01 Thread Greg Kroah-Hartman
From: Syed Nayyar Waris commit fc069262261c43ed11d639dadcf982e79bfe652b upstream. Add lock protection from race conditions to 104-quad-8 counter driver generic interface code changes. Mutex calls used for protection. Fixes: f1d8a071d45b ("counter: 104-quad-8: Add Generic Counter interface

[PATCH 5.6 041/106] net/mlx5e: Dont trigger IRQ multiple times on XSK wakeup to avoid WQ overruns

2020-05-01 Thread Greg Kroah-Hartman
From: Maxim Mikityanskiy commit e7e0004abdd6f83ae4be5613b29ed396beff576c upstream. XSK wakeup function triggers NAPI by posting a NOP WQE to a special XSK ICOSQ. When the application floods the driver with wakeup requests by calling sendto() in a certain pattern that ends up in

[PATCH 5.6 056/106] PM: sleep: core: Switch back to async_schedule_dev()

2020-05-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 09beebd8f93b3c8bf894e342f0a203a5c612478c upstream. Commit 8b9ec6b73277 ("PM core: Use new async_schedule_dev command") introduced a new function for better performance. However commit f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper") went back to the

[PATCH 5.6 091/106] ext4: convert BUG_ONs to WARN_ONs in mballoc.c

2020-05-01 Thread Greg Kroah-Hartman
From: Theodore Ts'o [ Upstream commit 907ea529fc4c3296701d2bfc8b831dd2a8121a34 ] If the in-core buddy bitmap gets corrupted (or out of sync with the block bitmap), issue a WARN_ON and try to recover. In most cases this involves skipping trying to allocate out of a particular block group. We

[PATCH 5.6 043/106] PCI: Avoid ASMedia XHCI USB PME# from D0 defect

2020-05-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 2880325bda8d53566dcb9725abc929eec871608e upstream. The ASMedia USB XHCI Controller claims to support generating PME# while in D0: 01:00.0 USB controller: ASMedia Technology Inc. Device 2142 (prog-if 30 [XHCI]) Subsystem: SUNIX Co., Ltd. Device 312b

[PATCH] net: dsa: sja1105: fix speed setting for 10 MBPS

2020-05-01 Thread Colin King
From: Colin Ian King The current logic for speed checking will never set the speed to 10 MBPS because bmcr & BMCR_SPEED10 is always 0 since BMCR_SPEED10 is 0. Also the erroneous setting where BMCR_SPEED1000 and BMCR_SPEED100 are both set causes the speed to be 1000 MBS. Fix this by masking bps

[PATCH 5.6 045/106] PCI: Add ACS quirk for Zhaoxin multi-function devices

2020-05-01 Thread Greg Kroah-Hartman
From: Raymond Pang commit 0325837c51cb7c9a5bd3e354ac0c0cda0667d50e upstream. Some Zhaoxin endpoints are implemented as multi-function devices without an ACS capability, but they actually don't support peer-to-peer transactions. Add ACS quirks to declare DMA isolation. Link:

[PATCH 5.6 055/106] netfilter: nat: fix error handling upon registering inet hook

2020-05-01 Thread Greg Kroah-Hartman
From: Hillf Danton commit b4faef1739dd1f3b3981b8bf173a2266ea86b1eb upstream. A case of warning was reported by syzbot. [ cut here ] WARNING: CPU: 0 PID: 19934 at net/netfilter/nf_nat_core.c:1106 nf_nat_unregister_fn+0x532/0x5c0 net/netfilter/nf_nat_core.c:1106 Kernel

[PATCH 5.6 081/106] objtool: Support Clang non-section symbols in ORC dump

2020-05-01 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 8782e7cab51b6bf01a5a86471dd82228af1ac185 ] Historically, the relocation symbols for ORC entries have only been section symbols: .text+0: sp:sp+8 bp:(und) type:call end:0 However, the Clang assembler is aggressive about stripping section symbols. In

[PATCH 5.6 061/106] bpf, x86_32: Fix incorrect encoding in BPF_LDX zero-extension

2020-05-01 Thread Greg Kroah-Hartman
From: Luke Nelson commit 5fa9a98fb10380e48a398998cd36a85e4ef711d6 upstream. The current JIT uses the following sequence to zero-extend into the upper 32 bits of the destination register for BPF_LDX BPF_{B,H,W}, when the destination register is not on the stack: EMIT3(0xC7, add_1reg(0xC0,

[PATCH 5.6 062/106] bpf, x86_32: Fix clobbering of dst for BPF_JSET

2020-05-01 Thread Greg Kroah-Hartman
From: Luke Nelson commit 50fe7ebb6475711c15b3397467e6424e20026d94 upstream. The current JIT clobbers the destination register for BPF_JSET BPF_X and BPF_K by using "and" and "or" instructions. This is fine when the destination register is a temporary loaded from a register stored on the stack

[PATCH v3 2/4] floppy: add FD_AUTODETECT_SIZE define for struct floppy_drive_params

2020-05-01 Thread Denis Efremov
Use FD_AUTODETECT_SIZE for autodetect buffer size in struct floppy_drive_params instead of a magic number. Signed-off-by: Denis Efremov --- drivers/block/floppy.c | 9 + include/uapi/linux/fd.h | 5 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git

[PATCH 5.6 047/106] PCI: Move Apex Edge TPU class quirk to fix BAR assignment

2020-05-01 Thread Greg Kroah-Hartman
From: Bjorn Helgaas commit 0a8f41023e8a3c100b3dc458ed2da651bf961ead upstream. Some Google Apex Edge TPU devices have a class code of 0 (PCI_CLASS_NOT_DEFINED). This prevents the PCI core from assigning resources for the Apex BARs because __dev_sort_resources() ignores classless devices, host

[PATCH 5.6 039/106] svcrdma: Fix trace point use-after-free race

2020-05-01 Thread Greg Kroah-Hartman
From: Chuck Lever commit e28b4fc652c1830796a4d3e09565f30c20f9a2cf upstream. I hit this while testing nfsd-5.7 with kernel memory debugging enabled on my server: Mar 30 13:21:45 klimt kernel: BUG: unable to handle page fault for address: 8887e6c279a8 Mar 30 13:21:45 klimt kernel: #PF:

[PATCH 5.6 069/106] net: fec: set GPR bit on suspend by DT configuration.

2020-05-01 Thread Greg Kroah-Hartman
From: Martin Fuzzey [ Upstream commit da722186f6549d752ea5b5fbc18111833c81a133 ] On some SoCs, such as the i.MX6, it is necessary to set a bit in the SoC level GPR register before suspending for wake on lan to work. The fec platform callback sleep_mode_enable was intended to allow this but the

[PATCH 5.6 048/106] ARM: dts: bcm283x: Disable dsi0 node

2020-05-01 Thread Greg Kroah-Hartman
From: Nicolas Saenz Julienne commit 90444b958461a5f8fc299ece0fe17eab15cba1e1 upstream. Since its inception the module was meant to be disabled by default, but the original commit failed to add the relevant property. Fixes: 4aba4cf82054 ("ARM: dts: bcm2835: Add the DSI module nodes and clocks")

[PATCH 5.6 051/106] remoteproc: mtk_scp: use dma_addr_t for DMA API

2020-05-01 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit c2781e4d9bc6d925dfc1ff833dfdaf12b69679de upstream. dma_addr_t and phys_addr_t are distinct types and must not be mixed, as both the values and the size of the type may be different depending on what the remote device uses. In this driver the compiler warns when the

[PATCH 5.6 058/106] um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/

2020-05-01 Thread Greg Kroah-Hartman
From: Vitor Massaru Iha commit 63ec90f18204f2fe072df108de8a021b28b1b173 upstream. In this workflow: $ make ARCH=um defconfig && make ARCH=um -j8 [snip] $ make ARCH=um mrproper [snip] $ make ARCH=um defconfig O=./build_um && make ARCH=um -j8 O=./build_um [snip] CC

[PATCH 5.6 075/106] ALSA: hda: Keep the controller initialization even if no codecs found

2020-05-01 Thread Greg Kroah-Hartman
From: Takashi Iwai [ Upstream commit 9479e75fca370a5220784f7596bf598c4dad0b9b ] Currently, when the HD-audio controller driver doesn't detect any codecs, it tries to abort the probe. But this abort happens at the delayed probe, i.e. the primary probe call already returned success, hence the

[PATCH v3 3/4] floppy: add defines for sizes of cmd & reply buffers of floppy_raw_cmd

2020-05-01 Thread Denis Efremov
Use FD_RAW_CMD_SIZE, FD_RAW_REPLY_SIZE defines instead of magic numbers for cmd & reply buffers of struct floppy_raw_cmd. Remove local to floppy.c MAX_REPLIES define, as it is now FD_RAW_REPLY_SIZE. FD_RAW_CMD_FULLSIZE added as we allow command to also fill reply_count and reply fields.

[PATCH 5.6 095/106] hwmon: (jc42) Fix name to have no illegal characters

2020-05-01 Thread Greg Kroah-Hartman
From: Sascha Hauer [ Upstream commit c843b382e61b5f28a3d917712c69a344f632387c ] The jc42 driver passes I2C client's name as hwmon device name. In case of device tree probed devices this ends up being part of the compatible string, "jc-42.4-temp". This name contains hyphens and the hwmon core

[PATCH 5.6 096/106] sfc: fix XDP-redirect in this driver

2020-05-01 Thread Greg Kroah-Hartman
From: Jesper Dangaard Brouer commit 86e85bf6981c0c265c427d6bfe9e2a0111797444 upstream. XDP-redirect is broken in this driver sfc. XDP_REDIRECT requires tailroom for skb_shared_info when creating an SKB based on the redirected xdp_frame (both in cpumap and veth). The fix requires some initial

[PATCH 5.6 098/106] tipc: Add a missing case of TIPC_DIRECT_MSG type

2020-05-01 Thread Greg Kroah-Hartman
From: Hoang Le commit 8b1e5b0a99f04bda2d6c85ecfe5e68a356c10914 upstream. In the commit f73b12812a3d ("tipc: improve throughput between nodes in netns"), we're missing a check to handle TIPC_DIRECT_MSG type, it's still using old sending mechanism for this message type. So, throughput improvement

[PATCH 5.6 097/106] taprio: do not use BIT() in TCA_TAPRIO_ATTR_FLAG_* definitions

2020-05-01 Thread Greg Kroah-Hartman
From: Eugene Syromiatnikov commit 673040c3a82a7564423e09c791e242a846591e30 upstream. BIT() macro definition is internal to the Linux kernel and is not to be used in UAPI headers; replace its usage with the _BITUL() macro that is already used elsewhere in the header. Fixes: 9c66d1564676

[PATCH v3 4/4] floppy: suppress UBSAN warning in setup_rw_floppy()

2020-05-01 Thread Denis Efremov
UBSAN: array-index-out-of-bounds in drivers/block/floppy.c:1521:45 index 16 is out of range for type 'unsigned char [16]' Call Trace: ... setup_rw_floppy+0x5c3/0x7f0 floppy_ready+0x2be/0x13b0 process_one_work+0x2c1/0x5d0 worker_thread+0x56/0x5e0 kthread+0x122/0x170 ret_from_fork+0x35/0x40

[PATCH 5.6 087/106] sched/vtime: Work around an unitialized variable warning

2020-05-01 Thread Greg Kroah-Hartman
From: Borislav Petkov [ Upstream commit e0d648f9d883ec1efab261af158d73aa30e9dd12 ] Work around this warning: kernel/sched/cputime.c: In function ‘kcpustat_field’: kernel/sched/cputime.c:1007:6: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized] because GCC

[PATCH 5.6 074/106] ALSA: hda: Release resources at error in delayed probe

2020-05-01 Thread Greg Kroah-Hartman
From: Takashi Iwai [ Upstream commit 2393e7555b531a534152ffe7bfd1862cacedaacb ] snd-hda-intel driver handles the most of its probe task in the delayed work (either via workqueue or via firmware loader). When an error happens in the later delayed probe, we can't deregister the device itself

[PATCH 5.6 103/106] ext4: check for non-zero journal inum in ext4_calculate_overhead

2020-05-01 Thread Greg Kroah-Hartman
From: Ritesh Harjani commit f1eec3b0d0a849996ebee733b053efa71803dad5 upstream. While calculating overhead for internal journal, also check that j_inum shouldn't be 0. Otherwise we get below error with xfstests generic/050 with external journal (XXX_LOGDEV config) enabled. It could be simply

[PATCH 5.6 090/106] ext4: increase wait time needed before reuse of deleted inode numbers

2020-05-01 Thread Greg Kroah-Hartman
From: Theodore Ts'o [ Upstream commit a17a9d935dc4a50acefaf319d58030f1da7f115a ] Current wait times have proven to be too short to protect against inode reuses that lead to metadata inconsistencies. Now that we will retry the inode allocation if we can't find any recently deleted inodes, it's

[PATCH v3 1/4] floppy: use print_hex_dump() in setup_DMA()

2020-05-01 Thread Denis Efremov
Remove pr_cont() and use print_hex_dump() in setup_DMA() to print the contents of the cmd buffer. Suggested-by: Joe Perches Signed-off-by: Denis Efremov --- drivers/block/floppy.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/block/floppy.c

[PATCH 5.6 100/106] Crypto: chelsio - Fixes a hang issue during driver registration

2020-05-01 Thread Greg Kroah-Hartman
From: Ayush Sawal commit ad59ddd02de26271b89564962e74d689f1a30b49 upstream. This issue occurs only when multiadapters are present. Hang happens because assign_chcr_device returns u_ctx pointer of adapter which is not yet initialized as for this adapter cxgb_up is not been called yet. The

[PATCH 5.6 102/106] qed: Fix use after free in qed_chain_free

2020-05-01 Thread Greg Kroah-Hartman
From: Yuval Basson commit 8063f761cd7c17fc1d0018728936e0c33a25388a upstream. The qed_chain data structure was modified in commit 1a4a69751f4d ("qed: Chain support for external PBL") to support receiving an external pbl (due to iWARP FW requirements). The pages pointed to by the pbl are

[PATCH 5.6 094/106] irqchip/meson-gpio: Fix HARDIRQ-safe -> HARDIRQ-unsafe lock order

2020-05-01 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 0a66d6f90cf7d704c6a0f663f7058099eb8c97b0 ] Running a lockedp-enabled kernel on a vim3l board (Amlogic SM1) leads to the following splat: [ 13.557138] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 13.587485] ip/456 [HC0[0]:SC0[0]:HE0:SE1]

[PATCH 5.6 106/106] ASoC: stm32: spdifrx: fix regmap status check

2020-05-01 Thread Greg Kroah-Hartman
From: Olivier Moysan commit a168dae5ea14283e8992d5282237bb0d6a3e1c06 upstream. Release resources when exiting on error. Fixes: 1a5c0b28fc56 ("ASoC: stm32: spdifrx: manage identification registers") Signed-off-by: Olivier Moysan Link:

[PATCH 5.6 105/106] ASoC: soc-core: disable route checks for legacy devices

2020-05-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart commit a22ae72b86a4f754e8d25fbf9ea5a8f77365e531 upstream. v5.4 changes in soc-core tightened the checks on soc_dapm_add_routes, which results in the ASoC card probe failing. Introduce a flag to be set in machine drivers to prevent the probe from stopping in case of

[PATCH 5.6 099/106] qed: Fix race condition between scheduling and destroying the slowpath workqueue

2020-05-01 Thread Greg Kroah-Hartman
From: Yuval Basson commit 3b85720d3fd72e6ef4de252cd2f67548eb645eb4 upstream. Calling queue_delayed_work concurrently with destroy_workqueue might race to an unexpected outcome - scheduled task after wq is destroyed or other resources (like ptt_pool) are freed (yields NULL pointer dereference).

[PATCH 5.6 104/106] ASoC: soc-pcm: fix regression in soc_new_pcm()

2020-05-01 Thread Greg Kroah-Hartman
From: Stephan Gerhold commit a4877a6fb2bd2e356a5eaacd86d6b6d69ff84e69 upstream. Commit af4bac11531f ("ASoC: soc-pcm: crash in snd_soc_dapm_new_dai") swapped the SNDRV_PCM_STREAM_* parameter in the snd_soc_dai_stream_valid(cpu_dai, ...) checks. But that works only for codec2codec links. For

[PATCH 5.6 092/106] irqchip/gic-v4.1: Add support for VPENDBASERs Dirty+Valid signaling

2020-05-01 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 96806229ca033f85310bc5c203410189f8a1d2ee ] When a vPE is made resident, the GIC starts parsing the virtual pending table to deliver pending interrupts. This takes place asynchronously, and can at times take a long while. Long enough that the vcpu enters the

[PATCH 5.6 093/106] blk-mq: Put driver tag in blk_mq_dispatch_rq_list() when no budget

2020-05-01 Thread Greg Kroah-Hartman
From: John Garry [ Upstream commit 5fe56de799ad03e92d794c7936bf363922b571df ] If in blk_mq_dispatch_rq_list() we find no budget, then we break of the dispatch loop, but the request may keep the driver tag, evaulated in 'nxt' in the previous loop iteration. Fix by putting the driver tag for

[PATCH 5.6 101/106] net: use indirect call wrappers for skb_copy_datagram_iter()

2020-05-01 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 29f3490ba9d2399d3d1b20c4aa74592d92bd4e11 upstream. TCP recvmsg() calls skb_copy_datagram_iter(), which calls an indirect function (cb pointing to simple_copy_to_iter()) for every MSS (fragment) present in the skb. CONFIG_RETPOLINE=y forces a very expensive operation

[PATCH 5.6 085/106] mac80211: fix channel switch trigger from unknown mesh peer

2020-05-01 Thread Greg Kroah-Hartman
From: Tamizh chelvam [ Upstream commit 93e2d04a1888668183f3fb48666e90b9b31d29e6 ] Previously mesh channel switch happens if beacon contains CSA IE without checking the mesh peer info. Due to that channel switch happens even if the beacon is not from its own mesh peer. Fixing that by checking if

[PATCH 5.6 073/106] xfs: fix partially uninitialized structure in xfs_reflink_remap_extent

2020-05-01 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit c142932c29e533ee892f87b44d8abc5719edceec ] In the reflink extent remap function, it turns out that uirec (the block mapping corresponding only to the part of the passed-in mapping that got unmapped) was not fully initialized. Specifically, br_state was

[PATCH 5.6 070/106] x86: hyperv: report value of misc_features

2020-05-01 Thread Greg Kroah-Hartman
From: Olaf Hering [ Upstream commit 97d9f1c43bedd400301d6f1eff54d46e8c636e47 ] A few kernel features depend on ms_hyperv.misc_features, but unlike its siblings ->features and ->hints, the value was never reported during boot. Signed-off-by: Olaf Hering Link:

[PATCH 5.6 076/106] ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported

2020-05-01 Thread Greg Kroah-Hartman
From: Roy Spliet [ Upstream commit 3ba21113bd33d49f3c300a23fc08cf114c434995 ] This fixes runtime PM not working after a suspend-to-RAM cycle at least for the codec-less HDA device found on NVIDIA GPUs. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043 Signed-off-by: Roy Spliet Link:

[PATCH 5.6 086/106] sched/isolation: Allow "isolcpus=" to skip unknown sub-parameters

2020-05-01 Thread Greg Kroah-Hartman
From: Peter Xu [ Upstream commit 3662daf023500dc084fa3b96f68a6f46179ddc73 ] The "isolcpus=" parameter allows sub-parameters before the cpulist is specified, and if the parser detects an unknown sub-parameters the whole parameter will be ignored. This design is incompatible with itself when new

[PATCH 5.6 084/106] net: stmmac: socfpga: Allow all RGMII modes

2020-05-01 Thread Greg Kroah-Hartman
From: Atsushi Nemoto [ Upstream commit a7a0d6269652846671312b29992143f56e2866b8 ] Allow all the RGMII modes to be used. (Not only "rgmii", "rgmii-id" but "rgmii-txid", "rgmii-rxid") Signed-off-by: Atsushi Nemoto Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 5.6 083/106] ALSA: hda: call runtime_allow() for all hda controllers

2020-05-01 Thread Greg Kroah-Hartman
From: Hui Wang [ Upstream commit 9a6418487b566503c772cb6e7d3d44e652b019b0 ] Before the pci_driver->probe() is called, the pci subsystem calls runtime_forbid() and runtime_get_sync() on this pci dev, so only call runtime_put_autosuspend() is not enough to enable the runtime_pm on this device.

[PATCH 5.6 079/106] scsi: target: tcmu: reset_ring should reset TCMU_DEV_BIT_BROKEN

2020-05-01 Thread Greg Kroah-Hartman
From: Bodo Stroesser [ Upstream commit 066f79a5fd6d1b9a5cc57b5cd445b3e4bb68a5b2 ] In case command ring buffer becomes inconsistent, tcmu sets device flag TCMU_DEV_BIT_BROKEN. If the bit is set, tcmu rejects new commands from LIO core with TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE, and no longer

[PATCH 5.6 082/106] xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status

2020-05-01 Thread Greg Kroah-Hartman
From: Juergen Gross [ Upstream commit 6b51fd3f65a22e3d1471b18a1d56247e246edd46 ] xenbus_map_ring_valloc() maps a ring page and returns the status of the used grant (0 meaning success). There are Xen hypervisors which might return the value 1 for the status of a failed grant mapping due to a

[PATCH 5.6 089/106] ext4: use matching invalidatepage in ext4_writepage

2020-05-01 Thread Greg Kroah-Hartman
From: yangerkun [ Upstream commit c2a559bc0e7ed5a715ad6b947025b33cb7c05ea7 ] Run generic/388 with journal data mode sometimes may trigger the warning in ext4_invalidatepage. Actually, we should use the matching invalidatepage in ext4_writepage. Signed-off-by: yangerkun Signed-off-by: Theodore

[PATCH 5.6 072/106] afs: Fix length of dump of bad YFSFetchStatus record

2020-05-01 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 3efe55b09a92a59ed8214db801683cf13c9742c4 ] Fix the length of the dump of a bad YFSFetchStatus record. The function was copied from the AFS version, but the YFS variant contains bigger fields and extra information, so expand the dump to match.

[PATCH 5.6 078/106] scsi: target: fix PR IN / READ FULL STATUS for FC

2020-05-01 Thread Greg Kroah-Hartman
From: Bodo Stroesser [ Upstream commit 8fed04eb79a74cbf471dfaa755900a51b37273ab ] Creation of the response to READ FULL STATUS fails for FC based reservations. Reason is the too high loop limit (< 24) in fc_get_pr_transport_id(). The string representation of FC WWPN is 23 chars long only

[PATCH 5.6 071/106] signal: check sig before setting info in kill_pid_usb_asyncio

2020-05-01 Thread Greg Kroah-Hartman
From: Zhiqiang Liu [ Upstream commit eaec2b0bd30690575c581eebffae64bfb7f684ac ] In kill_pid_usb_asyncio, if signal is not valid, we do not need to set info struct. Signed-off-by: Zhiqiang Liu Acked-by: Christian Brauner Link:

[PATCH 5.6 080/106] objtool: Fix CONFIG_UBSAN_TRAP unreachable warnings

2020-05-01 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit bd841d6154f5f41f8a32d3c1b0bc229e326e640a ] CONFIG_UBSAN_TRAP causes GCC to emit a UD2 whenever it encounters an unreachable code path. This includes __builtin_unreachable(). Because the BUG() macro uses __builtin_unreachable() after it emits its own UD2,

[PATCH 5.6 088/106] arm64: Delete the space separator in __emit_inst

2020-05-01 Thread Greg Kroah-Hartman
From: Fangrui Song [ Upstream commit c9a4ef66450145a356a626c833d3d7b1668b3ded ] In assembly, many instances of __emit_inst(x) expand to a directive. In a few places __emit_inst(x) is used as an assembler macro argument. For example, in arch/arm64/kvm/hyp/entry.S ALTERNATIVE(nop,

[PATCH v3 0/4] floppy: suppress UBSAN warning in setup_rw_floppy()

2020-05-01 Thread Denis Efremov
These patches are based on Willy's cleanup patches https://lkml.org/lkml/2020/3/31/609. The first patch removes pr_cont() in setup_DMA() and prints the contents of cmd buffer with print_hex_dump(). The last patch also touches these lines and changes cmd buffer to fullcmd. The 2,3 patches

[PATCH 5.6 077/106] drm/amdgpu: fix wrong vram lost counter increment V2

2020-05-01 Thread Greg Kroah-Hartman
From: Evan Quan [ Upstream commit 028cfb2444b94d4f394a6fa4ca46182481236e91 ] Vram lost counter is wrongly increased by two during baco reset. V2: assumed vram lost for mode1 reset on all ASICs Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha

[PATCH 5.6 059/106] bpf: Fix handling of XADD on BTF memory

2020-05-01 Thread Greg Kroah-Hartman
From: Jann Horn commit 8ff3571f7e1bf3f293cc5e3dc14f2943f4fa7fcf upstream. check_xadd() can cause check_ptr_to_btf_access() to be executed with atype==BPF_READ and value_regno==-1 (meaning "just check whether the access is okay, don't tell me what type it will result in"). Handle that case

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