Re: [PATCH v2] bus: mhi: core: Add unique qrtr node id support

2021-03-01 Thread Bhaumik Bhatt
On 2021-03-01 10:26 AM, Kalle Valo wrote: Bhaumik Bhatt writes: On 2021-03-01 03:14 AM, Kalle Valo wrote: + ath11k list Manivannan Sadhasivam writes: On Fri, Feb 26, 2021 at 04:12:49PM +0530, Gokul Sriram Palanisamy wrote: On platforms with two or more identical mhi devices, qmi service

[PATCH 5.10 292/663] RDMA/rtrs-clt: Refactor the failure cases in alloc_clt

2021-03-01 Thread Greg Kroah-Hartman
From: Guoqing Jiang [ Upstream commit eab098246625e91c1cbd6e8f75b09e4c9c28a9fc ] Make all failure cases go to the common path to avoid duplicate code. And some issued existed before. 1. clt need to be freed to avoid memory leak. 2. return ERR_PTR(-ENOMEM) if kobject_create_and_add fails,

[PATCH 5.11 314/775] quota: Fix memory leak when handling corrupted quota file

2021-03-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit a4db1072e1a3bd7a8d9c356e1902b13ac5deb8ef ] When checking corrupted quota file we can bail out and leak allocated info structure. Properly free info structure on error return. Reported-by: syzbot+9c9b52ab78154...@syzkaller.appspotmail.com Fixes: 11c514a99bb9

[PATCH 5.11 140/775] Bluetooth: Remove hci_req_le_suspend_config

2021-03-01 Thread Greg Kroah-Hartman
From: Abhishek Pandit-Subedi [ Upstream commit 295fa2a5647b13681594bb1bcc76c74619035218 ] Add a missing SUSPEND_SCAN_ENABLE in passive scan, remove the separate function for configuring le scan during suspend and update the request complete function to clear both enable and disable tasks.

[PATCH 5.10 470/663] mm: fix memory_failure() handling of dax-namespace metadata

2021-03-01 Thread Greg Kroah-Hartman
From: Dan Williams [ Upstream commit 34dc45be4563f344d59ba0428416d0d265aa4f4d ] Given 'struct dev_pagemap' spans both data pages and metadata pages be careful to consult the altmap if present to delineate metadata. In fact the pfn_first() helper already identifies the first valid data pfn, so

[PATCH 5.11 380/775] objtool: Fix error handling for STD/CLD warnings

2021-03-01 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 6f567c9300a5ebd7b18c26dda1c8d6ffbdd0debd ] Actually return an error (and display a backtrace, if requested) for directional bit warnings. Fixes: 2f0f9e9ad7b3 ("objtool: Add Direction Flag validation") Signed-off-by: Josh Poimboeuf Link:

[PATCH 5.11 143/775] serial: stm32: fix DMA initialization error handling

2021-03-01 Thread Greg Kroah-Hartman
From: Erwan Le Ray [ Upstream commit e7997f7ff7f8154d477f6f976698d868a2ac3934 ] DMA initialization error handling is not properly implemented in the driver. Fix DMA initialization error handling by: - moving TX DMA descriptor request error handling in a new dedicated fallback_err label - adding

[PATCH 5.10 225/663] btrfs: clarify error returns values in __load_free_space_cache

2021-03-01 Thread Greg Kroah-Hartman
From: Zhihao Cheng [ Upstream commit 3cc64e7ebfb0d7faaba2438334c43466955a96e8 ] Return value in __load_free_space_cache is not properly set after (unlikely) memory allocation failures and 0 is returned instead. This is not a problem for the caller load_free_space_cache because only value 1 is

[PATCH 5.10 071/663] ARM: dts: armada388-helios4: assign pinctrl to each fan

2021-03-01 Thread Greg Kroah-Hartman
From: Rosen Penev [ Upstream commit 46ecdfc1830eaa40a11d7f832089c82b0e67ea96 ] Split up the pins for each fan. This is needed in order to control them Fixes: ced8025b569e ("ARM: dts: armada388-helios4") Signed-off-by: Rosen Penev Signed-off-by: Gregory CLEMENT Signed-off-by: Sasha Levin

[PATCH 5.10 297/663] power: supply: fix sbs-charger build, needs REGMAP_I2C

2021-03-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit a4bdea2004b28f47ab48ea99172eda8628f6fb44 ] CHARGER_SBS should select REGMAP_I2C since it uses API(s) that are provided by that Kconfig symbol. Fixes these errors: ../drivers/power/supply/sbs-charger.c:149:21: error: variable ‘sbs_regmap’ has initializer

[PATCH 5.11 103/775] dpaa2-eth: fix memory leak in XDP_REDIRECT

2021-03-01 Thread Greg Kroah-Hartman
From: Ioana Ciornei [ Upstream commit e12be9139cca26d689fe1a9257054b76752f725b ] If xdp_do_redirect() fails, the calling driver should handle recycling or freeing of the page associated with the frame. The dpaa2-eth driver didn't do either of them and just incremented a counter. Fix this by

[PATCH 5.4 335/340] ipv6: icmp6: avoid indirect call for icmpv6_send()

2021-03-01 Thread Greg Kroah-Hartman
From: Eric Dumazet commit cc7a21b6fbd945f8d8f61422ccd27203c1fafeb7 upstream. If IPv6 is builtin, we do not need an expensive indirect call to reach icmp6_send(). v2: put inline keyword before the type to avoid sparse warnings. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller

[PATCH 4.19 024/247] ath10k: Fix error handling in case of CE pipe init failure

2021-03-01 Thread Greg Kroah-Hartman
From: Rakesh Pillai [ Upstream commit 31561e8557cd1eeba5806ac9ce820f8323b2201b ] Currently if the copy engine pipe init fails for snoc based chipsets, the rri is not freed. Fix this error handling for copy engine pipe init failure. Tested-on: WCN3990 hw1.0 SNOC

[PATCH 5.10 040/663] net: stmmac: dwmac-meson8b: fix enabling the timing-adjustment clock

2021-03-01 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit 025822884a4fd2d0af51dcf77ddc494e60c5ff63 ] The timing-adjustment clock only has to be enabled when a) there is a 2ns RX delay configured using device-tree and b) the phy-mode indicates that the RX delay should be enabled. Only enable the RX delay if

[PATCH 4.19 076/247] crypto: sun4i-ss - fix kmap usage

2021-03-01 Thread Greg Kroah-Hartman
From: Corentin Labbe [ Upstream commit 9bc3dd24e7dccd50757db743a3635ad5b0497e6e ] With the recent kmap change, some tests which were conditional on CONFIG_DEBUG_HIGHMEM now are enabled by default. This permit to detect a problem in sun4i-ss usage of kmap. sun4i-ss uses two kmap via sg_miter

[PATCH 5.11 056/775] usb: gadget: u_audio: Free requests only after callback

2021-03-01 Thread Greg Kroah-Hartman
From: Jack Pham [ Upstream commit 7de8681be2cde9f6953d3be1fa6ce05f9fe6e637 ] As per the kernel doc for usb_ep_dequeue(), it states that "this routine is asynchronous, that is, it may return before the completion routine runs". And indeed since v5.0 the dwc3 gadget driver updated its behavior to

[PATCH 5.10 257/663] capabilities: Dont allow writing ambiguous v3 file capabilities

2021-03-01 Thread Greg Kroah-Hartman
From: Eric W. Biederman [ Upstream commit 95ebabde382c371572297915b104e55403674e73 ] The v3 file capabilities have a uid field that records the filesystem uid of the root user of the user namespace the file capabilities are valid in. When someone is silly enough to have the same underlying uid

[PATCH 4.19 032/247] ARM: dts: exynos: correct PMIC interrupt trigger level on Odroid XU3 family

2021-03-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 3e7d9a583a24f7582c6bc29a0d4d624feedbc2f9 ] The Samsung PMIC datasheets describe the interrupt line as active low with a requirement of acknowledge from the CPU. The falling edge interrupt will mostly work but it's not correct. Fixes: aac4e0615341

[PATCH 5.11 241/775] perf/arm-cmn: Move IRQs when migrating context

2021-03-01 Thread Greg Kroah-Hartman
From: Robin Murphy [ Upstream commit 1c8147ea89c883d1f4e20f1b1d9c879291430102 ] If we migrate the PMU context to another CPU, we need to remember to retarget the IRQs as well. Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU driver") Signed-off-by: Robin Murphy Link:

[PATCH 5.11 325/775] dmaengine: fsldma: Fix a resource leak in an error handling path of the probe function

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit b202d4e82531a62a33a6b14d321dd2aad491578e ] In case of error, the previous 'fsl_dma_chan_probe()' calls must be undone by some 'fsl_dma_chan_remove()', as already done in the remove function. It was added in the remove function in commit 77cd62e8082b

[PATCH 5.10 181/663] drm/tegra: Fix reference leak when pm_runtime_get_sync() fails

2021-03-01 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 ] The PM reference count is not expected to be incremented on return in these Tegra functions. However, pm_runtime_get_sync() will increment the PM reference count even on failure. Forgetting to put the reference

[PATCH 5.10 343/663] perf tools: Fix DSO filtering when not finding a map for a sampled address

2021-03-01 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo [ Upstream commit c69bf11ad3d30b6bf01cfa538ddff1a59467c734 ] When we lookup an address and don't find a map we should filter that sample if the user specified a list of --dso entries to filter on, fix it. Before: $ perf script sleep 274800

[PATCH 5.10 490/663] media: mceusb: Fix potential out-of-bounds shift

2021-03-01 Thread Greg Kroah-Hartman
From: James Reynolds commit 1b43bad31fb0e00f45baf5b05bd21eb8d8ce7f58 upstream. When processing a MCE_RSP_GETPORTSTATUS command, the bit index to set in ir->txports_cabled comes from response data, and isn't validated. As ir->txports_cabled is a u8, nothing should be done if the bit index is

[PATCH 5.11 051/775] arm64: dts: qcom: msm8916-samsung-a2015: Fix sensors

2021-03-01 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit 3716a583fe0bbe3babf4ce260064a7fa13d6d989 ] When the BMC150 accelerometer/magnetometer was added to the device tree, the sensors were working without specifying any regulator supplies, likely because the regulators were on by default and then never turned

[PATCH 5.10 318/663] objtool: Fix error handling for STD/CLD warnings

2021-03-01 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 6f567c9300a5ebd7b18c26dda1c8d6ffbdd0debd ] Actually return an error (and display a backtrace, if requested) for directional bit warnings. Fixes: 2f0f9e9ad7b3 ("objtool: Add Direction Flag validation") Signed-off-by: Josh Poimboeuf Link:

[PATCH 5.10 435/663] i40e: Add zero-initialization of AQ command structures

2021-03-01 Thread Greg Kroah-Hartman
From: Mateusz Palczewski [ Upstream commit d2c788f739b6f68090e968a2ee31b543701e795f ] Zero-initialize AQ command data structures to comply with API specifications. Fixes: 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower") Fixes: f4492db16df8 ("i40e: Add NPAR BW get and set functions")

[PATCH 5.10 192/663] media: cx25821: Fix a bug when reallocating some dma memory

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit b2de3643c5024fc4fd128ba7767c7fb8b714bea7 ] This function looks like a realloc. However, if 'risc->cpu != NULL', the memory will be freed, but never reallocated with the bigger 'size'. Explicitly set 'risc->cpu' to NULL, so that the reallocation is

[PATCH 5.10 253/663] ubifs: Fix error return code in alloc_wbufs()

2021-03-01 Thread Greg Kroah-Hartman
From: Wang ShaoBo [ Upstream commit 42119dbe571eb419dae99b81dd20fa42f47464e1 ] Fix to return PTR_ERR() error code from the error handling case instead fo 0 in function alloc_wbufs(), as done elsewhere in this function. Fixes: 6a98bc4614de ("ubifs: Add authentication nodes to journal")

[PATCH 5.10 536/663] btrfs: splice remaining dirty_bgs onto the transaction dirty bg list

2021-03-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit 938fcbfb0cbcf532a1869efab58e6009446b1ced upstream. While doing error injection testing with my relocation patches I hit the following assert: assertion failed: list_empty(_group->dirty_list), in fs/btrfs/block-group.c:3356 [ cut here ]

[PATCH 5.10 080/663] optee: simplify i2c access

2021-03-01 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 67bc809752796acb2641ca343cad5b45eef31d7c ] Storing a bogus i2c_client structure on the stack adds overhead and causes a compile-time warning: drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc'

[PATCH 5.10 587/663] coresight: etm4x: Handle accesses to TRCSTALLCTLR

2021-03-01 Thread Greg Kroah-Hartman
From: Suzuki K Poulose commit f72896063396b0cb205cbf0fd76ec6ab3ca11c8a upstream. TRCSTALLCTLR register is only implemented if TRCIDR3.STALLCTL == 0b1 Make sure the driver touches the register only it is implemented. Link:

Re: [PATCH v2 -next] IB/mlx5: Add missing error code

2021-03-01 Thread Jason Gunthorpe
On Mon, Feb 22, 2021 at 08:23:43PM +0800, YueHaibing wrote: > Set err to -ENOMEM if kzalloc fails instead of 0. > > Fixes: 759738537142 ("IB/mlx5: Enable subscription for device events over > DEVX") > Signed-off-by: YueHaibing > Acked-by: Leon Romanovsky > --- >

Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO

2021-03-01 Thread Jason Gunthorpe
On Fri, Feb 19, 2021 at 06:32:26PM -0500, Julian Braha wrote: > commit 6e61907779ba99af785f5b2397a84077c289888a > Author: Julian Braha > Date: Fri Feb 19 18:20:57 2021 -0500 > > drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO > > When RDMA_RXE is enabled and CRYPTO

[PATCH 5.11 012/775] virt: vbox: Do not use wait_event_interruptible when called from kernel context

2021-03-01 Thread Greg Kroah-Hartman
From: Hans de Goede commit c35901b39ddc20077f4ae7b9f7bf344487f62212 upstream. Do not use wait_event_interruptible when vbg_hgcm_call() gets called from kernel-context, such as it being called by the vboxsf filesystem code. This fixes some filesystem related system calls on shared folders

[PATCH 5.10 489/663] Input: i8042 - add ASUS Zenbook Flip to noselftest list

2021-03-01 Thread Greg Kroah-Hartman
From: Marcos Paulo de Souza commit b5d6e7ab7fe7d186878142e9fc1a05e4c3b65eb9 upstream. After commit 77b425399f6d ("Input: i8042 - use chassis info to skip selftest on Asus laptops"), all modern Asus laptops have the i8042 selftest disabled. It has done by using chassys type "10" (laptop). The

[PATCH 5.10 400/663] soundwire: cadence: fix ACK/NAK handling

2021-03-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit db9d9f944f95e7f3aa60ac00cbd502415152c421 ] The existing code reports a NAK only when ACK=0 This is not aligned with the SoundWire 1.x specifications. Table 32 in the SoundWire 1.2 specification shows that a Device shall not set NAK=1 if ACK=1. But

[PATCH 5.11 175/775] drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check

2021-03-01 Thread Greg Kroah-Hartman
From: Maxime Ripard [ Upstream commit 320e84dc6111ecc1c957e2b186d4d2bafee6bde2 ] Commit 63495f6b4aed ("drm/vc4: hdmi: Make sure our clock rate is within limits") was intended to compute the pixel rate to make sure we remain within the boundaries of what the hardware can provide. However,

[PATCH 5.10 115/663] libbpf: Ignore non function pointer member in struct_ops

2021-03-01 Thread Greg Kroah-Hartman
From: Martin KaFai Lau [ Upstream commit d2836dddc95d5dd82c7cb23726c97d8c9147f050 ] When libbpf initializes the kernel's struct_ops in "bpf_map__init_kern_struct_ops()", it enforces all pointer types must be a function pointer and rejects others. It turns out to be too strict. For example,

[PATCH 5.10 535/663] btrfs: fix reloc root leak with 0 ref reloc roots on recovery

2021-03-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit c78a10aebb275c38d0cfccae129a803fe622e305 upstream. When recovering a relocation, if we run into a reloc root that has 0 refs we simply add it to the reloc_control->reloc_roots list, and then clean it up later. The problem with this is __del_reloc_root() doesn't do

[PATCH 5.10 373/663] nfsd: register pernet ops last, unregister first

2021-03-01 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7 ] These pernet operations may depend on stuff set up or torn down in the module init/exit functions. And they may be called at any time in between. So it makes more sense for them to be the last to be registered

[PATCH 5.10 070/663] ARM: dts: armada388-helios4: assign pinctrl to LEDs

2021-03-01 Thread Greg Kroah-Hartman
From: Rosen Penev [ Upstream commit e011c9025a4691b5c734029577a920bd6c320994 ] Split up the pins to match earlier definitions. Allows LEDs to flash properly. Fixes: ced8025b569e ("ARM: dts: armada388-helios4") Signed-off-by: Rosen Penev Signed-off-by: Gregory CLEMENT Signed-off-by: Sasha

[PATCH 5.11 260/775] Drivers: hv: vmbus: Avoid use-after-free in vmbus_onoffer_rescind()

2021-03-01 Thread Greg Kroah-Hartman
From: Andrea Parri (Microsoft) [ Upstream commit e3fa4b747f085d2cda09bba0533b86fa76038635 ] When channel->device_obj is non-NULL, vmbus_onoffer_rescind() could invoke put_device(), that will eventually release the device and free the channel object (cf. vmbus_device_release()). However, a

[PATCH 5.10 649/663] dm era: Update in-core bitset after committing the metadata

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 2099b145d77c1d53f5711f029c37cc537897cee6 upstream. In case of a system crash, dm-era might fail to mark blocks as written in its metadata, although the corresponding writes to these blocks were passed down to the origin device and completed successfully. Consider

[PATCH 5.4 313/340] cpufreq: intel_pstate: Get per-CPU max freq via MSR_HWP_CAPABILITIES if available

2021-03-01 Thread Greg Kroah-Hartman
From: Chen Yu commit 6f67e060083a84a4cc364eab6ae40c717165fb0c upstream. Currently, when turbo is disabled (either by BIOS or by the user), the intel_pstate driver reads the max non-turbo frequency from the package-wide MSR_PLATFORM_INFO(0xce) register. However, on asymmetric platforms it is

[PATCH 5.10 605/663] mmc: sdhci-esdhc-imx: fix kernel panic when remove module

2021-03-01 Thread Greg Kroah-Hartman
From: Frank Li commit a56f44138a2c57047f1ea94ea121af31c595132b upstream. In sdhci_esdhc_imx_remove() the SDHCI_INT_STATUS in read. Under some circumstances, this may be done while the device is runtime suspended, triggering the below splat. Fix the problem by adding a pm_runtime_get_sync(),

[PATCH 5.11 313/775] arm64: dts: qcom: qrb5165-rb5: fix pm8009 regulators

2021-03-01 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit c3da02421230639bf6ee5462b70b58f5b7f3b7c6 ] Fix pm8009 compatibility string to reference pm8009 revision specific to sm8250 platform. Also add S2 regulator to be used for qca639x. Signed-off-by: Dmitry Baryshkov Fixes: b1d2674e6121 ("arm64: dts: qcom:

[PATCH 5.10 199/663] ASoC: SOF: Intel: hda: cancel D0i3 work during runtime suspend

2021-03-01 Thread Greg Kroah-Hartman
From: Ranjani Sridharan [ Upstream commit 0084364d9678e9d722ee620ed916f2f9954abdbf ] Cancel the D0i3 work during runtime suspend as no streams are active at this point anyway. Fixes: 63e51fd33fef ("ASoC: SOF: Intel: cnl: Implement feature to support DSP D0i3 in S0") Signed-off-by: Ranjani

[PATCH 5.10 289/663] RDMA/rtrs-clt: Set mininum limit when create QP

2021-03-01 Thread Greg Kroah-Hartman
From: Jack Wang [ Upstream commit f47e4e3e71724f625958b0059f6c8ac5d44d27ef ] Currently rtrs when create_qp use a coarse numbers (bigger in general), which leads to hardware create more resources which only waste memory with no benefits. - SERVICE con, For max_send_wr/max_recv_wr, it's 2 times

[PATCH 5.10 150/663] drm: rcar-du: Fix PM reference leak in rcar_cmm_enable()

2021-03-01 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 136ce7684bc1ff4a088812f600c63daca50b32c2 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage

[PATCH 5.11 281/775] drm/dp_mst: Dont cache EDIDs for physical ports

2021-03-01 Thread Greg Kroah-Hartman
From: Imre Deak [ Upstream commit 4b8878eefa0a3b65e2e016db49014ea66fb9fd45 ] Caching EDIDs for physical ports prevents updating the EDID if a port gets reconnected via a Connection Status Notification message, fix this. Fixes: db1a07956968 ("drm/dp_mst: Handle SST-only branch device case") Cc:

[PATCH 5.10 360/663] clk: divider: fix initialization with parent_hw

2021-03-01 Thread Greg Kroah-Hartman
From: Michael Tretter [ Upstream commit 0225daea08141b1dff681502d5af70b71e8b11ec ] If a driver registers a divider clock with a parent_hw instead of the parent_name, the parent_hw is ignored and the clock does not have a parent. Fix this by initializing the parents the same way they are

[PATCH 5.10 163/663] media: mtk-vcodec: fix error return code in vdec_vp9_decode()

2021-03-01 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit 4397efebf039be58e98c81a194a26100eba597bb ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: dea42fb79f4f ("media: mtk-vcodec: reset segment data then trig decoder") Reported-by:

[PATCH 5.10 221/663] locking/lockdep: Avoid unmatched unlock

2021-03-01 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 7f82e631d236cafd28518b998c6d4d8dc2ef68f6 ] Commit f6f48e180404 ("lockdep: Teach lockdep about "USED" <- "IN-NMI" inversions") overlooked that print_usage_bug() releases the graph_lock and called it without the graph lock held. Fixes: f6f48e180404

[PATCH 5.11 132/775] net: dsa: felix: dont deinitialize unused ports

2021-03-01 Thread Greg Kroah-Hartman
From: Vladimir Oltean [ Upstream commit 42b5adbbac03bdb396192316c015fa3e64ffd5a1 ] ocelot_init_port is called only if dsa_is_unused_port == false, however ocelot_deinit_port is called unconditionally. This causes a warning in the skb_queue_purge inside ocelot_deinit_port saying that the spin

[PATCH 5.10 184/663] macintosh/adb-iop: Use big-endian autopoll mask

2021-03-01 Thread Greg Kroah-Hartman
From: Finn Thain [ Upstream commit c396dd2ec5bbd1cb80eafe32a72ab6bd6b17cb5a ] As usual, the available documentation is inadequate and leaves endianness unspecified for message data. However, testing shows that this patch does improve correctness. The mistake should have been detected earlier

[PATCH 5.10 612/663] mei: me: emmitsburg workstation DID

2021-03-01 Thread Greg Kroah-Hartman
From: Tomas Winkler commit 372726cb3957dbd69ded9a4e3419d5c6c3bc648e upstream. Add Emmitsburg workstation DID. Cc: Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20210129120752.850325-5-tomas.wink...@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/hw-me-regs.h

[PATCH 5.11 073/775] ARM: dts: armada388-helios4: assign pinctrl to each fan

2021-03-01 Thread Greg Kroah-Hartman
From: Rosen Penev [ Upstream commit 46ecdfc1830eaa40a11d7f832089c82b0e67ea96 ] Split up the pins for each fan. This is needed in order to control them Fixes: ced8025b569e ("ARM: dts: armada388-helios4") Signed-off-by: Rosen Penev Signed-off-by: Gregory CLEMENT Signed-off-by: Sasha Levin

[PATCH 5.10 021/663] ath10k: Fix error handling in case of CE pipe init failure

2021-03-01 Thread Greg Kroah-Hartman
From: Rakesh Pillai [ Upstream commit 31561e8557cd1eeba5806ac9ce820f8323b2201b ] Currently if the copy engine pipe init fails for snoc based chipsets, the rri is not freed. Fix this error handling for copy engine pipe init failure. Tested-on: WCN3990 hw1.0 SNOC

[PATCH 5.10 425/663] soundwire: bus: fix confusion on device used by pm_runtime

2021-03-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit 973794e85610d9a716a897baa9007ff56e192826 ] Intel stress-tests routinely report IO timeouts and invalid power management transitions. Upon further analysis, we seem to be using the wrong devices in pm_runtime calls. Before reading and writing

[PATCH 5.11 161/775] net/mlx5e: E-switch, Fix rate calculation for overflow

2021-03-01 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit 0e22bfb7c046e7c8ae339f396e78a0976633698c ] rate_bytes_ps is a 64-bit field. It passed as 32-bit field to apply_police_params(). Due to this when police rate is higher than 4Gbps, 32-bit calculation ignores the carry. This results in incorrect rate

[PATCH 5.10 002/663] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-03-01 Thread Greg Kroah-Hartman
From: Stefano Garzarella commit dcfde1635e764fd69cc756c7780d144e288608e9 upstream. It's legal to have 'offset + len' equal to sizeof(struct virtio_net_config), since 'ndev->config' is a 'struct virtio_net_config', so we can safely copy its content under this condition. Fixes: 1a86b377aa21

[PATCH 5.10 348/663] spi: stm32: properly handle 0 byte transfer

2021-03-01 Thread Greg Kroah-Hartman
From: Alain Volmat [ Upstream commit 2269f5a8b1a7b38651d62676b98182828f29d11a ] On 0 byte transfer request, return straight from the xfer function after finalizing the transfer. Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Alain Volmat Link:

[PATCH 5.10 187/663] media: software_node: Fix refcounts in software_node_get_next_child()

2021-03-01 Thread Greg Kroah-Hartman
From: Daniel Scally [ Upstream commit fb5ec981adf08b94e6ce27ca16b7765c94f4513c ] The software_node_get_next_child() function currently does not hold references to the child software_node that it finds or put the ref that is held against the old child - fix that. Fixes: 59abd83672f7 ("drivers:

[PATCH 5.4 291/340] arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails

2021-03-01 Thread Greg Kroah-Hartman
From: qiuguorui1 commit 656d1d58d8e0958d372db86c24f0b2ea36f50888 upstream. in function create_dtb(), if fdt_open_into() fails, we need to vfree buf before return. Fixes: 52b2a8af7436 ("arm64: kexec_file: load initrd and device-tree") Cc: sta...@vger.kernel.org # v5.0 Signed-off-by: qiuguorui1

[PATCH 5.10 171/663] ASoC: qcom: qdsp6: Move frontend AIFs to q6asm-dai

2021-03-01 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit 6fd8d2d275f74baa7ac17b2656da1235f56dab99 ] At the moment it is necessary to set up the DAPM routes between front-end AIF<->DAI explicitly in the device tree, e.g. using audio-routing = "MM_DL1", "MultiMedia1 Playback",

[PATCH 5.10 241/663] nvmet-tcp: fix potential race of tcp socket closing accept_work

2021-03-01 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit 0fbcfb089a3f2f2a731d01f0aec8f7697a849c28 ] When we accept a TCP connection and allocate an nvmet-tcp queue we should make sure not to fully establish it or reference it as the connection may be already closing, which triggers queue release work, which does

[PATCH 5.10 615/663] gpio: pcf857x: Fix missing first interrupt

2021-03-01 Thread Greg Kroah-Hartman
From: Maxim Kiselev commit a8002a35935aaefcd6a42ad3289f62bab947f2ca upstream. If no n_latch value will be provided at driver probe then all pins will be used as an input: gpio->out = ~n_latch; In that case initial state for all pins is "one": gpio->status = gpio->out; So if pcf857x

[PATCH 5.10 382/663] RDMA/rtrs-srv: Do not pass a valid pointer to PTR_ERR()

2021-03-01 Thread Greg Kroah-Hartman
From: Jack Wang [ Upstream commit ed408529679737a9a7ad816c8de5d59ba104bb11 ] smatch gives the warning: drivers/infiniband/ulp/rtrs/rtrs-srv.c:1805 rtrs_rdma_connect() warn: passing zero to 'PTR_ERR' Which is trying to say smatch has shown that srv is not an error pointer and thus cannot be

[PATCH 5.11 208/775] crypto: qat - replace CRYPTO_AES with CRYPTO_LIB_AES in Kconfig

2021-03-01 Thread Greg Kroah-Hartman
From: Marco Chiappero [ Upstream commit 4f1a02e75a2eedfddd10222c0fe61d2a04d80099 ] Use CRYPTO_LIB_AES in place of CRYPTO_AES in the dependences for the QAT common code. Fixes: c0e583ab2016 ("crypto: qat - add CRYPTO_AES to Kconfig dependencies") Reported-by: Ard Biesheuvel Signed-off-by:

[PATCH 5.11 074/775] arm64: dts: armada-3720-turris-mox: rename u-boot mtd partition to a53-firmware

2021-03-01 Thread Greg Kroah-Hartman
From: Marek Behún [ Upstream commit a9d9bfcadfb43b856dbcf9419de75f7420d5a225 ] The partition called "u-boot" in reality contains TF-A and U-Boot, and TF-A is before U-Boot. Rename this parition to "a53-firmware" to avoid confusion for users, since they cannot simply build U-Boot from U-Boot

[PATCH 5.11 137/775] net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP

2021-03-01 Thread Greg Kroah-Hartman
From: Shyam Sundar S K [ Upstream commit 9eab3fdb419916f66a72d1572f68d82cd9b3f963 ] Frequent link up/down events can happen when a Bel Fuse SFP part is connected to the amd-xgbe device. Try to avoid the frequent link issues by resetting the PHY as documented in Bel Fuse SFP datasheets. Fixes:

[PATCH 5.11 195/775] media: imx: Unregister csc/scaler only if registered

2021-03-01 Thread Greg Kroah-Hartman
From: Ezequiel Garcia [ Upstream commit bb2216548a2b13cf2942a058b475438a7a6bb028 ] The csc/scaler device pointer (imxmd->m2m_vdev) is assigned after the imx media device v4l2-async probe completes, therefore we need to check if the device is non-NULL before trying to unregister it. This can be

[PATCH 5.11 282/775] hwrng: timeriomem - Fix cooldown period calculation

2021-03-01 Thread Greg Kroah-Hartman
From: Jan Henrik Weinstock [ Upstream commit e145f5565dc48ccaf4cb50b7cfc48777bed8c100 ] Ensure cooldown period tolerance of 1% is actually accounted for. Fixes: ca3bff70ab32 ("hwrng: timeriomem - Improve performance...") Signed-off-by: Jan Henrik Weinstock Signed-off-by: Herbert Xu

Re: [PATCH v2 10/10] clocksource/drivers/hyper-v: Move handling of STIMER0 interrupts

2021-03-01 Thread Daniel Lezcano
On 01/03/2021 02:15, Michael Kelley wrote: > STIMER0 interrupts are most naturally modeled as per-cpu IRQs. But > because x86/x64 doesn't have per-cpu IRQs, the core STIMER0 interrupt > handling machinery is done in code under arch/x86 and Linux IRQs are > not used. Adding support for ARM64 means

[PATCH 5.10 342/663] rtc: zynqmp: depend on HAS_IOMEM

2021-03-01 Thread Greg Kroah-Hartman
From: David Gow [ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ] The Xilinx zynqmp RTC driver makes use of IOMEM functions like devm_platform_ioremap_resource(), which are only available if CONFIG_HAS_IOMEM is defined. This causes the driver not to be enable under make ARCH=um

[PATCH 5.4 309/340] powerpc/32s: Add missing call to kuep_lock on syscall entry

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 57fdfbce89137ae85cd5cef48be168040a47dd13 upstream. Userspace Execution protection and fast syscall entry were implemented independently from each other and were both merged in kernel 5.2, leading to syscall entry missing userspace execution protection. On syscall

[PATCH 5.4 311/340] gpio: pcf857x: Fix missing first interrupt

2021-03-01 Thread Greg Kroah-Hartman
From: Maxim Kiselev commit a8002a35935aaefcd6a42ad3289f62bab947f2ca upstream. If no n_latch value will be provided at driver probe then all pins will be used as an input: gpio->out = ~n_latch; In that case initial state for all pins is "one": gpio->status = gpio->out; So if pcf857x

[PATCH 5.4 325/340] dm era: Verify the data block size hasnt changed

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit c8e846ff93d5eaa5384f6f325a1687ac5921aade upstream. dm-era doesn't support changing the data block size of existing devices, so check explicitly that the requested block size for a new target matches the one stored in the metadata. Fixes: eec40579d84873 ("dm: add era

[PATCH 5.11 082/775] optee: simplify i2c access

2021-03-01 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 67bc809752796acb2641ca343cad5b45eef31d7c ] Storing a bogus i2c_client structure on the stack adds overhead and causes a compile-time warning: drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc'

[PATCH 5.10 539/663] btrfs: fix extent buffer leak on failure to copy root

2021-03-01 Thread Greg Kroah-Hartman
From: Filipe Manana commit 72c9925f87c8b74f36f8e75a4cd93d964538d3ca upstream. At btrfs_copy_root(), if the call to btrfs_inc_ref() fails we end up returning without unlocking and releasing our reference on the extent buffer named "cow" we previously allocated with btrfs_alloc_tree_block(). So

[PATCH 5.11 196/775] media: imx: Fix csc/scaler unregister

2021-03-01 Thread Greg Kroah-Hartman
From: Ezequiel Garcia [ Upstream commit 89b14485caa4b7b2eaf70be0064f0978e68ebeee ] The csc/scaler device private struct is released by ipu_csc_scaler_video_device_release(), which can be called by video_unregister_device() if there are no users of the underlying struct video device. Therefore,

[PATCH 5.10 078/663] iwlwifi: mvm: set enabled in the PPAG command properly

2021-03-01 Thread Greg Kroah-Hartman
From: Luca Coelho [ Upstream commit efaa85cf2294d5e10a724e24356507eeb3836f72 ] When version 2 of the PER_PLATFORM_ANT_GAIN_CMD was implemented, we started copying the values from the command that we have stored into a local instance. But we accidentally forgot to copy the enabled flag, so in

[PATCH 5.10 534/663] btrfs: abort the transaction if we fail to inc ref in btrfs_copy_root

2021-03-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit 867ed321f90d06aaba84e2c91de51cd3038825ef upstream. While testing my error handling patches, I added a error injection site at btrfs_inc_extent_ref, to validate the error handling I added was doing the correct thing. However I hit a pretty ugly corruption while doing

[PATCH 5.10 488/663] Input: joydev - prevent potential read overflow in ioctl

2021-03-01 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 182d679b2298d62bf42bb14b12a8067b8e17b617 upstream. The problem here is that "len" might be less than "joydev->nabs" so the loops which verfy abspam[i] and keypam[] might read beyond the buffer. Fixes: 999b874f4aa3 ("Input: joydev - validate axis/button maps before

[PATCH 5.10 142/663] drm/panel: mantix: Tweak init sequence

2021-03-01 Thread Greg Kroah-Hartman
From: Guido Günther [ Upstream commit dd396dbc4d7811c1567cc43faa4b9ad68094c44d ] We've seen some (non permanent) burn in and bad white balance on some of the panels. Adding this bit from a vendor supplied sequence fixes it. Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix

[PATCH 5.11 238/775] ASoC: qcom: lpass-cpu: Remove bit clock state check

2021-03-01 Thread Greg Kroah-Hartman
From: Srinivasa Rao Mandadapu [ Upstream commit 6c28377b7114d04cf82eedffe9dcc8fa66ecec48 ] No need of BCLK state maintenance from driver side as clock_enable and clk_disable API's maintaing state counter. One of the major issue was spotted when Headset jack inserted while playback continues,

[PATCH 5.10 212/663] drm/amdgpu: Prevent shift wrapping in amdgpu_read_mask()

2021-03-01 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit c915ef890d5dc79f483e1ca3b3a5b5f1a170690c ] If the user passes a "level" value which is higher than 31 then that leads to shift wrapping. The undefined behavior will lead to a syzkaller stack dump. Fixes: 5632708f4452 ("drm/amd/powerplay: add dpm force

[PATCH 5.11 331/775] mfd: bd9571mwv: Use devm_mfd_add_devices()

2021-03-01 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda [ Upstream commit c58ad0f2b052b5675d6394e03713ee41e721b44c ] To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea21272094 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by:

[PATCH 5.11 355/775] spi: imx: Dont print error on -EPROBEDEFER

2021-03-01 Thread Greg Kroah-Hartman
From: Guido Günther [ Upstream commit 8346633f2c87713a1852d802305e03555e9a9fce ] This avoids [0.962538] spi_imx 3082.spi: bitbang start failed with -517 durig driver probe. Fixes: 8197f489f4c4 ("spi: imx: Fix failure path leak on GPIO request error correctly") Signed-off-by: Guido

[PATCH 4.19 075/247] gma500: clean up error handling in init

2021-03-01 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 15ccc39b3aab667c6fa131206f01f31bfbccdf6a ] The main problem with this error handling was that it didn't clean up if i2c_add_numbered_adapter() failed. This code is pretty old, and doesn't match with today's checkpatch.pl standards so I took the opportunity

[PATCH 5.10 274/663] HID: core: detect and skip invalid inputs to snto32()

2021-03-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit a0312af1f94d13800e63a7d0a66e563582e39aec ] Prevent invalid (0, 0) inputs to hid-core's snto32() function. Maybe it is just the dummy device here that is causing this, but there are hundreds of calls to snto32(0, 0). Having n (bits count) of 0 is causing the

[PATCH 5.4 314/340] s390/vtime: fix inline assembly clobber list

2021-03-01 Thread Greg Kroah-Hartman
From: Heiko Carstens commit b29c5093820d333eef22f58cd04ec0d089059c39 upstream. The stck/stckf instruction used within the inline assembly within do_account_vtime() changes the condition code. This is not reflected with the clobber list, and therefore might result in incorrect code generation.

[PATCH 5.10 552/663] arm64: ptrace: Fix seccomp of traced syscall -1 (NO_SYSCALL)

2021-03-01 Thread Greg Kroah-Hartman
From: Timothy E Baldwin commit df84fe94708985cdfb78a83148322bcd0a699472 upstream. Since commit f086f67485c5 ("arm64: ptrace: add support for syscall emulation"), if system call number -1 is called and the process is being traced with PTRACE_SYSCALL, for example by strace, the seccomp check is

[PATCH 5.10 105/663] net/mlx5: Fix health error state handling

2021-03-01 Thread Greg Kroah-Hartman
From: Shay Drory [ Upstream commit 51d138c2610a236c1ed0059d034ee4c74f452b86 ] Currently, when we discover a fatal error, we are queueing a work that will wait for a lock in order to enter the device to error state. Meanwhile, FW commands are still being processed, and gets timeouts. This can

[PATCH 5.11 090/775] iwlwifi: mvm: store PPAG enabled/disabled flag properly

2021-03-01 Thread Greg Kroah-Hartman
From: Luca Coelho [ Upstream commit 551d793f65364c904921ac168d4b4028bb51be69 ] When reading the PPAG table from ACPI, we should store everything in our fwrt structure, so it can be accessed later. But we had a local ppag_table variable in the function and were erroneously storing the

Re: [PATCH v4 2/3] media: uapi: Add VP9 stateless decoder controls

2021-03-01 Thread Nicolas Dufresne
Le dimanche 28 février 2021 à 15:13 +0900, Alexandre Courbot a écrit : > Hi Nicolas, > > On Thu, Feb 25, 2021 at 6:08 AM Nicolas Dufresne > wrote: > > > > Le jeudi 10 septembre 2020 à 15:04 +0900, Alexandre Courbot a écrit : > > > Hi Ezequiel, sorry for the late review! > > > > > > On Tue, May

[PATCH 5.11 142/775] Bluetooth: hci_qca: Wait for SSR completion during suspend

2021-03-01 Thread Greg Kroah-Hartman
From: Venkata Lakshmi Narayana Gubba [ Upstream commit ad3a9c0ec2d2baed936cfdd05870f9d1e1f40e0e ] During SSR after memory dump collection,BT controller will be powered off, powered on and then FW will be downloaded.During suspend if BT controller is powered off due to SSR then we should wait

[PATCH 5.10 156/663] MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0

2021-03-01 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit c6f2a9e17b9bef7677caddb1626c2402f3e9d2bd ] When building xway_defconfig with clang: arch/mips/lantiq/irq.c:305:48: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if ((irq == LTQ_ICU_EBU_IRQ) && (module ==

[PATCH 5.10 062/663] ARM: dts: Configure missing thermal interrupt for 4430

2021-03-01 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 44f416879a442600b006ef7dec3a6dc98bcf59c6 ] We have gpio_86 wired internally to the bandgap thermal shutdown interrupt on 4430 like we have it on 4460 according to the TRM. This can be found easily by searching for TSHUT. For some reason the thermal

[PATCH 5.10 330/663] mmc: sdhci-sprd: Fix some resource leaks in the remove function

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit c9c256a8b0dc09c305c409d6264cc016af2ba38d ] 'sdhci_remove_host()' and 'sdhci_pltfm_free()' should be used in place of 'mmc_remove_host()' and 'mmc_free_host()'. This avoids some resource leaks, is more in line with the error handling path of the probe

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