drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 614cb5894306cfa2c7d9b6168182876ff5948735 commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

Re: [PATCH] mhi: use irq_flags if client driver configures it

2020-12-22 Thread Carl Huang
On 2020-12-10 03:48, Jeffrey Hugo wrote: On 12/9/2020 11:34 AM, Hemant Kumar wrote: On 12/7/20 7:55 PM, Carl Huang wrote: If client driver has specified the irq_flags, mhi uses this specified irq_flags. Otherwise, mhi uses default irq_flags. The purpose of this change is to support one MSI

RE: [PATCH v15 12/17] RISC-V: KVM: Add timer functionality

2020-12-22 Thread Jiangyifei
> -Original Message- > From: Anup Patel [mailto:anup.pa...@wdc.com] > Sent: Monday, November 9, 2020 7:33 PM > To: Palmer Dabbelt ; Palmer Dabbelt > ; Paul Walmsley ; > Albert Ou ; Paolo Bonzini > Cc: Alexander Graf ; Atish Patra ; > Alistair Francis ; Damien Le Moal > ; Anup Patel ; >

Re: [PATCH] net: ethernet: mvneta: Fix error handling in mvneta_probe

2020-12-22 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Sun, 20 Dec 2020 16:29:30 +0800 you wrote: > When mvneta_port_power_up() fails, we should execute > cleanup functions after label err_netdev to avoid memleak. > > Fixes: 41c2b6b4f0f80 ("net: ethernet: mvneta: Add back

[PATCH] io_uring: remove io_remove_personalities()

2020-12-22 Thread Yejune Deng
The function io_remove_personalities() is very similar to io_unregister_personality(),but the latter has a more reasonable return value. Signed-off-by: Yejune Deng --- fs/io_uring.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/fs/io_uring.c

[PATCH v2] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Souptick Joarder
Otherwise it causes a gcc warning: ../mm/filemap.c:830:14: warning: no previous prototype for `__add_to_page_cache_locked' [-Wmissing-prototypes] A previous attempt to make this function static led to compilation errors when CONFIG_DEBUG_INFO_BTF is enabled because __add_to_page_cache_locked()

Re: [PATCH] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Souptick Joarder
On Wed, Dec 23, 2020 at 8:46 AM Souptick Joarder wrote: > > Otherwise it causes a gcc warning: > > ../mm/filemap.c:830:14: warning: no previous prototype for > `__add_to_page_cache_locked' [-Wmissing-prototypes] > > A previous attempt to make this function static led to compilation > errors when

[PATCH] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Souptick Joarder
Otherwise it causes a gcc warning: ../mm/filemap.c:830:14: warning: no previous prototype for `__add_to_page_cache_locked' [-Wmissing-prototypes] A previous attempt to make this function static led to compilation errors when CONFIG_DEBUG_INFO_BTF is enabled because __add_to_page_cache_locked()

[PATCH AUTOSEL 5.10 028/217] drm/amdgpu: set LDS_CONFIG=0x20 on Navy Flounder to fix a GPU hang (v2)

2020-12-22 Thread Sasha Levin
From: Marek Olšák [ Upstream commit 4b60bb0dde1baf347540253f856c54bc908e525c ] v2: squash in build fix Acked-by: Alex Deucher Signed-off-by: Marek Olšák Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 - 1 file changed, 4

[PATCH AUTOSEL 5.10 007/217] platform/x86: asus-wmi: Add support for SW_TABLET_MODE on UX360

2020-12-22 Thread Sasha Levin
From: Samuel Čavoj [ Upstream commit ea856ec266c1e6aecd2b107032d5b5d661f0686d ] The UX360CA has a WMI device id 0x00060062, which reports whether the lid is flipped in tablet mode (1) or in normal laptop mode (0). Add a quirk (quirk_asus_use_lid_flip_devid) for devices on which this WMI device

[PATCH AUTOSEL 5.10 026/217] net: ethernet: ti: am65-cpsw: fix tx csum offload for multi mac mode

2020-12-22 Thread Sasha Levin
From: Grygorii Strashko [ Upstream commit 97067aaf127487788a297267dede0008cd75bb7b ] The current implementation uses .ndo_set_features() callback to track NETIF_F_HW_CSUM feature changes and update generic CPSW_P0_CONTROL_REG.RX_CHECKSUM_EN option accordingly. It's not going to work in case of

[PATCH AUTOSEL 5.10 010/217] drm/amdgpu: change to save bad pages in UMC error interrupt callback

2020-12-22 Thread Sasha Levin
From: Dennis Li [ Upstream commit 22503d803dab174b7f038fc9886c225ef30ee95c ] Instead of saving bad pages in amdgpu_ras_reset_gpu, it will reduce the unnecessary calling of amdgpu_ras_save_bad_pages. Signed-off-by: Dennis Li Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher

[PATCH AUTOSEL 5.10 011/217] crypto: omap-aes - fix the reference count leak of omap device

2020-12-22 Thread Sasha Levin
From: Zhang Qilong [ Upstream commit 383e8a823014532ffd81c787ef9009f1c2bd3b79 ] pm_runtime_get_sync() will increment pm usage counter even when it returns an error code. We should call put operation in error handling paths of omap_aes_hw_init. Signed-off-by: Zhang Qilong Signed-off-by:

[PATCH AUTOSEL 5.10 022/217] drm/amd/display: correct eDP T9 delay

2020-12-22 Thread Sasha Levin
From: Hugo Hu [ Upstream commit 3a372bed1e337efa450d8288bc75cfc9237b7bad ] [Why] The current end of T9 delay is relay on polling sink status by DPCD. But the polling for sink status change after NoVideoStream_flag set to 0. [How] Add function edp_add_delay_for_T9 to add T9 delay. Move the sink

[PATCH AUTOSEL 5.10 020/217] drm/amd/display: Keep GSL for full updates with planes that flip VSYNC

2020-12-22 Thread Sasha Levin
From: Alvin Lee [ Upstream commit 6f2239ccdfc04938dc35e67dd60191b2c05dfb63 ] [Why] When enabling PIP in Heaven, the PIP planes are VSYNC flip and is also the top-most pipe. In this case GSL will be disabled because we only check immediate flip for the top pipe. However, the desktop planes are

[PATCH AUTOSEL 5.10 012/217] drm/amd/display: Do not silently accept DCC for multiplane formats.

2020-12-22 Thread Sasha Levin
From: Bas Nieuwenhuizen [ Upstream commit b35ce7b364ec80b54f48a8fdf9fb74667774d2da ] Silently accepting it could result in corruption. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Alex Deucher Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.10 018/217] drm/amd/display: Fix compilation error

2020-12-22 Thread Sasha Levin
From: "Tao.Huang" [ Upstream commit 585e7cedf304ce76410c922e632bef04fd316ead ] [Why] The C standard does not specify whether an enum is signed or unsigned. In the function prototype, one of the argument is defined as an enum but its declaration was unit32_t. Fix this by changing the function

[PATCH AUTOSEL 5.10 040/217] mips: ar7: add missing iounmap() on error in ar7_gpio_init

2020-12-22 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit 5a5aa912f687204d50455d0db36f94dd8de601c2 ] Add the missing iounmap() of gpch->regs before return from ar7_gpio_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.10 039/217] staging: rtl8192u: fix wrong judgement in rtl8192_rx_isr

2020-12-22 Thread Sasha Levin
From: Zhang Qilong [ Upstream commit 071dc1787a2f8bb636f864c1f306280deea3b1d5 ] The 'EPERM' cannot appear in the previous path, we should use '-EPERM' to check it. For example: Call trace: ->rtl8192_rx_isr ->usb_submit_urb ->usb_hcd_submit_urb ->rh_urb_enqueue

[PATCH AUTOSEL 5.10 024/217] drm/amd/display: fix recout calculation for left side clip

2020-12-22 Thread Sasha Levin
From: Dmytro Laktyushkin [ Upstream commit 84aef2ab0977199784671295a07043191233d7c7 ] Recout calculation does not corrrectly handle plane clip rect that extends beyond the left most border of stream source rect. This change adds handling by truncating the invisible clip rect. Signed-off-by:

[PATCH AUTOSEL 5.10 043/217] rcuscale: Prevent hangs for invalid arguments

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 2f2214d43ccd27ac6d124287107c136a0f7c6053 ] If an rcuscale torture-test run is given a bad kvm.sh argument, the test will complain to the console, which is good. What is bad is that from the user's perspective, it will just hang for the time specified

[PATCH AUTOSEL 5.10 042/217] usb: typec: ucsi: Work around PPM losing change information

2020-12-22 Thread Sasha Levin
From: Benjamin Berg [ Upstream commit 217504a055325fe76ec1142aa15f14d3db77f94f ] Some/many PPMs are simply clearing the change bitfield when a notification on a port is acknowledge. Unfortunately, doing so means that any changes between the GET_CONNECTOR_STATUS and ACK_CC_CI commands is simply

[PATCH AUTOSEL 5.10 044/217] refscale: Prevent hangs for invalid arguments

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit bc80d353b3f565138cda7e95ed4020e6e69360b2 ] If an refscale torture-test run is given a bad kvm.sh argument, the test will complain to the console, which is good. What is bad is that from the user's perspective, it will just hang for the time specified

[PATCH AUTOSEL 5.10 045/217] locktorture: Prevent hangs for invalid arguments

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 6b74fa0a776e3715d385b23d29db469179c825b0 ] If an locktorture torture-test run is given a bad kvm.sh argument, the test will complain to the console, which is good. What is bad is that from the user's perspective, it will just hang for the time

[PATCH AUTOSEL 5.10 021/217] drm/amd/display: stop top_mgr when type change to non-MST during s3

2020-12-22 Thread Sasha Levin
From: Lewis Huang [ Upstream commit e748b59fb74e8725c8774a4b0753fabba9de7b97 ] [Why] Driver keeps the invalid information cause report the incorrect monitor which save in remote sink to OS [How] When connector type change from MST to non-MST, stop the topology manager. Signed-off-by: Lewis

[PATCH AUTOSEL 5.10 038/217] staging: ks7010: fix missing destroy_workqueue() on error in ks7010_sdio_probe

2020-12-22 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit d1e7550ad081fa5e9260f636dd51e1c496e0fd5f ] Add the missing destroy_workqueue() before return from ks7010_sdio_probe in the error handling case. Signed-off-by: Qinglang Miao Link: https://lore.kernel.org/r/20201028091552.136445-1-miaoqingl...@huawei.com

[PATCH AUTOSEL 5.10 019/217] drm/amd/display: Force prefetch mode to 0

2020-12-22 Thread Sasha Levin
From: Isabel Zhang [ Upstream commit 685b4d8142dcbf11b817f74c2bc5b94eca7ee7f2 ] [Why] On APU should be always using prefetch mode 0. Currently, sometimes prefetch mode 1 is being used causing system to hard hang due to minTTUVBlank being too low. [How] Any ASIC running DCN21 will by default

[PATCH AUTOSEL 5.10 016/217] staging: wimax: depends on NET

2020-12-22 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 9364a2cf567187c0a075942c22d1f434c758de5d ] Fix build errors when CONFIG_NET is not enabled. E.g. (trimmed): ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_alloc': op-msg.c:(.text+0xa9): undefined reference to `__alloc_skb' ld:

[PATCH AUTOSEL 5.10 009/217] HID: hid-input: occasionally report stylus battery even if not changed

2020-12-22 Thread Sasha Levin
From: "dmitry.torok...@gmail.com" [ Upstream commit c6838eeef2fbc7e3e1f83759aa016ae6b70c643e ] There are styluses that only report their battery status when they are touching the touchscreen; additionally we currently suppress battery reports if capacity has not changed. To help userspace

[PATCH AUTOSEL 5.10 025/217] drm/amdgpu: disable gfxoff if VCN is busy

2020-12-22 Thread Sasha Levin
From: Jiansong Chen [ Upstream commit ef3b2987254035f9b869f70151b4220c34f2f133 ] Toggle on/off gfxoff during video playback to fix gpu hang. v2: change sequence to be more compatible with original code. Signed-off-by: Jiansong Chen Reviewed-by: James Zhu Reviewed-by: Hawking Zhang

[PATCH AUTOSEL 5.10 027/217] net: mscc: ocelot: don't reset the pvid to 0 when deleting it

2020-12-22 Thread Sasha Levin
From: Vladimir Oltean [ Upstream commit 110e847ca7d5e712cabc8cb866a66b629832f4a2 ] I have no idea why this code is here, but I have 2 hypotheses: 1. A desperate attempt to keep untagged traffic working when the bridge deletes the pvid on a port. There was a fairly okay discussion here:

[PATCH AUTOSEL 5.10 029/217] scsi: target: Fix cmd_count ref leak

2020-12-22 Thread Sasha Levin
From: Mike Christie [ Upstream commit 02dd4914b0bcb8fd8f8cad9817f5715a17466261 ] percpu_ref_init sets the refcount to 1 and percpu_ref_kill drops it. Drivers like iSCSI and loop do not call target_sess_cmd_list_set_waiting during session shutdown, though, so they have been calling

[PATCH AUTOSEL 5.10 048/217] kcsan: Fix encoding masks and regain address bit

2020-12-22 Thread Sasha Levin
From: Marco Elver [ Upstream commit 1d094cefc37e5ed4dec44a41841c8628f6b548a2 ] The watchpoint encoding masks for size and address were off-by-one bit each, with the size mask using 1 unnecessary bit and the address mask missing 1 bit. However, due to the way the size is shifted into the encoded

[PATCH AUTOSEL 5.10 047/217] rcutorture: Prevent hangs for invalid arguments

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 4994684ce10924a0302567c315c91b0a64eeef46 ] If an rcutorture torture-test run is given a bad kvm.sh argument, the test will complain to the console, which is good. What is bad is that from the user's perspective, it will just hang for the time

[PATCH AUTOSEL 5.10 033/217] scsi: pm80xx: Fix pm8001_mpi_get_nvmd_resp() race condition

2020-12-22 Thread Sasha Levin
From: yuuzheng [ Upstream commit 1f889b58716a5f5e3e4fe0e6742c1a4472f29ac1 ] A use-after-free or null-pointer error occurs when the 251-byte response data is copied from IOMB buffer to response message buffer in function pm8001_mpi_get_nvmd_resp(). After sending the command get_nvmd_data(), the

[PATCH AUTOSEL 5.10 046/217] torture: Prevent jitter processes from delaying failed run

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit c64659ef29e3901be0900ec6fb0485fa3dbdcfd8 ] Even when the kernel panics and qemu dies, runs with jitter enabled will continue uselessly until the jitter.sh processes terminate. This can be annoying if a planned one-hour run instead dies during boot.

[PATCH AUTOSEL 5.10 051/217] thermal: intel: pch: fix S0ix failure due to PCH temperature above threshold

2020-12-22 Thread Sasha Levin
From: Sumeet Pawnikar [ Upstream commit ef63b043ac8645d2540d7b50dd3e09c53db3d504 ] When system tries to enter S0ix suspend state, just after active load scenarios, it fails due to PCH current temperature is higher than set threshold. This patch introduces delay loop mechanism that allows PCH

[PATCH AUTOSEL 5.10 049/217] ath10k: fix compilation warning

2020-12-22 Thread Sasha Levin
From: Tamizh Chelvam [ Upstream commit b9162645117841978a3fb31546409271e007dd28 ] This change fixes below compilation warning. smatch warnings: drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret'. No functional changes. Compile tested

[PATCH AUTOSEL 5.10 035/217] fcntl: Fix potential deadlock in send_sig{io, urg}()

2020-12-22 Thread Sasha Levin
From: Boqun Feng [ Upstream commit 8d1ddb5e79374fb277985a6b3faa2ed8631c5b4c ] Syzbot reports a potential deadlock found by the newly added recursive read deadlock detection in lockdep: [...] [...] WARNING: possible irq lock inversion

[PATCH AUTOSEL 5.10 059/217] Bluetooth: Resume advertising after LE connection

2020-12-22 Thread Sasha Levin
From: Daniel Winkler [ Upstream commit 2943d8ede38310db932eb38f91aa1094b471058c ] When an LE connection request is made, advertising is disabled and never resumed. When a client has an active advertisement, this is disruptive. This change adds resume logic for client-configured (non-directed)

[PATCH AUTOSEL 5.10 058/217] Bluetooth: btqca: Add valid le states quirk

2020-12-22 Thread Sasha Levin
From: Abhishek Pandit-Subedi [ Upstream commit 547801380ec7e6104ea679f599d03c342b4b39a0 ] WCN3991 supports connectable advertisements so we need to add the valid le states quirk so the 'central-peripheral' role is exposed in userspace. Signed-off-by: Abhishek Pandit-Subedi Signed-off-by:

[PATCH AUTOSEL 5.10 053/217] drm/bridge: lvds-codec: Use dev_err_probe for error handling

2020-12-22 Thread Sasha Levin
From: Biju Das [ Upstream commit 4178bd5a3c57e107b3df5e17de6dc60cb3890647 ] dev_err_probe function simplifies error handling. So use the same in probe function wherever possible. Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven Signed-off-by: Sam Ravnborg Link:

[PATCH AUTOSEL 5.10 052/217] drm: panel: simple: add missing platform_driver_unregister() in panel_simple_init

2020-12-22 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit f2e66f212a9de04afc2caa5ec79057c0ac75c728 ] Add the missing platform_driver_unregister() before return from panel_simple_init in the error handling case when failed to register panel_simple_dsi_driver with CONFIG_DRM_MIPI_DSI enabled. Signed-off-by:

[PATCH AUTOSEL 5.10 054/217] drm/ast: Fixed 1920x1080 sync. polarity issue

2020-12-22 Thread Sasha Levin
From: KuoHsiang Chou [ Upstream commit 2d26123dd9075df82f217364f585a3a6aab5412d ] [Bug] Change the vertical synchroous polary of 1920x1080 @60Hz from Negtive to Positive Signed-off-by: KuoHsiang Chou Signed-off-by: Thomas Zimmermann Link:

[PATCH AUTOSEL 5.10 060/217] Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

2020-12-22 Thread Sasha Levin
From: Claire Chang [ Upstream commit 82493316507a720b6faa2ec23971c0ca89c6dcb0 ] Avoid multiple attempts to create the debugfs entry, force_bredr_smp, by moving it from the SMP registration to the BR/EDR controller init section. hci_debugfs_create_bredr is only called when HCI_SETUP and

[PATCH AUTOSEL 5.10 061/217] Bluetooth: hidp: use correct wait queue when removing ctrl_wait

2020-12-22 Thread Sasha Levin
From: Ole Bjørn Midtbø [ Upstream commit cca342d98bef68151a80b024f7bf5f388d1fbdea ] A different wait queue was used when removing ctrl_wait than when adding it. This effectively made the remove operation without locking compared to other operations on the wait queue ctrl_wait was part of. This

[PATCH AUTOSEL 5.10 064/217] drm/omap: Fix runtime PM imbalance on error

2020-12-22 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit a5d704d33245b0799947a3008f9f376dba4d5c91 ] pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. However, users of its direct wrappers in omapdrm assume that PM usage counter will not change on error. Thus a pairing

[PATCH AUTOSEL 5.10 063/217] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-12-22 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit 8be33ecfc1ffd2da20cc29e957e4cb6eb99310cb ] Similar to commit fda55eca5a33f ("net: introduce skb_transport_header_was_set()"), avoid resetting transport offsets that were already set by GRO layer. This not only mirrors the behavior of

[PATCH AUTOSEL 5.10 066/217] ASoC: Fix vaud18 power leakage of mt6359

2020-12-22 Thread Sasha Levin
From: "Shane.Chien" [ Upstream commit 64a70744b77898a15d7a5b2b4dc0fa9523a75cde ] vaud18 is power of mt6359 audio path. It should only enable when audio is used, instead of in boot up stage. Once mt6359 audio path is enabled or disabled, vaud18 is controlled by regulator supply widget

[PATCH AUTOSEL 5.10 065/217] pinctrl: qcom: Kconfig: Rework PINCTRL_MSM to be a depenency rather then a selected config

2020-12-22 Thread Sasha Levin
From: John Stultz [ Upstream commit be117ca32261c3331b614f440c737650791a6998 ] This patch reworks PINCTRL_MSM to be a visible option, and instead of having the various SoC specific drivers select PINCTRL_MSM, this switches those configs to depend on PINCTRL_MSM. This is useful, as it will be

[PATCH AUTOSEL 5.10 068/217] drm/amd/amdgpu: Fix incorrect logic to increment VCN doorbell index

2020-12-22 Thread Sasha Levin
From: Bokun Zhang [ Upstream commit 25a35065c066496935217748b1662a7fcf26ed58 ] - The original logic uses a counter based index assignment, which is incorrect if we only assign VCN1 to this VF but no VCN0 The doorbell index is absolute, so we can calculate it by using index variable i and

[PATCH AUTOSEL 5.10 075/217] drm/amdgpu: check hive pointer before access

2020-12-22 Thread Sasha Levin
From: Hawking Zhang [ Upstream commit a9f5f98f796ee93a865b9886bf7cb694cf124eb5 ] in case it is an invalid one Signed-off-by: Hawking Zhang Reviewed-by: Kevin Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 13 + 1 file

[PATCH AUTOSEL 5.10 070/217] ASoC: Intel: sof_sdw: add quirk for new TigerLake-SDCA device

2020-12-22 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit 488cdbd8931fe4bc7f374a8b429e81d0e4b7ac76 ] Add quirks for jack detection, rt715 DAI and number of speakers. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Link:

[PATCH AUTOSEL 5.10 076/217] jfs: Fix memleak in dbAdjCtl

2020-12-22 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 751341b4d7841e2b76e78eec382c2e119165497f ] When dbBackSplit() fails, mp should be released to prevent memleak. It's the same when dbJoin() fails. Signed-off-by: Dinghao Liu Signed-off-by: Dave Kleikamp Signed-off-by: Sasha Levin --- fs/jfs/jfs_dmap.c | 8

[PATCH AUTOSEL 5.10 069/217] drm/amd/amdgpu: Add rev_id workaround logic for SRIOV setup

2020-12-22 Thread Sasha Levin
From: Bokun Zhang [ Upstream commit de21e4aeb2b26128dcc5be1bcb2fafa73d041e51 ] - When we are under SRIOV setup, the rev_id cannot be read properly. Therefore, we will return default value for it Signed-off-by: Bokun Zhang Reviewed-by: Monk Liu Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 5.10 077/217] r8169: use READ_ONCE in rtl_tx_slots_avail

2020-12-22 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 95f3c5458dfa5856bb110e31d156e00d894d0134 ] tp->dirty_tx and tp->cur_tx may be changed by a racing rtl_tx() or rtl8169_start_xmit(). Use READ_ONCE() to annotate the races and ensure that the compiler doesn't use cached values. Signed-off-by: Heiner

Re: [PATCH] proc/wchan: Use printk format instead of lookup_symbol_name()

2020-12-22 Thread Andrew Morton
On Thu, 17 Dec 2020 17:54:13 +0100 Helge Deller wrote: > To resolve the symbol fuction name for wchan, use the printk format > specifier %ps instead of manually looking up the symbol function name > via lookup_symbol_name(). > > Signed-off-by: Helge Deller > Please don't forget the "^---$"

[PATCH AUTOSEL 5.4 004/130] HID: hid-input: occasionally report stylus battery even if not changed

2020-12-22 Thread Sasha Levin
From: "dmitry.torok...@gmail.com" [ Upstream commit c6838eeef2fbc7e3e1f83759aa016ae6b70c643e ] There are styluses that only report their battery status when they are touching the touchscreen; additionally we currently suppress battery reports if capacity has not changed. To help userspace

[PATCH AUTOSEL 5.4 002/130] locks: Fix UBSAN undefined behaviour in flock64_to_posix_lock

2020-12-22 Thread Sasha Levin
From: Luo Meng [ Upstream commit 16238415eb9886328a89fe7a3cb0b88c7335fe16 ] When the sum of fl->fl_start and l->l_len overflows, UBSAN shows the following warning: UBSAN: Undefined behaviour in fs/locks.c:482:29 signed integer overflow: 2 + 9223372036854775806 cannot be represented in type

[PATCH AUTOSEL 5.4 007/130] drm/msm: Fix race condition in msm driver with async layer updates

2020-12-22 Thread Sasha Levin
From: Krishna Manikandan [ Upstream commit b3d91800d9ac35014e0349292273a6fa7938d402 ] When there are back to back commits with async cursor update, there is a case where second commit can program the DPU hw blocks while first didn't complete flushing config to HW. Synchronize the compositions

[PATCH AUTOSEL 5.4 006/130] drm/amd/display: Do not silently accept DCC for multiplane formats.

2020-12-22 Thread Sasha Levin
From: Bas Nieuwenhuizen [ Upstream commit b35ce7b364ec80b54f48a8fdf9fb74667774d2da ] Silently accepting it could result in corruption. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Alex Deucher Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 010/130] scsi: target: Fix cmd_count ref leak

2020-12-22 Thread Sasha Levin
From: Mike Christie [ Upstream commit 02dd4914b0bcb8fd8f8cad9817f5715a17466261 ] percpu_ref_init sets the refcount to 1 and percpu_ref_kill drops it. Drivers like iSCSI and loop do not call target_sess_cmd_list_set_waiting during session shutdown, though, so they have been calling

[PATCH AUTOSEL 5.4 008/130] staging: wimax: depends on NET

2020-12-22 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 9364a2cf567187c0a075942c22d1f434c758de5d ] Fix build errors when CONFIG_NET is not enabled. E.g. (trimmed): ld: drivers/staging/wimax/op-msg.o: in function `wimax_msg_alloc': op-msg.c:(.text+0xa9): undefined reference to `__alloc_skb' ld:

[PATCH AUTOSEL 5.4 009/130] RDMA/siw: Fix typo of EAGAIN not -EAGAIN in siw_cm_work_handler()

2020-12-22 Thread Sasha Levin
From: Zhang Qilong [ Upstream commit 856c299858761b6a52208b4edb4d352c4037 ] The rv cannot be 'EAGAIN' in the previous path, we should use '-EAGAIN' to check it. For example: Call trace: ->siw_cm_work_handler ->siw_proc_mpareq ->siw_recv_mpa_rr Link:

[PATCH AUTOSEL 5.4 015/130] mac80211: don't overwrite QoS TID of injected frames

2020-12-22 Thread Sasha Levin
From: Mathy Vanhoef [ Upstream commit 527d675969a1dff17baa270d4447ac1c87058299 ] Currently ieee80211_set_qos_hdr sets the QoS TID of all frames based on the value assigned to skb->priority. This means it will also overwrite the QoS TID of injected frames. The commit 753ffad3d624 ("mac80211: fix

[PATCH AUTOSEL 5.4 021/130] torture: Prevent jitter processes from delaying failed run

2020-12-22 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit c64659ef29e3901be0900ec6fb0485fa3dbdcfd8 ] Even when the kernel panics and qemu dies, runs with jitter enabled will continue uselessly until the jitter.sh processes terminate. This can be annoying if a planned one-hour run instead dies during boot.

[PATCH AUTOSEL 5.4 014/130] fcntl: Fix potential deadlock in send_sig{io, urg}()

2020-12-22 Thread Sasha Levin
From: Boqun Feng [ Upstream commit 8d1ddb5e79374fb277985a6b3faa2ed8631c5b4c ] Syzbot reports a potential deadlock found by the newly added recursive read deadlock detection in lockdep: [...] [...] WARNING: possible irq lock inversion

[PATCH AUTOSEL 5.4 012/130] scsi: pm80xx: Avoid busywait in FW ready check

2020-12-22 Thread Sasha Levin
From: akshatzen [ Upstream commit 48cd6b38eb4f2874f091c4776ea1c26e7e4f967e ] In function check_fw_ready() we busy wait using udelay. The CPU is not released and we see need_resched failures. Busy waiting is not necessary since we are in process context and we can sleep instead. Replace udelay

[PATCH AUTOSEL 5.4 013/130] scsi: pm80xx: Fix pm8001_mpi_get_nvmd_resp() race condition

2020-12-22 Thread Sasha Levin
From: yuuzheng [ Upstream commit 1f889b58716a5f5e3e4fe0e6742c1a4472f29ac1 ] A use-after-free or null-pointer error occurs when the 251-byte response data is copied from IOMB buffer to response message buffer in function pm8001_mpi_get_nvmd_resp(). After sending the command get_nvmd_data(), the

[PATCH AUTOSEL 5.4 027/130] Bluetooth: hidp: use correct wait queue when removing ctrl_wait

2020-12-22 Thread Sasha Levin
From: Ole Bjørn Midtbø [ Upstream commit cca342d98bef68151a80b024f7bf5f388d1fbdea ] A different wait queue was used when removing ctrl_wait than when adding it. This effectively made the remove operation without locking compared to other operations on the wait queue ctrl_wait was part of. This

[PATCH AUTOSEL 5.4 018/130] mips: ar7: add missing iounmap() on error in ar7_gpio_init

2020-12-22 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit 5a5aa912f687204d50455d0db36f94dd8de601c2 ] Add the missing iounmap() of gpch->regs before return from ar7_gpio_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 023/130] rsi: Fix TX EAPOL packet handling against iwlwifi AP

2020-12-22 Thread Sasha Levin
From: Marek Vasut [ Upstream commit 65277100caa2f2c62b6f3c4648b90d6f0435f3bc ] In case RSI9116 SDIO WiFi operates in STA mode against Intel 9260 in AP mode, the association fails. The former is using wpa_supplicant during association, the later is set up using hostapd: iwl$ cat hostapd.conf

[PATCH AUTOSEL 5.4 029/130] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-12-22 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit 8be33ecfc1ffd2da20cc29e957e4cb6eb99310cb ] Similar to commit fda55eca5a33f ("net: introduce skb_transport_header_was_set()"), avoid resetting transport offsets that were already set by GRO layer. This not only mirrors the behavior of

[PATCH AUTOSEL 5.4 030/130] drm/omap: Fix runtime PM imbalance on error

2020-12-22 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit a5d704d33245b0799947a3008f9f376dba4d5c91 ] pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. However, users of its direct wrappers in omapdrm assume that PM usage counter will not change on error. Thus a pairing

[PATCH AUTOSEL 5.4 031/130] mwifiex: pcie: skip cancel_work_sync() on reset failure path

2020-12-22 Thread Sasha Levin
From: Tsuchiya Yuto [ Upstream commit 4add4d988f95f47493500a7a19c623827061589b ] If a reset is performed, but even the reset fails for some reasons (e.g., on Surface devices, the fw reset requires another quirks), cancel_work_sync() hangs in mwifiex_cleanup_pcie(). # firmware went into a

[PATCH AUTOSEL 5.4 032/130] drm/amd/amdgpu: Add rev_id workaround logic for SRIOV setup

2020-12-22 Thread Sasha Levin
From: Bokun Zhang [ Upstream commit de21e4aeb2b26128dcc5be1bcb2fafa73d041e51 ] - When we are under SRIOV setup, the rev_id cannot be read properly. Therefore, we will return default value for it Signed-off-by: Bokun Zhang Reviewed-by: Monk Liu Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 5.4 035/130] jfs: Fix memleak in dbAdjCtl

2020-12-22 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 751341b4d7841e2b76e78eec382c2e119165497f ] When dbBackSplit() fails, mp should be released to prevent memleak. It's the same when dbJoin() fails. Signed-off-by: Dinghao Liu Signed-off-by: Dave Kleikamp Signed-off-by: Sasha Levin --- fs/jfs/jfs_dmap.c | 8

[PATCH AUTOSEL 5.4 033/130] MIPS: BMC47xx: fix kconfig dependency bug for BCM47XX_SSB

2020-12-22 Thread Sasha Levin
From: Necip Fazil Yildiran [ Upstream commit 09a48cbcd7af9203296938044f1100bb113ce01a ] When BCM47XX_SSB is enabled and SSB_PCIHOST is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for SSB_B43_PCI_BRIDGE Depends on [n]: SSB [=y] &&

[PATCH AUTOSEL 5.4 034/130] net: ipconfig: Avoid spurious blank lines in boot log

2020-12-22 Thread Sasha Levin
From: Thierry Reding [ Upstream commit c9f64d1fc101c64ea2be1b2e562b4395127befc9 ] When dumping the name and NTP servers advertised by DHCP, a blank line is emitted if either of the lists is empty. This can lead to confusing issues such as the blank line getting flagged as warning. This happens

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Tue, Dec 22, 2020 at 05:23:39PM -0700, Yu Zhao wrote: > and 2) people are spearheading multiple efforts to reduce the mmap_lock > contention, which hopefully would make ufd users suffer less soon. In my view UFFD is an already deployed working solution that eliminates the mmap_lock_write

[PATCH AUTOSEL 5.4 040/130] s390/dasd: Fix operational path inconsistency

2020-12-22 Thread Sasha Levin
From: Jan Höppner [ Upstream commit 9e34c8ba91697cb7441805c36d92ab3e695df6e0 ] During online processing and setting up a DASD device, the configuration data for operational paths is read and validated two times (dasd_eckd_read_conf()). The first time to provide information that are necessary

[PATCH AUTOSEL 5.4 037/130] media: zr364xx: propagate errors from zr364xx_start_readpipe()

2020-12-22 Thread Sasha Levin
From: Evgeny Novikov [ Upstream commit af0321a5be3e5647441eb6b79355beaa592df97a ] zr364xx_start_readpipe() can fail but callers do not care about that. This can result in various negative consequences. The patch adds missed error handling. Found by Linux Driver Verification project

[PATCH AUTOSEL 5.4 043/130] media: usb: dvb-usb-v2: zd1301: fix missing platform_device_unregister()

2020-12-22 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit ee50d6e60d9a8e110e984cdd9e788d93eff540ba ] Add the missing platform_device_unregister() before return from zd1301_frontend_attach in the error handling case when pdev->dev.driver is empty. There's an error handling route named

[PATCH AUTOSEL 5.4 046/130] mmc: tmio: do not print real IOMEM pointer

2020-12-22 Thread Sasha Levin
From: Krzysztof Kozlowski [ Upstream commit ade8e9d3fb9232ddfb87a4bc641b35b988d9757b ] Printing kernel pointers is discouraged because they might leak kernel memory layout. This fixes smatch warning: drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is

[PATCH AUTOSEL 5.4 042/130] media: venus: handle use after free for iommu_map/iommu_unmap

2020-12-22 Thread Sasha Levin
From: Mansur Alisha Shaik [ Upstream commit de15e6231e6a3ca58d58d7e2c614a76c940dbb38 ] In concurrency usecase and reboot scenario we are seeing muliple crashes related to iommu_map/iommu_unamp of core->fw.iommu_domain. In one case we are seeing "Unable to handle kernel NULL pointer dereference

[PATCH AUTOSEL 5.4 047/130] ARM: OMAP2+: Fix memleak in omap2xxx_clkt_vps_init

2020-12-22 Thread Sasha Levin
From: Youling Tang [ Upstream commit 3c5902d270edb6ccc3049acfe5d3e96653c87dcd ] If the clk_register fails, we should free hw before function returns to prevent memleak. Signed-off-by: Youling Tang Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 049/130] MIPS: kvm: Use vm_get_page_prot to get protection bits

2020-12-22 Thread Sasha Levin
From: Thomas Bogendoerfer [ Upstream commit 411406a8c758d9ad6f908fab3a6cf1d3d89e1d08 ] MIPS protection bits are setup during runtime so using defines like PAGE_SHARED ignores this runtime changes. Using vm_get_page_prot to get correct page protection fixes this. Signed-off-by: Thomas

[PATCH AUTOSEL 5.4 063/130] ARM: dts: hisilicon: fix errors detected by usb yaml

2020-12-22 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 64f5b52554a1de47a53972a47b9b58d8d66ee5aa ] 1. Change node name to match '^usb(@.*)?' These errors are detected by generic-ehci.yaml and generic-ohci.yaml. Signed-off-by: Zhen Lei Signed-off-by: Wei Xu Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 050/130] scsi: ufs: Atomic update for clkgating_enable

2020-12-22 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit b664511297644eac34038df877b3ad7bcaa81913 ] While running a stress test which enables/disables clkgating, we occasionally hit device timeout. This patch avoids a subtle race condition to address it. Link:

[PATCH AUTOSEL 5.4 061/130] ARM: dts: hisilicon: fix errors detected by snps-dw-apb-uart.yaml

2020-12-22 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 30ea026e33c6dda48849d9fe0d15c1d280a92d53 ] 1. Change node name to match '^serial(@[0-9a-f,]+)*$' 2. Change clock-names to "baudclk", "apb_pclk". Both of them use the same clock. Signed-off-by: Zhen Lei Signed-off-by: Wei Xu Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 058/130] rxrpc: Don't leak the service-side session key to userspace

2020-12-22 Thread Sasha Levin
From: David Howells [ Upstream commit d2ae4e918218f543214fbd906db68a6c580efbbb ] Don't let someone reading a service-side rxrpc-type key get access to the session key that was exchanged with the client. The server application will, at some point, need to be able to read the information in the

[PATCH AUTOSEL 5.4 051/130] ASoC: SOF: IPC: fix implicit type overflow

2020-12-22 Thread Sasha Levin
From: Curtis Malainey [ Upstream commit 7c1d0e554a359cca77bfabd2a29b06f5322d172d ] Implicit values may have a length of 15bits (s16) so we need to declare the proper size so we don't get undefined behaviour. This appears to be arch and compiler dependent. This commit is to keep the headers

[PATCH AUTOSEL 5.4 060/130] rtw88: coex: change the decode method from firmware

2020-12-22 Thread Sasha Levin
From: Ching-Te Ku [ Upstream commit 362c4a5cc886e9c369bf2106ab648c2ad076abb6 ] Fix sometimes FW information will be parsed as wrong value, do a correction of sign bit to show the correct information. (Ex, Value should be 20, but it shows 236.) Signed-off-by: Ching-Te Ku Signed-off-by: Ping-Ke

[PATCH AUTOSEL 5.4 064/130] ARM: dts: hisilicon: fix errors detected by simple-bus.yaml

2020-12-22 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 8e9e8dd7ce093344a89792deaeb6caedde636dcf ] Change bus node name from "amba" to "amba-bus" to match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Zhen Lei Signed-off-by: Wei Xu Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.4 062/130] ARM: dts: hisilicon: fix errors detected by pl011.yaml

2020-12-22 Thread Sasha Levin
From: Zhen Lei [ Upstream commit e5e225fd495ef1dffc64b81b2094e427f9cc4016 ] 1. Change node name to match '^serial(@[0-9a-f,]+)*$' 2. Change clock-names to "uartclk", "apb_pclk". Both of them use the same clock. 3. Change pinctrl-names to "default", "sleep". Signed-off-by: Zhen Lei

[PATCH AUTOSEL 5.4 065/130] ARM: dts: hisilicon: fix errors detected by spi-pl022.yaml

2020-12-22 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 4c246408f0bdbc4100c95a5dad9e0688b4a3cfd0 ] 1. Change clock-names to "sspclk", "apb_pclk". Both of them use the same clock. Signed-off-by: Zhen Lei Signed-off-by: Wei Xu Signed-off-by: Sasha Levin --- arch/arm/boot/dts/hi3519.dtsi | 12 ++-- 1

[PATCH AUTOSEL 5.4 067/130] brcmsmac: ampdu: Check BA window size before checking block ack

2020-12-22 Thread Sasha Levin
From: Dmitry Safonov [ Upstream commit 01c195de620bb6c3ecda0dbf295fe685d8232e10 ] bindex can be out of BA window (64): tid 0 seq 2983, start_seq 2915, bindex 68, index 39 tid 0 seq 2984, start_seq 2915, bindex 69, index 40 tid 0 seq 2985, start_seq 2915, bindex 70, index 41 tid 0 seq

[PATCH AUTOSEL 5.4 069/130] hv_netvsc: Validate number of allocated sub-channels

2020-12-22 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] Lack of validation could lead to out-of-bound reads and information leaks (cf. usage of nvdev->chan_table[]). Check that the number of allocated sub-channels fits into the expected range.

[PATCH AUTOSEL 5.4 066/130] selftests/x86/fsgsbase: Fix GS == 1, 2, and 3 tests

2020-12-22 Thread Sasha Levin
From: Andy Lutomirski [ Upstream commit 716572b0003ef67a4889bd7d85baf5099c5a0248 ] Setting GS to 1, 2, or 3 causes a nonsensical part of the IRET microcode to change GS back to zero on a return from kernel mode to user mode. The result is that these tests fail randomly depending on when

[PATCH AUTOSEL 5.4 068/130] i40e: report correct VF link speed when link state is set to enable

2020-12-22 Thread Sasha Levin
From: Stefan Assmann [ Upstream commit 6ec12e1e9404acb27a7434220bbe5f75e7bb2859 ] When the virtual link state was set to "enable" ethtool would report link speed as 4Mb/s regardless of the underlying device. Report the correct link speed. Example from a XXV710 NIC. Before: $ ip link set

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