[PATCH 4.14 14/53] ceph: return -ERANGE if virtual xattr value didnt fit in buffer

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 3b421018f48c482bdc9650f894aa1747cf90e51d ] The getxattr manpage states that we should return ERANGE if the destination buffer size is too small to hold the value. ceph_vxattrcb_layout does this internally, but we should be doing this for all vxattrs. Fix the only caller of

[PATCH 4.14 15/53] ACPI: blacklist: fix clang warning for unused DMI table

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit b80d6a42bdc97bdb6139107d6034222e9843c6e2 ] When CONFIG_DMI is disabled, we only have a tentative declaration, which causes a warning from clang: drivers/acpi/blacklist.c:20:35: error: tentative array definition assumed to have one element [-Werror] static const struct

[PATCH 4.14 16/53] scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 484647088826f2f651acbda6bcf9536b8a466703 ] GCC v9 emits this warning: CC drivers/s390/scsi/zfcp_erp.o drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_action_enqueue': drivers/s390/scsi/zfcp_erp.c:217:26: warning: 'erp_action' may be used uninitialized in

[PATCH 4.9 21/42] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit f90fb3c7e2c13ae829db2274b88b845a75038b8a ] Only users of upc_req in kernel side fs/coda/psdev.c and fs/coda/upcall.c already include linux/coda_psdev.h. Suggested by Jan Harkes in https://lore.kernel.org/lkml/2015053913.ga23...@cs.cmu.edu/ Fixes these

[PATCH 4.9 22/42] drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 156e0b1a8112b76e351684ac948c59757037ac36 ] The dev_info.name[] array has space for RIO_MAX_DEVNAME_SZ + 1 characters. But the problem here is that we don't ensure that the user put a NUL terminator on the end of the string. It could lead to an out of bounds read. Link:

[PATCH 4.14 12/53] cifs: Fix a race condition with cifs_echo_request

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit f2caf901c1b7ce65f9e6aef4217e3241039db768 ] There is a race condition with how we send (or supress and don't send) smb echos that will cause the client to incorrectly think the server is unresponsive and thus needs to be reconnected. Summary of the race condition: 1) Daisy

[PATCH 4.14 10/53] fs/adfs: super: fix use-after-free bug

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 5808b14a1f52554de612fee85ef517199855e310 ] Fix a use-after-free bug during filesystem initialisation, where we access the disc record (which is stored in a buffer) after we have released the buffer. Signed-off-by: Russell King Signed-off-by: Al Viro Signed-off-by: Sasha Levin

[PATCH 4.9 16/42] x86/apic: Silence -Wtype-limits compiler warnings

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit ec6335586953b0df32f83ef696002063090c7aef ] There are many compiler warnings like this, In file included from ./arch/x86/include/asm/smp.h:13, from ./arch/x86/include/asm/mmzone_64.h:11, from ./arch/x86/include/asm/mmzone.h:5,

[PATCH 4.14 11/53] btrfs: fix minimum number of chunk errors for DUP

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 0ee5f8ae082e1f675a2fb6db601c31ac9958a134 ] The list of profiles in btrfs_chunk_max_errors lists DUP as a profile DUP able to tolerate 1 device missing. Though this profile is special with 2 copies, it still needs the device, unlike the others. Looking at the history of changes,

[PATCH 4.9 19/42] coda: add error handling for fget

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 02551c23bcd85f0c68a8259c7b953d49d44f86af ] When fget fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling fget. Link:

Re: [PATCH] cpufreq: schedutil: fix equation in comment

2019-08-05 Thread Peter Zijlstra
On Fri, Aug 02, 2019 at 11:46:28AM +0100, Qais Yousef wrote: > scale_irq_capacity() call in schedutil_cpu_util() does > > util *= (max - irq) > util /= max > > But the comment says > > util *= (1 - irq) > util /= max > > Fix the comment to match what the scaling

[PATCH 4.9 17/42] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 29e7e9664aec17b94a9c8c5a75f8d216a206aa3a ] clang warns about a few parts of the math-emu implementation where a 16-bit integer becomes negative during assignment: arch/x86/math-emu/poly_tan.c:88:35: error: implicit conversion from 'int' to 'short' changes value from 49216 to

[PATCH 4.9 18/42] mm/cma.c: fail if fixed declaration cant be honored

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit c633324e311243586675e732249339685e5d6faa ] The description of cma_declare_contiguous() indicates that if the 'fixed' argument is true the reserved contiguous area must be exactly at the address of the 'base' argument. However, the function currently allows the 'base', 'size',

[PATCH 4.9 36/42] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping

2019-08-05 Thread Greg Kroah-Hartman
From: Ajay Kaher This patch is the extension of following upstream commit to fix the race condition between get_task_mm() and core dumping for IB->mlx4 and IB->mlx5 drivers: commit 04f5866e41fb ("coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping")' Thanks to

[PATCH 4.9 38/42] eeprom: at24: make spd world-readable again

2019-08-05 Thread Greg Kroah-Hartman
From: Jean Delvare commit 25e5ef302c24a6fead369c0cfe88c073d7b97ca8 upstream. The integration of the at24 driver into the nvmem framework broke the world-readability of spd EEPROMs. Fix it. Signed-off-by: Jean Delvare Cc: sta...@vger.kernel.org Fixes: 57d155506dd5 ("eeprom: at24: extend driver

Re: [PATCH 0/9] arm64: Stolen time support

2019-08-05 Thread Steven Price
On 03/08/2019 19:05, Marc Zyngier wrote: > On Fri, 2 Aug 2019 15:50:08 +0100 > Steven Price wrote: > > Hi Steven, > >> This series add support for paravirtualized time for arm64 guests and >> KVM hosts following the specification in Arm's document DEN 0057A: >> >>

[PATCH 4.9 35/42] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-08-05 Thread Greg Kroah-Hartman
From: Andrea Arcangeli commit 04f5866e41fb70690e28397487d8bd8eea7d712a upstream. The core dumping code has always run without holding the mmap_sem for writing, despite that is the only way to ensure that the entire vma layout will not change from under it. Only using some signal serialization

[PATCH 4.9 39/42] Backport minimal compiler_attributes.h to support GCC 9

2019-08-05 Thread Greg Kroah-Hartman
From: Miguel Ojeda This adds support for __copy to v4.9.y so that we can use it in init/exit_module to avoid -Werror=missing-attributes errors on GCC 9. Link: https://lore.kernel.org/lkml/259986242.BvXPX32bHu@devpool35/ Cc: Suggested-by: Rolf Eike Beer Signed-off-by: Miguel Ojeda

[PATCH 4.9 33/42] xen/swiotlb: fix condition for calling xen_destroy_contiguous_region()

2019-08-05 Thread Greg Kroah-Hartman
From: Juergen Gross commit 50f6393f9654c561df4cdcf8e6cfba7260143601 upstream. The condition in xen_swiotlb_free_coherent() for deciding whether to call xen_destroy_contiguous_region() is wrong: in case the region to be freed is not contiguous calling xen_destroy_contiguous_region() is the wrong

[PATCH 4.9 34/42] IB/mlx5: Fix RSS Toeplitz setup to be aligned with the HW specification

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit b7165bd0d6cbb93732559be6ea8774653b204480 upstream. The specification for the Toeplitz function doesn't require to set the key explicitly to be symmetric. In case a symmetric functionality is required a symmetric key can be simply used. Wrongly forcing the algorithm to

[PATCH 4.9 32/42] drivers/perf: arm_pmu: Fix failure path in PM notifier

2019-08-05 Thread Greg Kroah-Hartman
From: Will Deacon commit 0d7fd70f26039bd4b33444ca47f0e69ce3ae0354 upstream. Handling of the CPU_PM_ENTER_FAILED transition in the Arm PMU PM notifier code incorrectly skips restoration of the counters. Fix the logic so that CPU_PM_ENTER_FAILED follows the same path as CPU_PM_EXIT. Cc: Fixes:

[PATCH 4.9 30/42] selinux: fix memory leak in policydb_init()

2019-08-05 Thread Greg Kroah-Hartman
From: Ondrej Mosnacek commit 45385237f65aeee73641f1ef737d7273905a233f upstream. Since roles_init() adds some entries to the role hash table, we need to destroy also its keys/values on error, otherwise we get a memory leak in the error path. Cc: Reported-by:

[PATCH 4.9 27/42] Btrfs: fix incremental send failure after deduplication

2019-08-05 Thread Greg Kroah-Hartman
From: Filipe Manana commit b4f9a1a87a48c255bb90d8a6c3d555a1abb88130 upstream. When doing an incremental send operation we can fail if we previously did deduplication operations against a file that exists in both snapshots. In that case we will fail the send operation with -EIO and print a

[PATCH 4.9 15/42] be2net: Signal that the device cannot transmit during reconfiguration

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 7429c6c0d9cb086d8e79f0d2a48ae14851d2115e ] While changing the number of interrupt channels, be2net stops adapter operation (including netif_tx_disable()) but it doesn't signal that it cannot transmit. This may lead dev_watchdog() to falsely trigger during that time. Add the

[PATCH 4.9 28/42] mmc: dw_mmc: Fix occasional hang after tuning on eMMC

2019-08-05 Thread Greg Kroah-Hartman
From: Douglas Anderson commit ba2d139b02ba684c6c101de42fed782d6cd2b997 upstream. In commit 46d179525a1f ("mmc: dw_mmc: Wait for data transfer after response errors.") we fixed a tuning-induced hang that I saw when stress testing tuning on certain SD cards. I won't re-hash that whole commit,

[PATCH 4.9 08/42] dmaengine: rcar-dmac: Reject zero-length slave DMA requests

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 78efb76ab4dfb8f74f290ae743f34162cd627f19 ] While the .device_prep_slave_sg() callback rejects empty scatterlists, it still accepts single-entry scatterlists with a zero-length segment. These may happen if a driver calls dmaengine_prep_slave_single() with a zero len parameter.

[PATCH 4.9 12/42] ceph: return -ERANGE if virtual xattr value didnt fit in buffer

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 3b421018f48c482bdc9650f894aa1747cf90e51d ] The getxattr manpage states that we should return ERANGE if the destination buffer size is too small to hold the value. ceph_vxattrcb_layout does this internally, but we should be doing this for all vxattrs. Fix the only caller of

[PATCH 4.9 06/42] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 6e6de3dee51a439f76eb73c22ae2ffd2c9384712 ] Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and linux guests boot with repeated errors: amd64_edac_mod: Unknown symbol amd_unregister_ecc_decoder (err -2) amd64_edac_mod: Unknown symbol amd_register_ecc_decoder

[PATCH 4.9 14/42] ACPI: fix false-positive -Wuninitialized warning

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit dfd6f9ad36368b8dbd5f5a2b2f0a4705ae69a323 ] clang gets confused by an uninitialized variable in what looks to it like a never executed code path: arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is uninitialized when used here [-Werror,-Wuninitialized]

[PATCH 4.9 24/42] x86/kvm: Dont call kvm_spurious_fault() from .fixup

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 3901336ed9887b075531bffaeef7742ba614058b ] After making a change to improve objtool's sibling call detection, it started showing the following warning: arch/x86/kvm/vmx/nested.o: warning: objtool: .fixup+0x15: sibling call from callable instruction with modified stack frame

[PATCH 4.9 25/42] x86, boot: Remove multiple copy of static function sanitize_boot_params()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 8c5477e8046ca139bac250386c08453da37ec1ae ] Kernel build warns: 'sanitize_boot_params' defined but not used [-Wunused-function] at below files: arch/x86/boot/compressed/cmdline.c arch/x86/boot/compressed/error.c arch/x86/boot/compressed/early_serial_console.c

[PATCH] fs/binfmt_elf.c: remove unnecessary white space.

2019-08-05 Thread Jungseung Lee
- spaces before tabs, - spaces at the end of lines, - multiple blank lines, - redundant blank lines, fix it. Signed-off-by: Jungseung Lee --- fs/binfmt_elf.c | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/fs/binfmt_elf.c

[PATCH 4.9 11/42] ceph: fix improper use of smp_mb__before_atomic()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 749607731e26dfb2558118038c40e9c0c80d23b5 ] This barrier only applies to the read-modify-write operations; in particular, it does not apply to the atomic64_set() primitive. Replace the barrier with an smp_mb(). Fixes: fdd4e15838e59 ("ceph: rework dcache readdir") Reported-by:

[PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.188 release. There are 42 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed 07 Aug 2019 12:47:58 PM UTC. Anything

[PATCH 4.9 10/42] btrfs: fix minimum number of chunk errors for DUP

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 0ee5f8ae082e1f675a2fb6db601c31ac9958a134 ] The list of profiles in btrfs_chunk_max_errors lists DUP as a profile DUP able to tolerate 1 device missing. Though this profile is special with 2 copies, it still needs the device, unlike the others. Looking at the history of changes,

[PATCH 4.9 02/42] ARM: dts: rockchip: Make rk3288-veyron-minnie run at hs200

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 1c0479023412ab7834f2e98b796eb0d8c627cd62 ] As some point hs200 was failing on rk3288-veyron-minnie. See commit 984926781122 ("ARM: dts: rockchip: temporarily remove emmc hs200 speed from rk3288 minnie"). Although I didn't track down exactly when it started working, it seems to

[PATCH 4.4 08/22] ceph: fix improper use of smp_mb__before_atomic()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 749607731e26dfb2558118038c40e9c0c80d23b5 ] This barrier only applies to the read-modify-write operations; in particular, it does not apply to the atomic64_set() primitive. Replace the barrier with an smp_mb(). Fixes: fdd4e15838e59 ("ceph: rework dcache readdir") Reported-by:

[PATCH 4.4 09/22] scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 484647088826f2f651acbda6bcf9536b8a466703 ] GCC v9 emits this warning: CC drivers/s390/scsi/zfcp_erp.o drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_action_enqueue': drivers/s390/scsi/zfcp_erp.c:217:26: warning: 'erp_action' may be used uninitialized in

[PATCH 4.4 07/22] btrfs: fix minimum number of chunk errors for DUP

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 0ee5f8ae082e1f675a2fb6db601c31ac9958a134 ] The list of profiles in btrfs_chunk_max_errors lists DUP as a profile DUP able to tolerate 1 device missing. Though this profile is special with 2 copies, it still needs the device, unlike the others. Looking at the history of changes,

[PATCH 4.4 16/22] coda: fix build using bare-metal toolchain

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit b2a57e334086602be56b74958d9f29b955cd157f ] The kernel is self-contained project and can be built with bare-metal toolchain. But bare-metal toolchain doesn't define __linux__. Because of this u_quad_t type is not defined when using bare-metal toolchain and codafs build fails.

[PATCH 4.4 22/22] xen/swiotlb: fix condition for calling xen_destroy_contiguous_region()

2019-08-05 Thread Greg Kroah-Hartman
From: Juergen Gross commit 50f6393f9654c561df4cdcf8e6cfba7260143601 upstream. The condition in xen_swiotlb_free_coherent() for deciding whether to call xen_destroy_contiguous_region() is wrong: in case the region to be freed is not contiguous calling xen_destroy_contiguous_region() is the wrong

[PATCH 4.4 02/22] ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 8ef1ba39a9fa53d2205e633bc9b21840a275908e ] This is similar to commit e6186820a745 ("arm64: dts: rockchip: Arch counter doesn't tick in system suspend"). Specifically on the rk3288 it can be seen that the timer stops ticking in suspend if we end up running through the

[PATCH 4.4 17/22] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit f90fb3c7e2c13ae829db2274b88b845a75038b8a ] Only users of upc_req in kernel side fs/coda/psdev.c and fs/coda/upcall.c already include linux/coda_psdev.h. Suggested by Jan Harkes in https://lore.kernel.org/lkml/2015053913.ga23...@cs.cmu.edu/ Fixes these

[PATCH 4.4 04/22] MIPS: lantiq: Fix bitfield masking

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit ba1bc0fcdeaf3bf583c1517bd2e3e29cf223c969 ] The modification of EXIN register doesn't clean the bitfield before the writing of a new value. After a few modifications the bitfield would accumulate only '1's. Signed-off-by: Petr Cvek Signed-off-by: Paul Burton Cc:

[PATCH 4.4 20/22] selinux: fix memory leak in policydb_init()

2019-08-05 Thread Greg Kroah-Hartman
From: Ondrej Mosnacek commit 45385237f65aeee73641f1ef737d7273905a233f upstream. Since roles_init() adds some entries to the role hash table, we need to destroy also its keys/values on error, otherwise we get a memory leak in the error path. Cc: Reported-by:

[PATCH 4.4 21/22] s390/dasd: fix endless loop after read unit address configuration

2019-08-05 Thread Greg Kroah-Hartman
From: Stefan Haberland commit 41995342b40c418a47603e1321256d2c4a2ed0fb upstream. After getting a storage server event that causes the DASD device driver to update its unit address configuration during a device shutdown there is the possibility of an endless loop in the device driver. In the

[PATCH 4.4 18/22] ipc/mqueue.c: only perform resource calculation if user valid

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit a318f12ed8843cfac53198390c74a565c632f417 ] Andreas Christoforou reported: UBSAN: Undefined behaviour in ipc/mqueue.c:414:49 signed integer overflow: 9 * 2305843009213693951 cannot be represented in type 'long int' ... Call Trace: mqueue_evict_inode+0x8e7/0xa10

[PATCH 4.4 11/22] be2net: Signal that the device cannot transmit during reconfiguration

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 7429c6c0d9cb086d8e79f0d2a48ae14851d2115e ] While changing the number of interrupt channels, be2net stops adapter operation (including netif_tx_disable()) but it doesn't signal that it cannot transmit. This may lead dev_watchdog() to falsely trigger during that time. Add the

[PATCH 4.4 13/22] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 29e7e9664aec17b94a9c8c5a75f8d216a206aa3a ] clang warns about a few parts of the math-emu implementation where a 16-bit integer becomes negative during assignment: arch/x86/math-emu/poly_tan.c:88:35: error: implicit conversion from 'int' to 'short' changes value from 49216 to

[PATCH 4.4 15/22] coda: add error handling for fget

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 02551c23bcd85f0c68a8259c7b953d49d44f86af ] When fget fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling fget. Link:

[PATCH 4.4 14/22] mm/cma.c: fail if fixed declaration cant be honored

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit c633324e311243586675e732249339685e5d6faa ] The description of cma_declare_contiguous() indicates that if the 'fixed' argument is true the reserved contiguous area must be exactly at the address of the 'base' argument. However, the function currently allows the 'base', 'size',

[PATCH 4.4 12/22] x86/apic: Silence -Wtype-limits compiler warnings

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit ec6335586953b0df32f83ef696002063090c7aef ] There are many compiler warnings like this, In file included from ./arch/x86/include/asm/smp.h:13, from ./arch/x86/include/asm/mmzone_64.h:11, from ./arch/x86/include/asm/mmzone.h:5,

[PATCH 4.4 01/22] ARM: riscpc: fix DMA

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit ffd9a1ba9fdb7f2bd1d1ad9b9243d34e96756ba2 ] DMA got broken a while back in two different ways: 1) a change in the behaviour of disable_irq() to wait for the interrupt to finish executing causes us to deadlock at the end of DMA. 2) a change to avoid modifying the scatterlist

[PATCH 4.4 10/22] ACPI: fix false-positive -Wuninitialized warning

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit dfd6f9ad36368b8dbd5f5a2b2f0a4705ae69a323 ] clang gets confused by an uninitialized variable in what looks to it like a never executed code path: arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is uninitialized when used here [-Werror,-Wuninitialized]

Re: [PATCH 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-08-05 Thread Mika Westerberg
On Mon, Aug 05, 2019 at 01:18:54PM +0200, Lukas Wunner wrote: > On Tue, Jun 18, 2019 at 03:50:51PM +0300, Mika Westerberg wrote: > > If there are more than one PCIe switch with hotplug downstream ports > > hot-removing them leads to a following deadlock: > [...] > > What happens here is that the

[PATCH 2/2] pwm: pwm-mediatek: Add MT8516 SoC support

2019-08-05 Thread Fabien Parent
Add the compatible and the platform data to support PWM on the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/pwm/pwm-mediatek.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index eb6674ce995f..6697e30811e7 100644 ---

[PATCH 1/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT8516

2019-08-05 Thread Fabien Parent
Add the device-tree documentation for the PWM IP on the MediaTek MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt

[PATCH] sgi-xpc: Use GFP_ATOMIC for kmalloc in atomic context.

2019-08-05 Thread Fuqian Huang
xpc_send_activate_IRQ_uv is called from <-xpc_send_activate_IRQ_part_uv <-xpc_indicate_partition_disengaged_uv (xpc_arch_ops.indicate_partition_disengaged) <-xpc_die_deactivate <-xpc_system_die xpc_system_die is registered by atomic_notifier_chain_register, which indicates xpc_system_die

Re: [PATCH v2 6/6] firmware: arm_scmi: Check if platform has released shmem before using

2019-08-05 Thread Sudeep Holla
On Mon, Aug 05, 2019 at 02:33:53PM +0200, Etienne Carriere wrote: > Hello Sudeep, > > On Fri, 26 Jul 2019 at 15:46, Sudeep Holla wrote: > > > > Sometimes platfom may take too long to respond to the command and OS > > might timeout before platform transfer the ownership of the shared > > memory

Re: [PATCH v2 2/6] thermal: amlogic: Add thermal driver to support G12 SoCs

2019-08-05 Thread guillaume La Roque
Hi Martin, again thanks for your review. On 8/3/19 8:24 PM, Martin Blumenstingl wrote: > Hi Guillaume, > > (I still don't have any experience with the thermal framework, so > below are some general comments) > > On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque > wrote: > I would add a patch

Re: [PATCH v2 4/6] arm64: dts: meson: sei510: Add minimal thermal zone

2019-08-05 Thread guillaume La Roque
Hi Martin, On 8/3/19 8:29 PM, Martin Blumenstingl wrote: > Hi Guillaume, > > On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque > wrote: >> Add minimal thermal zone for DDR and CPU sensor > so high DDR (controller?) temperatures will throttle Mali and high PLL > temperatures will throttle the

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-05 Thread Miguel Ojeda
On Mon, Aug 5, 2019 at 1:55 PM Greg KH wrote: > > I think I got it working now, all looks good for 4.9.y, 4.14.y and > 4.19.y for gcc9 so far. I'll leave 4.4.y alone :) You are welcome! I am glad we can now use gcc 9 easily. I will be keeping a look into gcc 10. :) Cheers, Miguel

Re: [PING 2] [PATCH v5 1/7] nfc: pn533: i2c: "pn532" as dt compatible string

2019-08-05 Thread Johan Hovold
On Wed, Apr 03, 2019 at 11:47:35AM +0200, Lars Poeschel wrote: > Second Ping. > On Thu, Feb 28, 2019 at 11:48:01AM +0100, Lars Poeschel wrote: > > A gentle ping on this whole patch series. > > On Fri, Jan 11, 2019 at 05:18:04PM +0100, Lars Poeschel wrote: > > > It is favourable to have one

[PATCH v2] arm64: dts: rockchip: Add dts for Leez RK3399 P710 SBC

2019-08-05 Thread Andy Yan
P710 is a RK3399 based SBC, designed by Leez [0]. Specification - Rockchip RK3399 - 4/2GB LPDDR4 - TF sd scard slot - eMMC - M.2 B-Key for 4G LTE - AP6256 for WiFi + BT - Gigabit ethernet - HDMI out - 40 pin header - USB 2.0 x 2 - USB 3.0 x 1 - USB 3.0 Type-C x 1 - TYPE-C Power supply

Re: [PATCH 5.2 123/413] PCI: Add missing link delays required by the PCIe spec

2019-08-05 Thread Justin Forbes
On Sat, Aug 3, 2019 at 1:50 AM Greg Kroah-Hartman wrote: > > On Fri, Aug 02, 2019 at 12:06:39PM -0500, Justin Forbes wrote: > > On Wed, Jul 24, 2019 at 3:31 PM Greg Kroah-Hartman > > wrote: > > > > > > [ Upstream commit c2bf1fc212f7e6f25ace1af8f0b3ac061ea48ba5 ] > > > > > > Currently Linux does

Re: [PATCH 5.2 123/413] PCI: Add missing link delays required by the PCIe spec

2019-08-05 Thread Mika Westerberg
Hi, On Sat, Aug 03, 2019 at 08:50:00AM +0200, Greg Kroah-Hartman wrote: > On Fri, Aug 02, 2019 at 12:06:39PM -0500, Justin Forbes wrote: > > On Wed, Jul 24, 2019 at 3:31 PM Greg Kroah-Hartman > > wrote: > > > > > > [ Upstream commit c2bf1fc212f7e6f25ace1af8f0b3ac061ea48ba5 ] > > > > > >

memory leak in ppp_write

2019-08-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d8778f13 Merge tag 'xtensa-20190803' of git://github.com/j.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17a953d660 kernel config: https://syzkaller.appspot.com/x/.config?x=30cef20daf3e9977

KASAN: slab-out-of-bounds Write in lg4ff_init

2019-08-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e96407b4 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=144c21dc60 kernel config:

KASAN: use-after-free Read in blkdev_bio_end_io

2019-08-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e78030e Merge tag 'mmc-v5.3-rc1' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15286cdc60 kernel config: https://syzkaller.appspot.com/x/.config?x=e397351d2615e10

WARNING in kernfs_new_node

2019-08-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e78030e Merge tag 'mmc-v5.3-rc1' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12aab5cc60 kernel config: https://syzkaller.appspot.com/x/.config?x=e397351d2615e10

WARNING in __blkdev_put (2)

2019-08-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:dcb8cfbd Merge tag 'for-linus-5.3a-rc3-tag' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1478050c60 kernel config: https://syzkaller.appspot.com/x/.config?x=4c7b914a2680c9c6

Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage

2019-08-05 Thread Jiri Kosina
On Thu, 1 Aug 2019, Nicolas Saenz Julienne wrote: > > Some a4tech mice use the 'GenericDesktop.00b8' usage to inform whether > > the previous wheel report was horizontal or vertical. Before > > c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") this > > usage was being mapped to

[PATCH v2] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-05 Thread Xiongfeng Wang
When I unplug a pcie slot and remove the pcie device by 'sysfs' at the same time, I got the following calltrace. INFO: task irq/746-pciehp:41551 blocked for more than 120 seconds. Tainted: PW OE 4.19.25-vhulk1901.1.0.h111.aarch64 #1 "echo 0 >

Re: [PATCH v2 6/6] firmware: arm_scmi: Check if platform has released shmem before using

2019-08-05 Thread Etienne Carriere
Hello Sudeep, On Fri, 26 Jul 2019 at 15:46, Sudeep Holla wrote: > > Sometimes platfom may take too long to respond to the command and OS > might timeout before platform transfer the ownership of the shared > memory region to the OS with the response. > > Since the mailbox channel associated with

[PATCH] i2c: avoid sleep in IRQ context

2019-08-05 Thread Fuqian Huang
i2c_pxa_handler -> i2c_pxa_irq_txempty -> i2c_pxa_reset -> i2c_pxa_set_slave -> i2c_pxa_wait_slave As i2c_pxa_handler is an interrupt handler, it will finally calls i2c_pxa_wait_slave which calls msleep. Add in_interrupt check before msleep to avoid sleep in IRQ context. Signed-off-by: Fuqian

Re: [PATCH v4 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-05 Thread Vignesh Raghavendra
On 05/08/19 5:21 PM, tudor.amba...@microchip.com wrote: > > > On 08/05/2019 02:10 PM, Vignesh Raghavendra wrote: >> External E-Mail >> >> >> >> On 05/08/19 3:55 PM, tudor.amba...@microchip.com wrote: >>> >>> >>> On 08/01/2019 07:22 PM, Vignesh Raghavendra wrote: >>> diff --git

Re: [PATCH] regulator: core: Add of_node_put() before return

2019-08-05 Thread Markus Elfring
> +++ b/drivers/regulator/core.c > @@ -380,9 +380,12 @@ static struct device_node *of_get_child_regulator(struct > device_node *parent, > > if (!regnode) { > regnode = of_get_child_regulator(child, prop_name); > - if (regnode) > +

Re: pivot_root(".", ".") and the fchdir() dance

2019-08-05 Thread Michael Kerrisk (man-pages)
[CC += Werner Almesberger, original author of both the system call and the manual page.] Hello Aleksa, Thank you for your responses. See below. On 8/5/19 12:36 PM, Aleksa Sarai wrote: > On 2019-08-01, Michael Kerrisk (man-pages) wrote: >> I'd like to add some documentation about the

Re: [RFC PATCH v2 06/19] RISC-V: KVM: Implement VCPU interrupts and requests handling

2019-08-05 Thread Anup Patel
On Fri, Aug 2, 2019 at 1:47 PM Paolo Bonzini wrote: > > On 02/08/19 09:47, Anup Patel wrote: > > + /* VCPU interrupts */ > > + unsigned long irqs_pending; > > + unsigned long irqs_pending_mask; > > + > > This deserves a comment on the locking policy (none for producer, > vcpu_lock for

[PATCH] dt-bindings: net: meson-dwmac: convert to yaml

2019-08-05 Thread Neil Armstrong
Now that we have the DT validation in place, let's convert the device tree bindings for the Synopsys DWMAC Glue for Amlogic SoCs over to a YAML schemas. Signed-off-by: Neil Armstrong --- Rob, I keep getting : .../devicetree/bindings/net/amlogic,meson-dwmac.example.dt.yaml: ethernet@c941:

[PATCH v3 7/8] userns: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 8/8] watchdog: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 5/8] reboot: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 6/8] sched: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 2/8] module: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 4/8] printk: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 3/8] PM/sleep: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

[PATCH v3 1/8] dma: debug: Replace strncmp with str_has_prefix

2019-08-05 Thread Chuhong Yuan
strncmp(str, const, len) is error-prone because len is easy to have typo. The example is the hard-coded len has counting error or sizeof(const) forgets - 1. So we prefer using newly introduced str_has_prefix() to substitute such strncmp to make code better. Signed-off-by: Chuhong Yuan ---

Re: [PATCH] m68k: Prevent some compiler warnings in coldfire builds

2019-08-05 Thread Greg Ungerer
Hi Geert, On 5/8/19 5:14 pm, Geert Uytterhoeven wrote: On Sat, Aug 3, 2019 at 1:36 AM Greg Ungerer wrote: On 2/8/19 10:10 am, Finn Thain wrote: Since commit d3b41b6bb49e ("m68k: Dispatch nvram_ops calls to Atari or Mac functions"), Coldfire builds generate compiler warnings due to the

Re: [linux-sunxi] [PATCH 2/3] rtc: sun6i: Add support for H6 RTC

2019-08-05 Thread Clément Péron
Hi, On Mon, 5 Aug 2019 at 13:10, Ondřej Jirman wrote: > > On Mon, Aug 05, 2019 at 06:54:17PM +0800, Chen-Yu Tsai wrote: > > On Mon, Aug 5, 2019 at 6:45 PM Ondřej Jirman wrote: > > > [snip] > > Interesting. :) I have the BSP I was using saved here: > >

[PATCH] MAINTAINERS: Update e-mail address for Andrea Parri

2019-08-05 Thread Andrea Parri
My @amarulasolutions.com address stopped working this July, so update to my @gmail.com address where you'll still be able to reach me. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deacon Cc: Peter Zijlstra Cc: Boqun Feng Cc: Nicholas Piggin Cc: David Howells Cc: Jade Alglave Cc:

Re: [RFC PATCH v2 07/19] RISC-V: KVM: Implement KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls

2019-08-05 Thread Anup Patel
On Mon, Aug 5, 2019 at 5:31 PM Paolo Bonzini wrote: > > On 05/08/19 13:56, Anup Patel wrote: > > We will certainly explore sync_regs interface. Reducing exits to user-space > > will definitely help. > > sync_regs does not reduce exits to userspace, it reduces ioctls from > userspace but there is

Re: Is it safe to kmalloc a large size of memory in interrupt handler?

2019-08-05 Thread Michal Hocko
On Mon 05-08-19 19:57:54, Fuqian Huang wrote: > In the implementation of kmalloc. > when the allocated size is larger than KMALLOC_MAX_CACHE_SIZE, > it will call kmalloc_large to allocate the memory. > kmalloc_large -> >

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-05 Thread Vlastimil Babka
On 8/4/19 11:23 AM, Artem S. Tashkinov wrote: > Hello, > > There's this bug which has been bugging many people for many years > already and which is reproducible in less than a few minutes under the > latest and greatest kernel, 5.2.6. All the kernel parameters are set to > defaults. > > Steps

Re: [PATCH 1/2] HID: Add Saitek X52 to the HID IDs

2019-08-05 Thread Jiri Kosina
On Wed, 24 Jul 2019, István Váradi wrote: > The USB device ID of the Saitek X52 joystick is added as a > define to hid-ids.h. > > Signed-off-by: István Váradi > --- > drivers/hid/hid-ids.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h >

Re: [PATCH] phy: qualcomm: phy-qcom-qmp: Add of_node_put() before return

2019-08-05 Thread Markus Elfring
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > @@ -2094,6 +2094,7 @@ static int qcom_qmp_phy_probe(struct platform_device > *pdev) > dev_err(dev, "failed to create lane%d phy, %d\n", > id, ret); > pm_runtime_disable(dev); >

Re: [PATCH v2] platform/x86/pcengines-apuv2: use KEY_RESTART for front button

2019-08-05 Thread Enrico Weigelt, metux IT consult
On 01.08.19 17:00, Andy Shevchenko wrote: Hi, On Thu, Jul 25, 2019 at 10:06 PM Enrico Weigelt, metux IT consult wrote: From: Enrico Weigelt The keycode KEY_RESTART is more appropriate for the front button, as most people use it for things like restart or factory reset. Applied, thanks!

Re: oom-killer

2019-08-05 Thread Michal Hocko
On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > On 8/5/19 1:24 PM, Michal Hocko wrote: > >> [ 727.954355] CPU: 0 PID: 56 Comm: kworker/u8:2 Tainted: P O > >> 4.14.65 #606 > > [...] > >> [ 728.029390] [] (oom_kill_process) from [] > >> (out_of_memory+0x140/0x368) > >> [

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-05 Thread Luca Coelho
On Mon, 2019-08-05 at 13:10 +0300, Luca Coelho wrote: > On Mon, 2019-08-05 at 12:05 +0200, Takashi Iwai wrote: > > On Mon, 05 Aug 2019 11:53:33 +0200, > > Luca Coelho wrote: > > > On Mon, 2019-08-05 at 12:48 +0300, Luca Coelho wrote: > > > > On Sun, 2019-07-21 at 18:43 +0200, Takashi Iwai wrote: >

Re: [PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Qian Cai
> On Aug 5, 2019, at 6:00 AM, Will Deacon wrote: > > On Fri, Aug 02, 2019 at 08:33:58PM -0400, Qian Cai wrote: >> The commit d5370f754875 ("arm64: prefetch: add alternative pattern for >> CPUs without a prefetcher") introduced MIDR_IS_CPU_MODEL_RANGE() to be >> used in has_no_hw_prefetch()

<    5   6   7   8   9   10   11   12   13   >