[PATCH 5.4 272/453] mac80211: dont set set TDLS STA bandwidth wider than possible

2020-12-28 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit f65607cdbc6b0da356ef5a22552ddd9313cf87a0 ] When we set up a TDLS station, we set sta->sta.bandwidth solely based on the capabilities, because the "what's the current bandwidth" check is bypassed and only applied for other types of stations. This leads to th

[PATCH 5.4 288/453] sparc: fix handling of page table constructor failure

2020-12-28 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 06517c9a336f4c20f2064611bf4b1e7881a95fe1 ] The page has just been allocated, so its refcount is 1. free_unref_page() is for use on pages which have a zero refcount. Use __free_page() like the other implementations of pte_alloc_one(). Link: https

[PATCH 5.4 297/453] watchdog: coh901327: add COMMON_CLK dependency

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 36c47df85ee8e1f8a35366ac11324f8875de00eb ] clang produces a build failure in configurations without COMMON_CLK when a timeout calculation goes wrong: arm-linux-gnueabi-ld: drivers/watchdog/coh901327_wdt.o: in function `coh901327_enable': coh901327_wdt.c:(.

[PATCH 5.4 283/453] um: chan_xterm: Fix fd leak

2020-12-28 Thread Greg Kroah-Hartman
From: Anton Ivanov [ Upstream commit 9431f7c199ab0d02da1482d62255e0b4621cb1b5 ] xterm serial channel was leaking a fd used in setting up the port helper This bug is prehistoric - it predates switching to git. The "fixes" header here is really just to mark all the versions we would like this to

[PATCH 5.4 242/453] seq_buf: Avoid type mismatch for seq_buf_init

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit d9a9280a0d0ae51dc1d4142138b99242b7ec8ac6 ] Building with W=2 prints a number of warnings for one function that has a pointer type mismatch: linux/seq_buf.h: In function 'seq_buf_init': linux/seq_buf.h:35:12: warning: pointer targets in assignment from 'unsi

[PATCH 5.4 240/453] scsi: qedi: Fix missing destroy_workqueue() on error in __qedi_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 62eebd5247c4e4ce08826ad5995cf4dd7ce919dd ] Add the missing destroy_workqueue() before return from __qedi_probe in the error handling case when fails to create workqueue qedi->offload_thread. Link: https://lore.kernel.org/r/20201109091518.55941-1-miaoqingl..

[PATCH 5.4 356/453] perf/x86/intel: Add event constraint for CYCLE_ACTIVITY.STALLS_MEM_ANY

2020-12-28 Thread Greg Kroah-Hartman
From: Kan Liang commit 306e3e91edf1c6739a55312edd110d298ff498dd upstream. The event CYCLE_ACTIVITY.STALLS_MEM_ANY (0x14a3) should be available on all 8 GP counters on ICL, but it's only scheduled on the first four counters due to the current ICL constraint table. Add a line for the CYCLE_ACTIVI

[PATCH 5.4 348/453] s390/kexec_file: fix diag308 subcode when loading crash kernel

2020-12-28 Thread Greg Kroah-Hartman
From: Philipp Rudo commit 613775d62ec60202f98d2c5f520e6e9ba6dd4ac4 upstream. diag308 subcode 0 performes a clear reset which inlcudes the reset of all registers in the system. While this is the preferred behavior when loading a normal kernel via kexec it prevents the crash kernel to store the re

[PATCH 5.4 320/453] vfio/pci/nvlink2: Do not attempt NPU2 setup on POWER8NVL NPU

2020-12-28 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy commit d22f9a6c92de96304c81792942ae7c306f08ac77 upstream. We execute certain NPU2 setup code (such as mapping an LPID to a device in NPU2) unconditionally if an Nvlink bridge is detected. However this cannot succeed on POWER8NVL machines as the init helpers return an e

[PATCH -next] media: platform: davinci: Use DEFINE_SPINLOCK() for spinlock

2020-12-28 Thread Zheng Yongjun
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Zheng Yongjun --- drivers/media/platform/davinci/vpif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/davinci/vpif.c b/

[PATCH 5.4 294/453] net: korina: fix return value

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Stehlé [ Upstream commit 7eb000bdbe7c7da811ef51942b356f6e819b13ba ] The ndo_start_xmit() method must not attempt to free the skb to transmit when returning NETDEV_TX_BUSY. Therefore, make sure the korina_send_packet() function returns NETDEV_TX_OK when it frees a packet. Fixes: ef

Re: [PATCH 3/9] KVM: arm64: vgic-v3: Fix error handling in vgic_v3_set_redist_base()

2020-12-28 Thread Marc Zyngier
Hi Eric, On Sat, 12 Dec 2020 18:50:04 +, Eric Auger wrote: > > vgic_register_all_redist_iodevs may succeed while > vgic_register_all_redist_iodevs fails. For example this can happen The same function cannot both fail and succeed ;-) Can you shed some light on what you had in mind? > while

[PATCH 5.4 301/453] perf record: Fix memory leak when using --user-regs=? to list registers

2020-12-28 Thread Greg Kroah-Hartman
From: Zheng Zengkai [ Upstream commit 2eb5dd418034ecea2f7031e3d33f2991a878b148 ] When using 'perf record's option '-I' or '--user-regs=' along with argument '?' to list available register names, memory of variable 'os' allocated by strdup() needs to be released before __parse_regs() returns, oth

[PATCH 5.4 296/453] watchdog: qcom: Avoid context switch in restart handler

2020-12-28 Thread Greg Kroah-Hartman
From: Manivannan Sadhasivam [ Upstream commit 7948fab26bcc468aa2a76462f441291b5fb0d5c7 ] The use of msleep() in the restart handler will cause scheduler to induce a context switch which is not desirable. This generates below warning on SDX55 when WDT is the only available restart source: [ 39

[PATCH 5.4 276/453] watchdog: sirfsoc: Add missing dependency on HAS_IOMEM

2020-12-28 Thread Greg Kroah-Hartman
From: Guenter Roeck [ Upstream commit 8ae252d2e18bc7d324b77f965d34083a25a2 ] If HAS_IOMEM is not defined and SIRFSOC_WATCHDOG is enabled, the build fails with the following error. drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe': sirfsoc_wdt.c:(.text+0x112): undefined

[PATCH 5.4 312/453] cfg80211: initialize rekey_data

2020-12-28 Thread Greg Kroah-Hartman
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20201129172929.930f0ab7ebee.Ic546e384efab3f4a89f318eafd

[PATCH 5.4 326/453] media: ipu3-cio2: Serialise access to pad format

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 55a6c6b2be3d6670bf5772364d8208bd8dc17da4 upstream. Pad format can be accessed from user space. Serialise access to it. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver") Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart Reviewed-by: Bin

[PATCH 5.4 352/453] s390/dasd: fix list corruption of lcu list

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Haberland commit 53a7f655834c7c335bf683f248208d4fbe4b47bc upstream. In dasd_alias_disconnect_device_from_lcu the device is removed from any list on the LCU. Afterwards the LCU is removed from the lcu list if it does not contain devices any longer. The lcu->lock protects the lcu fro

[PATCH 5.4 351/453] s390/dasd: fix list corruption of pavgroup group list

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Haberland commit 0ede91f83aa335da1c3ec68eb0f9e228f269f6d8 upstream. dasd_alias_add_device() moves devices to the active_devices list in case of a scheduled LCU update regardless if they have previously been in a pavgroup or not. Example: device A and B are in the same pavgroup. De

[PATCH 5.4 324/453] media: ipu3-cio2: Remove traces of returned buffers

2020-12-28 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 61e7f892b5ee1dd10ea8bff805f3c3fe6e535959 upstream. If starting a video buffer queue fails, the buffers are returned to videobuf2. Remove the reference to the buffer from the driver's queue as well. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver

[PATCH 5.4 350/453] s390/dasd: prevent inconsistent LCU device data

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Haberland commit a29ea01653493b94ea12bb2b89d1564a265081b6 upstream. Prevent _lcu_update from adding a device to a pavgroup if the LCU still requires an update. The data is not reliable any longer and in parallel devices might have been moved on the lists already. This might lead to

[PATCH 5.4 236/453] Bluetooth: btmtksdio: Add the missed release_firmware() in mtk_setup_firmware()

2020-12-28 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit b73b5781a85c03113476f62346c390f0277baa4b ] mtk_setup_firmware() misses to call release_firmware() in an error path. Jump to free_fw to fix it. Fixes: 737cd06072a7 ("Bluetooth: btmtksdio: fix up firmware download sequence") Signed-off-by: Jing Xiangfeng Si

[PATCH 5.4 263/453] remoteproc: q6v5-mss: fix error handling in q6v5_pds_enable

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit a24723050037303e4008b37f1f8dcc99c58901aa ] If the pm_runtime_get_sync failed in q6v5_pds_enable when loop (i), The unroll_pd_votes will start from (i - 1), and it will resulted in following problems: 1) pm_runtime_get_sync will increment pm usage counter e

[PATCH 5.4 257/453] bus: fsl-mc: fix error return code in fsl_mc_object_allocate()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit 3d70fb03711c37bc64e8e9aea5830f498835f6bf ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 197f4d6a4a00 ("staging: fsl-mc: fsl-mc object allocator driver") Reported-by: Hulk Robot

[PATCH 5.4 244/453] platform/x86: mlx-platform: Fix item counter assignment for MSN2700, MSN24xx systems

2020-12-28 Thread Greg Kroah-Hartman
From: Vadim Pasternak [ Upstream commit ba4939f1dd46dde08c2f9b9d7ac86ed3ea7ead86 ] Fix array names to match assignments for data items and data items counter in 'mlxplat_mlxcpld_default_items' structure for: .data = mlxplat_mlxcpld_default_pwr_items_data, .count = ARRAY_SIZE(mlxp

[PATCH 5.4 264/453] remoteproc: qcom: fix reference leak in adsp_start

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit aa37448f597c09844942da87d042fc6793f989c2 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in adsp_start, so we should fix it. Fixes: dc160e4491222 ("remoteproc: qcom: Intr

[PATCH 5.4 238/453] ARM: dts: meson: fix PHY deassert timing requirements

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Agner [ Upstream commit 656ab1bdcd2b755dc161a9774201100d5bf74b8d ] According to the datasheet (Rev. 1.9) the RTL8211F requires at least 72ms "for internal circuits settling time" before accessing the PHY registers. On similar boards with the same PHY this fixes an issue where Ethern

[PATCH 5.4 251/453] usb: oxu210hp-hcd: Fix memory leak in oxu_create

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit e5548b05631ec3e6bfdaef1cad28c799545b791b ] usb_create_hcd will alloc memory for hcd, and we should call usb_put_hcd to free it when adding fails to prevent memory leak. Fixes: b92a78e582b1a ("usb host: Oxford OXU210HP HCD driver") Reported-by: Hulk Robot Si

[PATCH 5.4 239/453] arm64: dts: meson: g12a: x96-max: fix PHY deassert timing requirements

2020-12-28 Thread Greg Kroah-Hartman
From: Stefan Agner [ Upstream commit 3d07c3b3a886fefd583c1b485b5e4e3c4e2da493 ] According to the datasheet (Rev. 1.9) the RTL8211F requires at least 72ms "for internal circuits settling time" before accessing the PHY registers. On similar boards with the same PHY this fixes an issue where Ethern

Re: [RFC] ravb: Add support for optional txc_refclk

2020-12-28 Thread Adam Ford
On Mon, Dec 14, 2020 at 4:05 AM Geert Uytterhoeven wrote: > > Hi Adam, > > On Sun, Dec 13, 2020 at 5:18 PM Adam Ford wrote: > > The SoC expects the txv_refclk is provided, but if it is provided > > by a programmable clock, there needs to be a way to get and enable > > this clock to operate. It n

[PATCH 5.4 267/453] mtd: rawnand: gpmi: fix reference count leak in gpmi ops

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 1b391c7f2e863985668d705f525af3ceb55bc800 ] pm_runtime_get_sync() will increment pm usage at first and it will resume the device later. If runtime of the device has error or device is in inaccessible state(or other error state), resume operation will fail. If

[PATCH 5.4 265/453] remoteproc: qcom: Fix potential NULL dereference in adsp_init_mmio()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit c3d4e5b12672bbdf63f4cc933e3169bc6bbec8da ] platform_get_resource() may fail and in this case a NULL dereference will occur. Fix it to use devm_platform_ioremap_resource() instead of calling platform_get_resource() and devm_ioremap(). This is detected by

[PATCH 5.4 258/453] s390/cio: fix use-after-free in ccw_device_destroy_console

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804 ] Use of sch->dev reference after the put_device() call could trigger the use-after-free bugs. Fix this by simply adjusting the position of put_device. Fixes: 37db8985b211 ("s390/cio: add basic protected virtualizat

[PATCH 5.4 254/453] nfs_common: need lock during iterate through the list

2020-12-28 Thread Greg Kroah-Hartman
From: Cheng Lin [ Upstream commit 4a9d81caf841cd2c0ae36abec9c2963bf21d0284 ] If the elem is deleted during be iterated on it, the iteration process will fall into an endless loop. kernel: NMI watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [nfsd:17137] PID: 17137  TASK: 8818d93c  CPU

[PATCH 5.4 252/453] speakup: fix uninitialized flush_lock

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit d1b928ee1cfa965a3327bbaa59bfa005d97fa0fe ] The flush_lock is uninitialized, use DEFINE_SPINLOCK to define and initialize flush_lock. Fixes: c6e3fd22cd53 ("Staging: add speakup to the staging directory") Reported-by: Hulk Robot Reviewed-by: Samuel Thibault

[PATCH 5.4 245/453] powerpc/pseries/hibernation: drop pseries_suspend_begin() from suspend ops

2020-12-28 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit 52719fce3f4c7a8ac9eaa191e8d75a697f9fbcbc ] There are three ways pseries_suspend_begin() can be reached: 1. When "mem" is written to /sys/power/state: kobj_attr_store() -> state_store() -> pm_suspend() -> suspend_devices_and_enter() -> pseries_su

[PATCH 5.4 230/453] cpufreq: qcom: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit a5a6031663bc1dd0a10babd49d1bcb3153a8327f ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 46e2856

[PATCH 5.4 202/453] NFSv4: Fix the alignment of page data in the getdeviceinfo reply

2020-12-28 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit 046e5ccb4198b990190e11fb52fd9cfd264402eb ] We can fit the device_addr4 opaque data padding in the pages. Fixes: cf500bac8fd4 ("SUNRPC: Introduce rpc_prepare_reply_pages()") Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/nfs4xdr.c

[PATCH 5.4 227/453] cpufreq: ap806: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit 925a5bcefe105f2790ecbdc252eb2315573f309d ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: f525a67

[PATCH 5.4 206/453] selftests/seccomp: Update kernel config

2020-12-28 Thread Greg Kroah-Hartman
From: Mickaël Salaün [ Upstream commit 2c07343abd8932200a45ff7b10950e71081e9e77 ] seccomp_bpf.c uses unshare(CLONE_NEWPID), which requires CONFIG_PID_NS to be set. Cc: Kees Cook Cc: Shuah Khan Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Signed-off-by: Mickaël Salaü

[PATCH 5.4 234/453] cpufreq: scpi: Add missing MODULE_ALIAS

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit c0382d049d2def37b81e907a8b22661a4a4a6eb5 ] This patch adds missing MODULE_ALIAS for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 8def31034d033 ("cpufreq: arm_big_little: add SCPI interfac

[PATCH 5.4 224/453] phy: renesas: rcar-gen3-usb2: disable runtime pm in case of failure

2020-12-28 Thread Greg Kroah-Hartman
From: Wang Li [ Upstream commit 51e339deab1e51443f6ac3b1bd5cd6cc8e8fe1d9 ] pm_runtime_enable() will decrease power disable depth. Thus a pairing increment is needed on the error handling path to keep it balanced. Fixes: 5d8042e95fd4 ("phy: rcar-gen3-usb2: Add support for r8a77470") Reported-by:

[PATCH 5.4 204/453] lockd: dont use interval-based rebinding over TCP

2020-12-28 Thread Greg Kroah-Hartman
From: Calum Mackay [ Upstream commit 9b82d88d5976e5f2b8015d58913654856576ace5 ] NLM uses an interval-based rebinding, i.e. it clears the transport's binding under certain conditions if more than 60 seconds have elapsed since the connection was last bound. This rebinding is not necessary for an

[PATCH 5.4 214/453] iio: hrtimer-trigger: Mark hrtimer to expire in hard interrupt context

2020-12-28 Thread Greg Kroah-Hartman
From: Lars-Peter Clausen [ Upstream commit 0178297c1e6898e2197fe169ef3be723e019b971 ] On PREEMPT_RT enabled kernels unmarked hrtimers are moved into soft interrupt expiry mode by default. The IIO hrtimer-trigger needs to run in hard interrupt context since it will end up calling generic_handle_

[PATCH 5.4 222/453] ASoC: jz4740-i2s: add missed checks for clk_get()

2020-12-28 Thread Greg Kroah-Hartman
From: Chuhong Yuan [ Upstream commit 1c1fb2653a0c2e3f310c07eacd8fc3a10e08c97a ] jz4740_i2s_set_sysclk() does not check the return values of clk_get(), while the file dereferences the pointers in clk_put(). Add the missed checks to fix it. Fixes: 11bd3dd1b7c2 ("ASoC: Add JZ4740 ASoC support") Si

[PATCH] mm/page_alloc:add a missing mm_page_alloc_zone_locked tracepoint

2020-12-28 Thread Hailong liu
From: Hailong liu The trace point *trace_mm_page_alloc_zone_locked()* in __rmqueue() does not currently cover all branches. Add the missing tracepoint and check the page before do that. Signed-off-by: Hailong liu --- mm/page_alloc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

[PATCH 5.4 177/453] media: max2175: fix max2175_set_csm_mode() error code

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 9b1b0cb0636166187478ef68d5b95f5caea062ec ] This is supposed to return negative error codes but the type is bool so it returns true instead. Fixes: b47b79d8a231 ("[media] media: i2c: max2175: Add MAX2175 support") Signed-off-by: Dan Carpenter Signed-off-by:

[PATCH 5.4 174/453] samples: bpf: Fix lwt_len_hist reusing previous BPF map

2020-12-28 Thread Greg Kroah-Hartman
From: Daniel T. Lee [ Upstream commit 0afe0a998c40085a6342e1aeb4c510cccba46caf ] Currently, lwt_len_hist's map lwt_len_hist_map is uses pinning, and the map isn't cleared on test end. This leds to reuse of that map for each test, which prevents the results of the test from being accurate. This

[PATCH 5.4 199/453] SUNRPC: rpc_wake_up() should wake up tasks in the correct order

2020-12-28 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit e4c72201b6ec3173dfe13fa2e2335a3ad78d4921 ] Currently, we wake up the tasks by priority queue ordering, which means that we ignore the batching that is supposed to help with QoS issues. Fixes: c049f8ea9a0d ("SUNRPC: Remove the bh-safe lock requirement on t

[PATCH 5.4 201/453] SUNRPC: xprt_load_transport() needs to support the netid "rdma6"

2020-12-28 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit d5aa6b22e2258f05317313ecc02efbb988ed6d38 ] According to RFC5666, the correct netid for an IPv6 addressed RDMA transport is "rdma6", which we've supported as a mount option since Linux-4.7. The problem is when we try to load the module "xprtrdma6", that wil

[PATCH 5.4 194/453] ARM: dts: at91: at91sam9rl: fix ADC triggers

2020-12-28 Thread Greg Kroah-Hartman
From: Alexandre Belloni [ Upstream commit 851a95da583c26e2ddeb7281e9b61f0d76ea5aba ] The triggers for the ADC were taken from at91sam9260 dtsi but are not correct. Fixes: a4c1d6c75822 ("ARM: at91/dt: sam9rl: add lcd, adc, usb gadget and pwm support") Signed-off-by: Alexandre Belloni Link: ht

[PATCH 5.4 192/453] arm64: dts: meson-sm1: fix typo in opp table

2020-12-28 Thread Greg Kroah-Hartman
From: Dongjin Kim [ Upstream commit b6a1c8a1eaa73b1e2ae251399308e9445d74cef7 ] The freqency 151200 should be 15. Signed-off-by: Dongjin Kim Fixes: 3d9e76483049 ("arm64: dts: meson-sm1-sei610: enable DVFS") Reviewed-by: Neil Armstrong Signed-off-by: Kevin Hilman Link: https://lore

[PATCH 5.4 171/453] media: siano: fix memory leak of debugfs members in smsdvb_hotplug

2020-12-28 Thread Greg Kroah-Hartman
From: Keita Suzuki [ Upstream commit abf287eeff4c6da6aa804bbd429dfd9d0dfb6ea7 ] When dvb_create_media_graph fails, the debugfs kept inside client should be released. However, the current implementation does not release them. Fix this by adding a new goto label to call smsdvb_debugfs_release. F

[PATCH 5.4 212/453] clocksource/drivers/orion: Add missing clk_disable_unprepare() on error path

2020-12-28 Thread Greg Kroah-Hartman
From: Yang Yingliang [ Upstream commit c1e6cad00aa2f17845e7270e38ff3cc82c7b022a ] After calling clk_prepare_enable(), clk_disable_unprepare() need be called on error path. Fixes: fbe4b3566ddc ("clocksource/drivers/orion: Convert init function...") Reported-by: Hulk Robot Signed-off-by: Yang Yi

[PATCH 5.4 167/453] cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 7ec8a926188eb8e7a3cbaca43ec44f2d7146d71b ] Add the missing destroy_workqueue() before return from cw1200_init_common in the error handling case. Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Reported-by: Hulk Robot

[PATCH 5.4 168/453] dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhihao Cheng [ Upstream commit c95e6515a8c065862361f7e0e452978ade7f94ec ] Return the corresponding error code when first_msi_entry() returns NULL in mv_xor_v2_probe(). Fixes: 19a340b1a820430 ("dmaengine: mv_xor_v2: new driver") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Link: h

[PATCH 5.4 195/453] platform/x86: dell-smbios-base: Fix error return code in dell_smbios_init

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 2425ccd30fd78ce35237350fe8baac31dc18bd45 ] Fix to return the error code -ENODEV when fails to init wmi and smm. Fixes: 41e36f2f85af ("platform/x86: dell-smbios: Link all dell-smbios-* modules together") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao

[PATCH 5.4 183/453] power: supply: axp288_charger: Fix HP Pavilion x2 10 DMI matching

2020-12-28 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit a0f1ccd96c7049377d892a4299b6d5e47ec9179d ] Commit 9c80662a74cd ("power: supply: axp288_charger: Add special handling for HP Pavilion x2 10") added special handling for HP Pavilion x2 10 models which use the weird combination of a Type-C connector and the non

[PATCH 5.4 193/453] soc: amlogic: canvas: add missing put_device() call in meson_canvas_get()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 28f851e6afa858f182802e23ac60c3ed7d1c04a1 ] if of_find_device_by_node() succeed, meson_canvas_get() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: 382f8be04551 ("soc: amlogic:

[PATCH 5.4 184/453] power: supply: bq24190_charger: fix reference leak

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit b2f6cb78eaa1cad57dd3fe11d0458cd4fae9a584 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to call pm_runtime_put_noidle will result in reference leak in callers(bq24190_sysfs_show, bq24190_charger_get_property, bq24190_charger_

[PATCH 5.4 181/453] arm64: dts: armada-3720-turris-mox: update ethernet-phy handle name

2020-12-28 Thread Greg Kroah-Hartman
From: Marek Behún [ Upstream commit 3aa669a994c9110a2dc7e08a5c0958a9ea5eb17c ] Use property name `phy-handle` instead of the deprecated `phy` to connect eth2 to the PHY. Signed-off-by: Marek Behún Fixes: 7109d817db2e ("arm64: dts: marvell: add DTS for Turris Mox") Cc: Gregory CLEMENT Cc: Andr

[PATCH 5.4 135/453] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 4affafd7bec7c65da31777f18bd20420f1aeb5f8 ] if of_find_device_by_node() succeed, mtk_vcodec_init_enc_pm() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 4e855a6efa54 ("[media]

[PATCH 5.4 180/453] ARM: dts: Remove non-existent i2c1 from 98dx3236

2020-12-28 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 7f24479ead579459106bb55c2320a000135731f9 ] The switches with integrated CPUs have only got a single i2c controller. They incorrectly gained one when they were split from the Armada-XP. Fixes: 43e28ba87708 ("ARM: dts: Use armada-370-xp as a base for armada-

[PATCH 5.4 178/453] slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI

2020-12-28 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit 39014ce6d6028614a46395923a2c92d058b6fa87 ] Attempting to send a power request during PM operations, when the QMI handle isn't initialized results in a NULL pointer dereference. So check if the QMI handle has been initialized before attempting to post the p

[PATCH 5.4 217/453] pinctrl: falcon: add missing put_device() call in pinctrl_falcon_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 89cce2b3f247a434ee174ab6803698041df98014 ] if of_find_device_by_node() succeed, pinctrl_falcon_probe() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: e316cb2b16bb ("OF: pinct

[PATCH 5.4 175/453] media: imx214: Fix stop streaming

2020-12-28 Thread Greg Kroah-Hartman
From: Daniel Gomez [ Upstream commit eeb76afbe8d91e112396c6281cd020725160f006 ] Stop video streaming when requested. When s_stream is called to stop the video streaming, if/else condition calls start_streaming function instead of the one for stopping it. Fixes: 436190596241 ("media: imx214: Ad

[PATCH 5.4 198/453] ath10k: Release some resources in an error handling path

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 6364e693f4a7a89a2fb3dd2cbd6cc06d5fd6e26d ] Should an error occur after calling 'ath10k_usb_create()', it should be undone by a corresponding 'ath10k_usb_destroy()' call Fixes: 4db66499df91 ("ath10k: add initial USB support") Signed-off-by: Christophe J

[PATCH 5.4 197/453] ath10k: Fix an error handling path

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit ed3573bc3943c27d2d8e405a242f87ed14572ca1 ] If 'ath10k_usb_create()' fails, we should release some resources and report an error instead of silently continuing. Fixes: 4db66499df91 ("ath10k: add initial USB support") Signed-off-by: Christophe JAILLET S

[PATCH 5.4 176/453] mips: cdmm: fix use-after-free in mips_cdmm_bus_discover

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit f0e82242b16826077a2775eacfe201d803bb7a22 ] kfree(dev) has been called inside put_device so anther kfree would cause a use-after-free bug/ Fixes: 8286ae03308c ("MIPS: Add CDMM bus support") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao Acked-by: Ser

Re: [PATCH 4/9] KVM: arm/arm64: vgic: Reset base address on kvm_vgic_dist_destroy()

2020-12-28 Thread Marc Zyngier
On Sat, 12 Dec 2020 18:50:05 +, Eric Auger wrote: > > On vgic_dist_destroy(), the addresses are not reset. However for > kvm selftest purpose this would allow to continue the test execution > even after a failure when running KVM_RUN. So let's reset the > base addresses. > > Signed-off-by: E

[PATCH 5.4 172/453] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration

2020-12-28 Thread Greg Kroah-Hartman
From: Vadim Pasternak [ Upstream commit 2bf5046bdb649908df8bcc0a012c56eee931a9af ] Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and Celeron CPU - system types MSN2700, MSN2100. Till now all the systems from this class used few types of power units, all e

[PATCH 5.4 190/453] PCI: iproc: Fix out-of-bound array accesses

2020-12-28 Thread Greg Kroah-Hartman
From: Bharat Gooty [ Upstream commit a3ff529f5d368a17ff35ada8009e101162ebeaf9 ] Declare the full size array for all revisions of PAX register sets to avoid potentially out of bound access of the register array when they are being initialized in iproc_pcie_rev_init(). Link: https://lore.kernel.

[PATCH 5.4 143/453] Input: ads7846 - fix integer overflow on Rt calculation

2020-12-28 Thread Greg Kroah-Hartman
From: Oleksij Rempel [ Upstream commit 820830ec918f6c3dcd77a54a1c6198ab57407916 ] In some rare cases the 32 bit Rt value will overflow if z2 and x is max, z1 is minimal value and x_plate_ohms is relatively high (for example 800 ohm). This would happen on some screen age with low pressure. There

[PATCH 5.4 166/453] rsi: fix error return code in rsi_reset_card()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit fb21d14694bd46a538258d86498736490b3ba855 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 17ff2c794f39 ("rsi: reset device changes for 9116") Reported-by: Hulk Robot Signed-off-b

[PATCH 5.4 216/453] bpf: Fix bpf_put_raw_tracepoint()s use of __module_address()

2020-12-28 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 12cc126df82c96c89706aa207ad27c56f219047c ] __module_address() needs to be called with preemption disabled or with module_mutex taken. preempt_disable() is enough for read-only uses, which is what this fix does. Also, module_put() does internal check for NU

[PATCH 5.4 173/453] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration

2020-12-28 Thread Greg Kroah-Hartman
From: Vadim Pasternak [ Upstream commit 912b341585e302ee44fc5a2733f7bcf505e2c86f ] Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and ATOM CPU - system types MSN274x. Till now all the systems from this class used few types of power units, all equipped with

[PATCH 5.4 189/453] PCI: Fix overflow in command-line resource alignment requests

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit cc73eb321d246776e5a9f7723d15708809aa3699 ] The shift of 1 by align_order is evaluated using 32 bit arithmetic and the result is assigned to a resource_size_t type variable that is a 64 bit unsigned integer on 64 bit platforms. Fix an overflow before widenin

[PATCH 5.4 191/453] arm64: dts: meson: fix spi-max-frequency on Khadas VIM2

2020-12-28 Thread Greg Kroah-Hartman
From: Artem Lapkin [ Upstream commit b6c605e00ce8910d7ec3d9a54725d78b14db49b9 ] The max frequency for the w25q32 (VIM v1.2) and w25q128 (VIM v1.4) spifc chip should be 104Mhz not 30MHz. Fixes: b8b74dda3908 ("ARM64: dts: meson-gxm: Add support for Khadas VIM2") Signed-off-by: Artem Lapkin Revie

[PATCH 5.4 196/453] ath10k: Fix the parsing error in service available event

2020-12-28 Thread Greg Kroah-Hartman
From: Rakesh Pillai [ Upstream commit c7cee9c0f499f27ec6de06bea664b61320534768 ] The wmi service available event has been extended to contain extra 128 bit for new services to be indicated by firmware. Currently the presence of any optional TLVs in the wmi service available event leads to a par

Re: [PATCH 15/15] perf record: Add --buildid-mmap option to enable mmap's build id

2020-12-28 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 14, 2020 at 11:54:57AM +0100, Jiri Olsa escreveu: > Adding --buildid-mmap option to enable build id in mmap2 events. > It will only work if there's kernel support for that and it disables > build id cache (implies --no-buildid). > > It's also possible to enable it permanently via confi

[PATCH 5.4 169/453] leds: netxbig: add missing put_device() call in netxbig_leds_get_of_pdata()

2020-12-28 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 311066aa9ebcd6f1789c829da5039ca02f2dfe46 ] if of_find_device_by_node() succeed, netxbig_leds_get_of_pdata() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 2976b1798909 ("leds:

[PATCH 5.4 138/453] scsi: core: Fix VPD LUN ID designator priorities

2020-12-28 Thread Greg Kroah-Hartman
From: Martin Wilck [ Upstream commit 2e4209b3806cda9b89c30fd5e7bfecb7044ec78b ] The current implementation of scsi_vpd_lun_id() uses the designator length as an implicit measure of priority. This works most of the time, but not always. For example, some Hitachi storage arrays return this in VPD

[PATCH 5.4 156/453] drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhihao Cheng [ Upstream commit 4cba398f37f868f515ff12868418dc28574853a1 ] Fix to return the error code from of_get_child_by_name() instaed of 0 in knav_queue_probe(). Fixes: 41f93af900a20d1a0a ("soc: ti: add Keystone Navigator QMSS driver") Reported-by: Hulk Robot Signed-off-by: Zhihao C

[PATCH 5.4 147/453] selftests/bpf: Fix broken riscv build

2020-12-28 Thread Greg Kroah-Hartman
From: Björn Töpel [ Upstream commit 6016df8fe874e1cf36f6357d71438b384198ce06 ] The selftests/bpf Makefile includes system include directories from the host, when building BPF programs. On RISC-V glibc requires that __riscv_xlen is defined. This is not the case for "clang -target bpf", which mess

[PATCH 5.4 155/453] soc: ti: Fix reference imbalance in knav_dma_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit b4fa73358c306d747a2200aec6f7acb97e5750e6 ] The patch fix two reference leak. 1) pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to call put operation will result in reference leak. 2) The pm_runtime_enable will i

[PATCH 5.4 154/453] soc: ti: knav_qmss: fix reference leak in knav_queue_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ec8684847d8062496c4619bc3fcff31c19d56847 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in knav_queue_probe, so we should fix it. Fixes: 41f93af900a20 ("soc: ti: add Key

[PATCH 5.4 162/453] ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit e1062fa7292f1e3744db0a487c4ac0109e09b03d ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: b7c2b61570798 ("ARM: at91: add Atmel's SAMA5

[PATCH 5.4 161/453] ARM: dts: at91: sama5d4_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit be4dd2d448816a27c1446f8f37fce375daf64148 ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: 38153a017896f ("ARM: at91/dt: sama5d4: add d

[PATCH 5.4 124/453] net: evaluate net.ipvX.conf.all.ignore_routes_with_linkdown

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Bernat [ Upstream commit c0c5a60f0f1311bcf08bbe735122096d6326fb5b ] Introduced in 0eeb075fad73, the "ignore_routes_with_linkdown" sysctl ignores a route whose interface is down. It is provided as a per-interface sysctl. However, while a "all" variant is exposed, it was a noop since

[PATCH 5.4 104/453] spi: spi-mem: fix reference leak in spi_mem_access_start

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit c02bb16b0e826bf0e19aa42c3ae60ea339f32cf5 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in spi_mem_access_start, so we should fix it. Fixes: f86c24f479530 ("spi: spi-mem

[PATCH 5.4 130/453] staging: greybus: codecs: Fix reference counter leak in error handling

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 3952659a6108f77a0d062d8e8487bdbdaf52a66c ] gb_pm_runtime_get_sync has increased the usage counter of the device here. Forgetting to call gb_pm_runtime_put_noidle will result in usage counter leak in the error branch of (gbcodec_hw_params and gbcodec_prepare).

[PATCH 5.4 111/453] arm64: dts: exynos: Correct psci compatible used on Exynos7

2020-12-28 Thread Greg Kroah-Hartman
From: Paweł Chmiel [ Upstream commit e1e47fbca668507a81bb388fcae044b89d112ecc ] It's not possible to reboot or poweroff Exynos7420 using PSCI. Instead we need to use syscon reboot/poweroff drivers, like it's done for other Exynos SoCs. This was confirmed by checking vendor source and testing it

[PATCH 5.4 152/453] crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ff8107200367f4abe0e5bce66a245e8d0f2d229e ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: f7b2b5dd6a62a ("crypto: omap-aes - add error ch

[PATCH 5.4 106/453] libbpf: Fix BTF data layout checks and allow empty BTF

2020-12-28 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit d8123624506cd62730c9cd9c7672c698e462703d ] Make data section layout checks stricter, disallowing overlap of types and strings data. Additionally, allow BTFs with no type data. There is nothing inherently wrong with having BTF with no types (put potentiall

Re: [blokc/blk] d828aefa7a: xfstests.xfs.372.fail

2020-12-28 Thread Hui Su
On Sat, Dec 26, 2020 at 07:31:33PM +0800, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: d828aefa7a1bdf7fbc5073fdb66da9bfb1264c21 ("[PATCH v2] > blokc/blk-merge: remove the next_bvec label in __blk_bios_map_sg()") > url: > https:

[PATCH 5.4 151/453] crypto: crypto4xx - Replace bitwise OR with logical OR in crypto4xx_build_pd

2020-12-28 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 5bdad829c31a09069fd508534f03c2ea1576ac75 ] Clang warns: drivers/crypto/amcc/crypto4xx_core.c:921:60: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] (crypto_tfm_alg_t

[PATCH 5.4 158/453] clk: meson: Kconfig: fix dependency for G12A

2020-12-28 Thread Greg Kroah-Hartman
From: Kevin Hilman [ Upstream commit bae69bfa3a586493469078ec4ca35499b754ba5c ] When building only G12A, ensure that VID_PLL_DIV clock driver is selected, otherwise results in this build error: ERROR: modpost: "meson_vid_pll_div_ro_ops" [drivers/clk/meson/g12a.ko] undefined! Fixes: 085a4ea93d

[PATCH 5.4 150/453] EDAC/mce_amd: Use struct cpuinfo_x86.cpu_die_id for AMD NodeId

2020-12-28 Thread Greg Kroah-Hartman
From: Yazen Ghannam [ Upstream commit 8de0c9917cc1297bc5543b61992d5bdee4ce621a ] The edac_mce_amd module calls decode_dram_ecc() on AMD Family17h and later systems. This function is used in amd64_edac_mod to do system-specific decoding for DRAM ECC errors. The function takes a "NodeId" as a para

[PATCH 5.4 148/453] powerpc: Avoid broken GCC __attribute__((optimize))

2020-12-28 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit a7223f5bfcaeade4a86d35263493bcda6c940891 ] Commit 7053f80d9696 ("powerpc/64: Prevent stack protection in early boot") introduced a couple of uses of __attribute__((optimize)) with function scope, to disable the stack protector in some early boot code. Unfo

[PATCH 5.4 149/453] powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 78665179e569c7e1fe102fb6c21d0f5b6951f084 ] On 8xx, we get the following features: [0.00] cpu_features = 0x0100 [0.00] possible= 0x0120 [0.00] always = 0x This is n

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