[PATCH v8 2/3] mfd: Add driver for Embedded Controller found on Acer Iconia Tab A500

2020-12-28 Thread Dmitry Osipenko
Acer Iconia Tab A500 is an Android tablet device, it has ENE KB930 Embedded Controller which provides battery-gauge, LED, GPIO and some other functions. The EC uses firmware that is specifically customized for Acer A500. This patch adds MFD driver for the Embedded Controller which allows to power-o

[PATCH 4.19 121/346] arm64: dts: exynos: Include common syscon restart/poweroff for Exynos7

2020-12-28 Thread Greg Kroah-Hartman
From: Paweł Chmiel [ Upstream commit 73bc7510ea0dafb4ff1ae6808759627a8ec51f5a ] Exynos7 uses the same syscon reboot and poweroff nodes as other Exynos SoCs, so instead of duplicating code we can just include common dtsi file, which already contains definitions of them. After this change, powerof

[PATCH 4.19 122/346] 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 v8 1/3] dt-bindings: mfd: Add ENE KB930 Embedded Controller binding

2020-12-28 Thread Dmitry Osipenko
Add binding document for the ENE KB930 Embedded Controller. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/mfd/ene-kb930.yaml| 65 +++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ene-kb930.ya

[PATCH 4.19 114/346] crypto: inside-secure - Fix sizeof() mismatch

2020-12-28 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit c98e233062cd9d0e2f10e445a671f0799daaef67 ] An incorrect sizeof() is being used, sizeof(priv->ring[i].rdr_req) is not correct, it should be sizeof(*priv->ring[i].rdr_req). Note that since the size of ** is the same size as * this is not causing any issues.

[PATCH 4.19 108/346] ARM: p2v: fix handling of LPAE translation in BE mode

2020-12-28 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 4e79f0211b473f8e1eab8211a9fd50cc41a3a061 ] When running in BE mode on LPAE hardware with a PA-to-VA translation that exceeds 4 GB, we patch bits 39:32 of the offset into the wrong byte of the opcode. So fix that, by rotating the offset in r0 to the right by

[PATCH 4.19 113/346] crypto: talitos - Fix return type of current_desc_hdr()

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 0237616173fd363a54bd272aa3bd376faa1d7caa ] current_desc_hdr() returns a u32 but in fact this is a __be32, leading to a lot of sparse warnings. Change the return type to __be32 and ensure it is handled as sure by the caller. Fixes: 3e721aeb3df3 ("crypto:

[PATCH 4.19 130/346] mwifiex: fix mwifiex_shutdown_sw() causing sw reset failure

2020-12-28 Thread Greg Kroah-Hartman
From: Tsuchiya Yuto [ Upstream commit fa74cb1dc0f4da46c441b735ca865ac52de42c0e ] When a PCIe function level reset (FLR) is performed but without fw reset for some reasons (e.g., on Microsoft Surface devices, fw reset requires other quirks), it fails to reset wifi properly. You can trigger the is

[PATCH 4.19 106/346] RDMA/rxe: Compute PSN windows correctly

2020-12-28 Thread Greg Kroah-Hartman
From: Bob Pearson [ Upstream commit bb3ab2979fd69db23328691cb10067861df89037 ] The code which limited the number of unacknowledged PSNs was incorrect. The PSNs are limited to 24 bits and wrap back to zero from 0x00ff. The test was computing a 32 bit value which wraps at 32 bits so that qp->r

[PATCH 4.19 090/346] serial_core: Check for port state when tty is in error state

2020-12-28 Thread Greg Kroah-Hartman
From: Alexey Kardashevskiy commit 2f70e49ed860020f5abae4f7015018ebc10e1f0e upstream. At the moment opening a serial device node (such as /dev/ttyS3) succeeds even if there is no actual serial device behind it. Reading/writing/ioctls fail as expected because the uart port is not initialized (the

[PATCH 4.19 105/346] ARM: dts: aspeed: s2600wf: Fix VGA memory region location

2020-12-28 Thread Greg Kroah-Hartman
From: Joel Stanley [ Upstream commit 9e1cc9679776f5b9e42481d392b1550753ebd084 ] The VGA memory region is always from the top of RAM. On this board, that is 0x8000 + 0x2000 - 0x0100 = 0x9f00. This was not an issue in practice as the region is "reserved" by the vendor's u-boot red

[PATCH 4.19 082/346] USB: gadget: f_rndis: fix bitrate for SuperSpeed and above

2020-12-28 Thread Greg Kroah-Hartman
From: Will McVicker commit b00f444f9add39b64d1943fa75538a1ebd54a290 upstream. Align the SuperSpeed Plus bitrate for f_rndis to match f_ncm's ncm_bitrate defined by commit 1650113888fe ("usb: gadget: f_ncm: add SuperSpeed descriptors for CDC NCM"). Cc: Felipe Balbi Cc: EJ Hsu Cc: Peter Chen C

[PATCH 4.19 091/346] Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt()

2020-12-28 Thread Greg Kroah-Hartman
From: Peilin Ye commit f7e0e8b2f1b0a09b527885babda3e912ba820798 upstream. `num_reports` is not being properly checked. A malformed event packet with a large `num_reports` number makes hci_le_direct_adv_report_evt() read out of bounds. Fix it. Cc: sta...@vger.kernel.org Fixes: 2f010b55884e ("Blu

[PATCH 4.19 129/346] spi: bcm63xx-hsspi: fix missing clk_disable_unprepare() on error in bcm63xx_hsspi_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit 9bb9ef2b3e5d9d012876e7e2d7757eb30e865bee ] Fix the missing clk_disable_unprepare() before return from bcm63xx_hsspi_resume in the error handling case when fails to prepare and enable bs->pll_clk. Fixes: 0fd85869c2a9 ("spi/bcm63xx-hsspi: keep pll clk enabled

[PATCH 4.19 089/346] HID: i2c-hid: add Vero K147 to descriptor override

2020-12-28 Thread Greg Kroah-Hartman
From: Julian Sax commit c870d50ce387d84b6438211a7044c60afbd5d60a upstream. This device uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Cc: sta...@vger.kernel.org Signed-off-by: Julian Sax Reviewed-by: Hans de Goede Signed-off-by

[PATCH 4.19 101/346] soc: mediatek: Check if power domains can be powered on at boot time

2020-12-28 Thread Greg Kroah-Hartman
From: Nicolas Boichat [ Upstream commit 4007844b05815717f522c7ea9914e24ad0ff6c79 ] In the error case, where a power domain cannot be powered on successfully at boot time (in mtk_register_power_domains), pm_genpd_init would still be called with is_off=false, and the system would later try to disa

[PATCH 4.19 098/346] drm/gma500: fix double free of gma_connector

2020-12-28 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237 ] clang static analysis reports this problem: cdv_intel_dp.c:2101:2: warning: Attempt to free released memory kfree(gma_connector); ^~~~ In cdv_intel_dp_init() when the call to cdv_intel_ed

[PATCH 4.19 110/346] sched/deadline: Fix sched_dl_global_validate()

2020-12-28 Thread Greg Kroah-Hartman
From: Peng Liu [ Upstream commit a57415f5d1e43c3a5c5d412cd85e2792d7ed9b11 ] When change sched_rt_{runtime, period}_us, we validate that the new settings should at least accommodate the currently allocated -dl bandwidth: sched_rt_handler() --> sched_dl_bandwidth_validate() {

[PATCH 4.19 086/346] ARM: dts: exynos: fix USB 3.0 pins supply being turned off on Odroid XU

2020-12-28 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit bd7e7ff56feea7810df900fb09c9741d259861d9 upstream. On Odroid XU LDO12 and LDO15 supplies the power to USB 3.0 blocks but the GPK GPIO pins are supplied by LDO7 (VDDQ_LCD). LDO7 also supplies GPJ GPIO pins. The Exynos pinctrl driver does not take any supplies, s

[PATCH 4.19 087/346] coresight: tmc-etr: Check if page is valid before dma_map_page()

2020-12-28 Thread Greg Kroah-Hartman
From: Mao Jinlong commit 1cc573d5754e92372a7e30e35468644f8811e1a4 upstream. alloc_pages_node() return should be checked before calling dma_map_page() to make sure that valid page is mapped or else it can lead to aborts as below: Unable to handle kernel paging request at virtual address ffc

[PATCH 4.19 103/346] RDMA/bnxt_re: Set queue pair state when being queried

2020-12-28 Thread Greg Kroah-Hartman
From: Kamal Heib [ Upstream commit 53839b51a7671eeb3fb44d479d541cf3a0f2dd45 ] The API for ib_query_qp requires the driver to set cur_qp_state on return, add the missing set. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://lore.kernel.org/r/20201021114952.38876-1-kama

[PATCH 4.19 097/346] perf cs-etm: Move definition of traceid_list global variable from header file

2020-12-28 Thread Greg Kroah-Hartman
From: Leo Yan commit 168200b6d6ea0cb5765943ec5da5b8149701f36a upstream. The variable 'traceid_list' is defined in the header file cs-etm.h, if multiple C files include cs-etm.h the compiler might complaint for multiple definition of 'traceid_list'. To fix multiple definition error, move the def

[PATCH] x86/lib: don't use MMX before FPU initialization

2020-12-28 Thread Krzysztof Mazur
When enabled, the MMX 3DNow! optimized memcpy() is used very early, even before FPU is initialized. It worked fine, but commit 7ad816762f9bf89e940e618ea40c43138b479e10 ("x86/fpu: Reset MXCSR to default in kernel_fpu_begin()") broke that. After that commit the kernel crashes just after "Booting the

[PATCH 4.19 109/346] x86/apic: Fix x2apic enablement without interrupt remapping

2020-12-28 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit 26573a97746c7a99f394f9d398ce91a8853b3b89 ] Currently, Linux as a hypervisor guest will enable x2apic only if there are no CPUs present at boot time with an APIC ID above 255. Hotplugging a CPU later with a higher APIC ID would result in a CPU which cannot

[PATCH 4.19 095/346] md: fix a warning caused by a race between concurrent md_ioctl()s

2020-12-28 Thread Greg Kroah-Hartman
From: Dae R. Jeong commit c731b84b51bf7fe83448bea8f56a6d55006b0615 upstream. Syzkaller reports a warning as belows. WARNING: CPU: 0 PID: 9647 at drivers/md/md.c:7169 ... Call Trace: ... RIP: 0010:md_ioctl+0x4017/0x5980 drivers/md/md.c:7169 RSP: 0018:888096027950 EFLAGS: 00010293 RAX: 888

[PATCH 4.19 084/346] ARM: dts: exynos: fix roles of USB 3.0 ports on Odroid XU

2020-12-28 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit ecc1ff532b499d20304a4f682247137025814c34 upstream. On Odroid XU board the USB3-0 port is a microUSB and USB3-1 port is USB type A (host). The roles were copied from Odroid XU3 (Exynos5422) design which has it reversed. Fixes: 8149afe4dbf9 ("ARM: dts: exynos: Ad

[PATCH 4.19 058/346] gpio: mvebu: fix potential user-after-free on probe

2020-12-28 Thread Greg Kroah-Hartman
From: Baruch Siach [ Upstream commit 7ee1a01e47403f72b9f38839a737692f6991263e ] When mvebu_pwm_probe() fails IRQ domain is not released. Move pwm probe before IRQ domain allocation. Add pwm cleanup code to the failure path. Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM support") Reported-b

[PATCH 4.19 076/346] dm table: Remove BUG_ON(in_interrupt())

2020-12-28 Thread Greg Kroah-Hartman
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and in_interru

[PATCH 4.19 075/346] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-28 Thread Greg Kroah-Hartman
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link: https://lore.

[PATCH 4.19 007/346] iwlwifi: mvm: fix kernel panic in case of assert during CSA

2020-12-28 Thread Greg Kroah-Hartman
From: Sara Sharon [ Upstream commit fe56d05ee6c87f6a1a8c7267affd92c9438249cc ] During CSA, we briefly nullify the phy context, in __iwl_mvm_unassign_vif_chanctx. In case we have a FW assert right after it, it remains NULL though. We end up running into endless loop due to mac80211 trying repeat

[PATCH 4.19 062/346] clk: renesas: r9a06g032: Drop __packed for portability

2020-12-28 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven [ Upstream commit ceabbf94c317c6175dee6e91805fca4a6353745a ] The R9A06G032 clock driver uses an array of packed structures to reduce kernel size. However, this array contains pointers, which are no longer aligned naturally, and cannot be relocated on PPC64. Hence when

[PATCH 4.19 073/346] vxlan: Add needed_headroom for lower device

2020-12-28 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the vxlan_build_s

[PATCH 4.19 027/346] PCI: qcom: Add missing reset for ipq806x

2020-12-28 Thread Greg Kroah-Hartman
From: Ansuel Smith commit ee367e2cdd2202b5714982739e684543cd2cee0e upstream Add missing ext reset used by ipq8064 SoC in PCIe qcom driver. Link: https://lore.kernel.org/r/20200615210608.21469-5-ansuels...@gmail.com Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver") Signed-of

[PATCH 4.19 025/346] x86/apic/vector: Fix ordering in vector assignment

2020-12-28 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 190113b4c6531c8e09b31d5235f9b5175cbb0f72 upstream. Prarit reported that depending on the affinity setting the ' irq $N: Affinity broken due to vector space exhaustion.' message is showing up in dmesg, but the vector space on the CPUs in the affinity mask is defini

[PATCH 4.19 026/346] compiler.h: fix barrier_data() on clang

2020-12-28 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 3347acc6fcd4ee71ad18a9ff9d9dac176b517329 upstream. Commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") neglected to copy barrier_data() from compiler-gcc.h into compiler-clang.h. The definition in compiler-gcc.h was really to work a

[PATCH 4.19 065/346] gpio: eic-sprd: break loop when getting NULL device resource

2020-12-28 Thread Greg Kroah-Hartman
From: Chunyan Zhang [ Upstream commit 263ade7166a2e589c5b605272690c155c0637dcb ] EIC controller have unfixed numbers of banks on different Spreadtrum SoCs, and each bank has its own base address, the loop of getting there base address in driver should break if the resource gotten via platform_ge

[PATCH 4.19 037/346] net: bridge: vlan: fix error return code in __vlan_add()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit ee4f52a8de2c6f78b01f10b4c330867d88c1653a ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: f8ed289fab84 ("bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts") Repor

[PATCH 4.19 050/346] arm64: lse: fix LSE atomics with LLVMs integrated assembler

2020-12-28 Thread Greg Kroah-Hartman
From: Sami Tolvanen commit e0d5896bd356cd577f9710a02d7a474cdf58426b upstream. Unlike gcc, clang considers each inline assembly block to be independent and therefore, when using the integrated assembler for inline assembly, any preambles that enable features must be repeated in each block. This

[PATCH 4.19 023/346] x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP

2020-12-28 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 29ac40cbed2bc06fa218ca25d7f5e280d3d08a25 upstream. The PAT bit is in different locations for 4k and 2M/1G page table entries. Add a definition for _PAGE_LARGE_CACHE_MASK to represent the three caching bits (PWT, PCD, PAT), similar to _PAGE_CACHE_MASK for 4k pages, and

[PATCH 4.19 054/346] x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled

2020-12-28 Thread Greg Kroah-Hartman
From: Xiaochen Shen commit 06c5fe9b12dde1b62821f302f177c972bb1c81f9 upstream The MBA software controller (mba_sc) is a feedback loop which periodically reads MBM counters and tries to restrict the bandwidth below a user-specified value. It tags along the MBM counter overflow handler to do the up

[PATCH 4.19 064/346] netfilter: x_tables: Switch synchronization to RCU

2020-12-28 Thread Greg Kroah-Hartman
From: Subash Abhinov Kasiviswanathan [ Upstream commit cc00bcaa589914096edef7fb87ca5cee4a166b5c ] When running concurrent iptables rules replacement with data, the per CPU sequence count is checked after the assignment of the new information. The sequence count is used to synchronize with the pa

[PATCH 4.19 070/346] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-28 Thread Greg Kroah-Hartman
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH 4.19 053/346] x86/resctrl: Remove unused struct mbm_state::chunks_bw

2020-12-28 Thread Greg Kroah-Hartman
From: James Morse commit abe8f12b44250d02937665033a8b750c1bfeb26e upstream Nothing reads struct mbm_states's chunks_bw value, its a copy of chunks. Remove it. Signed-off-by: James Morse Signed-off-by: Borislav Petkov Reviewed-by: Reinette Chatre Link: https://lkml.kernel.org/r/20200708163929

[PATCH 4.19 067/346] RDMA/cm: Fix an attempt to use non-valid pointer when cleaning timewait

2020-12-28 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit 340b940ea0ed12d9adbb8f72dea17d516b2019e8 ] If cm_create_timewait_info() fails, the timewait_info pointer will contain an error value and will be used in cm_remove_remote() later. general protection fault, probably for non-canonical address 0xdc

[PATCH 4.19 040/346] USB: add RESET_RESUME quirk for Snapscan 1212

2020-12-28 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 08a02f954b0def3ada8ed6d4b2c7bcb67e885e9c upstream. I got reports that some models of this old scanner need this when using runtime PM. Signed-off-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20201207130323.23857-1-oneu...@suse.com Signed-off-by: Greg

[PATCH 4.19 048/346] drm/xen-front: Fix misused IS_ERR_OR_NULL checks

2020-12-28 Thread Greg Kroah-Hartman
From: Oleksandr Andrushchenko commit 14dee058610446aa464254fc5c8e88c7535195e0 upstream The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" from Apr 3, 2018, leads to the following static checker warning: drivers/gpu/drm/xen/xen_drm_front_gem.c:140 xen_drm_fr

[PATCH 4.19 039/346] USB: dummy-hcd: Fix uninitialized array use in init()

2020-12-28 Thread Greg Kroah-Hartman
From: Bui Quang Minh commit e90cfa813da7a527785033a0b247594c2de93dd8 upstream. This error path err_add_pdata: for (i = 0; i < mod_data.num; i++) kfree(dum[i]); can be triggered when not all dum's elements are initialized. Fix this by initializin

[PATCH 4.19 047/346] serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access

2020-12-28 Thread Greg Kroah-Hartman
From: Alexander Sverdlin commit d96f04d347e4011977abdbb4da5d8f303ebd26f8 upstream. It has been observed that once per 300-1300 port openings the first transmitted byte is being corrupted on AM3352 ("v" written to FIFO appeared as "e" on the wire). It only happened if single byte has been transmi

[PATCH 4.19 021/346] kbuild: avoid static_assert for genksyms

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 14dc3983b5dff513a90bd5a8cc90acaf7867c3d0 upstream. genksyms does not know or care about the _Static_assert() built-in, and sometimes falls back to ignoring the later symbols, which causes undefined behavior such as WARNING: modpost: EXPORT symbol "ethtool_set_ethtoo

[PATCH 4.19 003/346] spi: bcm2835aux: Fix use-after-free on unbind

2020-12-28 Thread Greg Kroah-Hartman
From: Lukas Wunner [ Upstream commit e13ee6cc4781edaf8c7321bee19217e3702ed481 ] bcm2835aux_spi_remove() accesses the driver's private data after calling spi_unregister_master() even though that function releases the last reference on the spi_master and thereby frees the private data. Fix by swi

[PATCH 4.19 028/346] mac80211: mesh: fix mesh_pathtbl_init() error path

2020-12-28 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 905b2032fa424f253d9126271439cc1db2b01130 ] If tbl_mpp can not be allocated, we call mesh_table_free(tbl_path) while tbl_path rhashtable has not yet been initialized, which causes panics. Simply factorize the rhashtable_init() call into mesh_table_alloc() WA

[PATCH 4.19 019/346] pinctrl: amd: remove debounce filter setting in IRQ type setting

2020-12-28 Thread Greg Kroah-Hartman
From: Coiby Xu commit 47a0001436352c9853d72bf2071e85b316d688a2 upstream. Debounce filter setting should be independent from IRQ type setting because according to the ACPI specs, there are separate arguments for specifying debounce timeout and IRQ type in GpioIo() and GpioInt(). Together with co

[PATCH 4.19 009/346] ARC: stack unwinding: dont assume non-current task is sleeping

2020-12-28 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit e42404fa10fd11fe72d0a0e149a321d10e577715 ] To start stack unwinding (SP, PC and BLINK) are needed. When the explicit execution context (pt_regs etc) is not available, unwinder assumes the task is sleeping (in __switch_to()) and fetches SP and BLINK from kerne

[PATCH 4.19 020/346] mmc: block: Fixup condition for CMD13 polling for RPMB requests

2020-12-28 Thread Greg Kroah-Hartman
From: Bean Huo commit 6246d7c9d15aaff0bc3863f67900c6a6e6be921b upstream. The CMD13 polling is needed for commands with R1B responses. In commit a0d4c7eb71dd ("mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response"), the intent was to introduce this for requests targeted to the RPMB part

[PATCH 4.14 241/242] libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Williams commit 2dd2a1740ee19cd2636d247276cf27bfa434b0e2 upstream. A recent change to ndctl to attempt to reconfigure namespaces in place uncovered a label accounting problem in block-window-type namespaces. The ndctl "create.sh" test is able to trigger this signature: WARNING: CPU:

[PATCH 4.19 014/346] platform/x86: thinkpad_acpi: Add BAT1 is primary battery quirk for Thinkpad Yoga 11e 4th gen

2020-12-28 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit c986a7024916c92a775fc8d853fba3cae1d5fde4 ] The Thinkpad Yoga 11e 4th gen with the N3450 / Celeron CPU only has one battery which is named BAT1 instead of the expected BAT0, add a quirk for this. This fixes not being able to set the charging tresholds on this

[PATCH 4.14 233/242] md/cluster: fix deadlock when node is doing resync job

2020-12-28 Thread Greg Kroah-Hartman
From: Zhao Heming commit bca5b0658020be90b6b504ca514fd80110204f71 upstream. md-cluster uses MD_CLUSTER_SEND_LOCK to make node can exclusively send msg. During sending msg, node can concurrently receive msg from another node. When node does resync job, grab token_lockres:EX may trigger a deadlock

[PATCH 4.14 238/242] xen/xenbus/xen_bus_type: Support will_handle watch callback

2020-12-28 Thread Greg Kroah-Hartman
From: SeongJae Park commit be987200fbaceaef340872841d4f7af2c5ee8dc3 upstream. This commit adds support of the 'will_handle' watch callback for 'xen_bus_type' users. This is part of XSA-349 Cc: sta...@vger.kernel.org Signed-off-by: SeongJae Park Reported-by: Michael Kurth Reported-by: Pawel W

Re: [PATCH] ASoC: amd:Replacing MSI with Legacy IRQ model

2020-12-28 Thread Mark Brown
On Tue, 22 Dec 2020 17:29:18 +0530, Ravulapati Vishnu vardhan rao wrote: > When we try to play and capture simultaneously we see that > interrupts are genrated but our handler is not being acknowledged, > After investigating further more in detail on this issue we found > that IRQ delivery via MSI

[PATCH 4.14 230/242] iio:light:rpr0521: Fix timestamp alignment and prevent data leak.

2020-12-28 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit a61817216bcc755eabbcb1cf281d84ccad267ed1 upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp() assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver w

[PATCH 4.14 208/242] ext4: fix a memory leak of ext4_free_data

2020-12-28 Thread Greg Kroah-Hartman
From: Chunguang Xu commit cca415537244f6102cbb09b5b90db6ae2c953bdd upstream. When freeing metadata, we will create an ext4_free_data and insert it into the pending free list. After the current transaction is committed, the object will be freed. ext4_mb_free_metadata() will check whether the ar

[PATCH 4.14 240/242] xenbus/xenbus_backend: Disallow pending watch messages

2020-12-28 Thread Greg Kroah-Hartman
From: SeongJae Park commit 9996bd494794a2fe393e97e7a982388c6249aa76 upstream. 'xenbus_backend' watches 'state' of devices, which is writable by guests. Hence, if guests intensively updates it, dom0 will have lots of pending events that exhausting memory of dom0. In other words, guests can trig

[PATCH 4.14 227/242] mtd: parser: cmdline: Fix parsing of part-names with colons

2020-12-28 Thread Greg Kroah-Hartman
From: Sven Eckelmann commit 639a82434f16a6df0ce0e7c8595976f1293940fd upstream. Some devices (especially QCA ones) are already using hardcoded partition names with colons in it. The OpenMesh A62 for example provides following mtd relevant information via cmdline: root=31:11 mtdparts=spi0.0:25

[PATCH 4.14 206/242] Btrfs: fix selftests failure due to uninitialized i_mode in test inodes

2020-12-28 Thread Greg Kroah-Hartman
From: Filipe Manana commit 9f7fec0ba89108b9385f1b9fb167861224912a4a upstream Some of the self tests create a test inode, setup some extents and then do calls to btrfs_get_extent() to test that the corresponding extent maps exist and are correct. However btrfs_get_extent(), since the 5.2 merge wi

[PATCH 4.14 239/242] xen/xenbus: Count pending messages for each watch

2020-12-28 Thread Greg Kroah-Hartman
From: SeongJae Park commit 3dc86ca6b4c8cfcba9da7996189d1b5a358a94fc upstream. This commit adds a counter of pending messages for each watch in the struct. It is used to skip unnecessary pending messages lookup in 'unregister_xenbus_watch()'. It could also be used in 'will_handle' callback. Th

[PATCH 4.14 225/242] spi: st-ssc4: Fix unbalanced pm_runtime_disable() in probe error path

2020-12-28 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 5ef76dac0f2c26aeae4ee79eb830280f16d5aceb upstream. If the calls to devm_platform_ioremap_resource(), irq_of_parse_and_map() or devm_request_irq() fail on probe of the ST SSC4 SPI driver, the runtime PM disable depth is incremented even though it was not decremented befo

Re: [PATCH] lib/linear_ranges: fix repeated words & one typo

2020-12-28 Thread Mark Brown
On Sun, 20 Dec 2020 20:06:10 -0800, Randy Dunlap wrote: > Change "which which" to "for which" in 3 places. > Change "ranges" to possessive "range's" in 1 place. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] lib/linear_ranges: fix rep

Re: (subset) [PATCH v5 1/6] mfd: rt4831: Adds support for Richtek RT4831 core

2020-12-28 Thread Mark Brown
On Thu, 17 Dec 2020 23:00:39 +0800, cy_huang wrote: > This adds support Richtek RT4831 core. It includes four channel WLED driver > and Display Bias Voltage outputs. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [3/6] regulator: rt4831: Ad

[PATCH 4.14 204/242] USB: serial: keyspan_pda: fix tx-unthrottle use-after-free

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 49fbb8e37a961396a5b6c82937c70df91de45e9d upstream. The driver's transmit-unthrottle work was never flushed on disconnect, something which could lead to the driver port data being freed while the unthrottle work is still scheduled. Fix this by cancelling the unthrottle

Re: [PATCH -next] regulator: qcom-rpmh: fix build after QCOM_COMMAND_DB is tristate

2020-12-28 Thread Mark Brown
On Fri, 25 Dec 2020 10:50:04 -0800, Randy Dunlap wrote: > Restrict REGULATOR_QCOM_RPMH to QCOM_COMMAND_DB it the latter is enabled. > > Fixes this build error: > microblaze-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function > `rpmh_regulator_probe': > (.text+0x354): undefined refe

[PATCH 4.19 010/346] scsi: ufs: Make sure clk scaling happens only when HBA is runtime ACTIVE

2020-12-28 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 73cc291c270248567245f084dcdf5078069af6b5 ] If someone plays with the UFS clk scaling devfreq governor through sysfs, ufshcd_devfreq_scale may be called even when HBA is not runtime ACTIVE. This can lead to unexpected error. We cannot just protect it by calling pm_

[PATCH 4.14 229/242] iio: adc: rockchip_saradc: fix missing clk_disable_unprepare() on error in rockchip_saradc_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao commit 560c6b914c6ec7d9d9a69fddbb5bf3bf71433e8b upstream. Fix the missing clk_disable_unprepare() of info->pclk before return from rockchip_saradc_resume in the error handling case when fails to prepare and enable info->clk. Suggested-by: Robin Murphy Fixes: 44d6f2ef94f9 ("

Re: [PATCH v6 1/3] spi: uapi: unify SPI modes into a single spi.h header

2020-12-28 Thread Mark Brown
On Mon, 21 Dec 2020 17:29:34 +0200, Alexandru Ardelean wrote: > This change moves all the SPI mode bits into a separate 'spi.h' header in > uAPI. This is meant to re-use these definitions inside the kernel as well > as export them to userspace (via uAPI). > > The SPI mode definitions have usually

[PATCH 4.14 203/242] USB: serial: keyspan_pda: fix write-wakeup use-after-free

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 37faf50615412947868c49aee62f68233307f4e4 upstream. The driver's deferred write wakeup was never flushed on disconnect, something which could lead to the driver port data being freed while the wakeup work is still scheduled. Fix this by using the usb-serial write wakeup

[PATCH 4.14 215/242] ima: Dont modify file descriptor mode on the fly

2020-12-28 Thread Greg Kroah-Hartman
From: Roberto Sassu commit 207cdd565dfc95a0a5185263a567817b7ebf5467 upstream. Commit a408e4a86b36b ("ima: open a new file instance if no read permissions") already introduced a second open to measure a file when the original file descriptor does not allow it. However, it didn't remove the existi

Re: [PATCH 01/14] mfd: arizona: Add jack pointer to struct arizona

2020-12-28 Thread Hans de Goede
Hi, On 12/28/20 1:21 PM, Mark Brown wrote: > On Sun, Dec 27, 2020 at 10:12:19PM +0100, Hans de Goede wrote: >> The Linux Arizona driver uses the MFD framework to create several >> sub-devices for the Arizona codec and then uses a driver per function. >> >> The jack-detect support for the Arizona c

[PATCH 4.14 169/242] 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 4.14 219/242] drm/dp_aux_dev: check aux_dev before use in drm_dp_aux_dev_get_by_minor()

2020-12-28 Thread Greg Kroah-Hartman
From: Zwane Mwaikambo commit 73b62cdb93b68d7e2c1d373c6a411bc00c53e702 upstream. I observed this when unplugging a DP monitor whilst a computer is asleep and then waking it up. This left DP chardev nodes still being present on the filesystem and accessing these device nodes caused an oops because

[PATCH 4.14 202/242] USB: serial: keyspan_pda: fix stalled writes

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit c01d2c58698f710c9e13ba3e2d296328606f74fd upstream. Make sure to clear the write-busy flag also in case no new data was submitted due to lack of device buffer space so that writing is resumed once space again becomes available. Fixes: 507ca9bc0476 ("[PATCH] USB: add abi

[PATCH 4.14 212/242] powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter

2020-12-28 Thread Greg Kroah-Hartman
From: Tyrel Datwyler commit f10881a46f8914428110d110140a455c66bdf27b upstream. Commit bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace") introduced the following error when invoking the errinjct userspace tool: [root@ltcalpine2-lp5 librtas]# errinjct open [327884.071171] s

[PATCH 4.14 171/242] pwm: zx: Add missing cleanup in error path

2020-12-28 Thread Greg Kroah-Hartman
From: Uwe Kleine-König [ Upstream commit 269effd03f6142df4c74814cfdd5f0b041b30bf9 ] zx_pwm_probe() called clk_prepare_enable() before; this must be undone in the error path. Fixes: 4836193c435c ("pwm: Add ZTE ZX PWM device driver") Signed-off-by: Uwe Kleine-König Acked-by: Shawn Guo Signed-of

[PATCH 4.14 193/242] 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 4.14 176/242] clk: sunxi-ng: Make sure divider tables have sentinel

2020-12-28 Thread Greg Kroah-Hartman
From: Jernej Skrabec [ Upstream commit 48f68de00c1405351fa0e7bc44bca067c49cd0a3 ] Two clock divider tables are missing sentinel at the end. Effect of that is that clock framework reads past the last entry. Fix that with adding sentinel at the end. Issue was discovered with KASan. Fixes: 0577e4

[PATCH 4.14 174/242] qlcnic: Fix error code in probe

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 0d52848632a357948028eab67ff9b7cc0c12a0fb ] Return -EINVAL if we can't find the correct device. Currently it returns success. Fixes: 13159183ec7a ("qlcnic: 83xx base driver") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwa

[PATCH 4.14 197/242] crypto: ecdh - avoid unaligned accesses in ecdh_set_secret()

2020-12-28 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 17858b140bf49961b71d4e73f1c3ea9bc8e7dda0 upstream. ecdh_set_secret() casts a void* pointer to a const u64* in order to feed it into ecc_is_key_valid(). This is not generally permitted by the C standard, and leads to actual misalignment faults on ARMv6 cores. In some c

[PATCH 4.14 196/242] powerpc/perf: Exclude kernel samples while counting events in user space.

2020-12-28 Thread Greg Kroah-Hartman
From: Athira Rajeev commit aa8e21c053d72b6639ea5a7f1d3a1d0209534c94 upstream. Perf event attritube supports exclude_kernel flag to avoid sampling/profiling in supervisor state (kernel). Based on this event attr flag, Monitor Mode Control Register bit is set to freeze on supervisor state. But som

[PATCH 4.14 195/242] staging: comedi: mf6x4: Fix AI end-of-conversion detection

2020-12-28 Thread Greg Kroah-Hartman
From: Ian Abbott commit 56c90457ebfe9422496aac6ef3d3f0f0ea8b2ec2 upstream. I have had reports from two different people that attempts to read the analog input channels of the MF624 board fail with an `ETIMEDOUT` error. After triggering the conversion, the code calls `comedi_timeout()` with `mf6

[PATCH 4.14 180/242] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-28 Thread Greg Kroah-Hartman
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link: https://lore.kernel.org/r/20201117004253.2

[PATCH 4.14 198/242] EDAC/amd64: Fix PCI component registration

2020-12-28 Thread Greg Kroah-Hartman
From: Borislav Petkov commit 706657b1febf446a9ba37dc51b89f46604f57ee9 upstream. In order to setup its PCI component, the driver needs any node private instance in order to get a reference to the PCI device and hand that into edac_pci_create_generic_ctl(). For convenience, it uses the 0th memory

[PATCH 4.14 186/242] Revert "ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks"

2020-12-28 Thread Greg Kroah-Hartman
From: Daniel Scally commit 12fc4dad94dfac25599f31257aac181c691ca96f upstream. This reverts commit 8a66790b7850a6669129af078768a1d42076a0ef. Switching this function to AE_CTRL_TERMINATE broke the documented behaviour of acpi_dev_get_resources() - AE_CTRL_TERMINATE does not, in fact, terminate th

[PATCH 4.14 200/242] USB: serial: keyspan_pda: fix dropped unthrottle interrupts

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 696c541c8c6cfa05d65aa24ae2b9e720fc01766e upstream. Commit c528fcb116e6 ("USB: serial: keyspan_pda: fix receive sanity checks") broke write-unthrottle handling by dropping well-formed unthrottle-interrupt packets which are precisely two bytes long. This could lead to blo

[PATCH 4.14 192/242] 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 4.14 183/242] media: netup_unidvb: Dont leak SPI master in probe error path

2020-12-28 Thread Greg Kroah-Hartman
From: Lukas Wunner commit e297ddf296de35037fa97f4302782def196d350a upstream. If the call to spi_register_master() fails on probe of the NetUP Universal DVB driver, the spi_master struct is erroneously not freed. Likewise, if spi_new_device() fails, the spi_controller struct is not unregistered.

[PATCH 4.14 136/242] 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 4.14 182/242] media: sunxi-cir: ensure IR is handled when it is continuous

2020-12-28 Thread Greg Kroah-Hartman
From: Sean Young commit 3f56df4c8ffeb120ed41906d3aae71799b7e726a upstream. If a user holds a button down on a remote, then no ir idle interrupt will be generated until the user releases the button, depending on how quickly the remote repeats. No IR is processed until that point, which means that

[PATCH 4.14 184/242] Input: cyapa_gen6 - fix out-of-bounds stack access

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit f051ae4f6c732c231046945b36234e977f8467c6 upstream. gcc -Warray-bounds warns about a serious bug in cyapa_pip_retrieve_data_structure: drivers/input/mouse/cyapa_gen6.c: In function 'cyapa_pip_retrieve_data_structure.constprop': include/linux/unaligned/access_ok.h:40:1

[PATCH 4.14 168/242] 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 4.14 167/242] 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

[PATCH 4.14 170/242] clk: ti: Fix memleak in ti_fapll_synth_setup

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 8c6239f6e95f583bb763d0228e02d4dd0fb3d492 ] If clk_register fails, we should goto free branch before function returns to prevent memleak. Fixes: 163152cbbe321 ("clk: ti: Add support for FAPLL on dm816x") Reported-by: Hulk Robot Signed-off-by: Zhang Qilong L

[PATCH 4.14 163/242] powerpc/ps3: use dma_mapping_error()

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Stehlé [ Upstream commit d0edaa28a1f7830997131cbce87b6c52472825d1 ] The DMA address returned by dma_map_single() should be checked with dma_mapping_error(). Fix the ps3stor_setup() function accordingly. Fixes: 80071802cb9c ("[POWERPC] PS3: Storage Driver Core") Signed-off-by: Vinc

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