[PATCH 4.14 45/53] IB/mlx5: Fix unreg_umr to ignore the mkey state

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit 6a053953739d23694474a5f9c81d1a30093da81a upstream. Fix unreg_umr to ignore the mkey state and do not fail if was freed. This prevents a case that a user space application already changed the mkey state to free and then the UMR operation will fail leaving the mkey in

[PATCH 4.14 06/53] 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.14 31/53] 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 4.14 32/53] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 09b90e2fe35faeace2488234e2a7728f2ea8ba26 ] In nouveau_conn_reset(), if connector->state is true, __drm_atomic_helper_connector_destroy_state() will be called, but the memory pointed by asyc isn't freed. Memory leak happens in the following function

Re: [PATCH 3/9] KVM: arm64: Implement PV_FEATURES call

2019-08-05 Thread Steven Price
On 03/08/2019 12:21, Marc Zyngier wrote: > On Fri, 2 Aug 2019 15:50:11 +0100 > Steven Price wrote: > >> This provides a mechanism for querying which paravirtualized features >> are available in this hypervisor. >> >> Also add the header file which defines the ABI for the paravirtualized >>

[PATCH 4.14 47/53] IB/mlx5: Move MRs to a kernel PD when freeing them to the MR cache

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit 9ec4483a3f0f71a228a5933bc040441322bfb090 upstream. Fix unreg_umr to move the MR to a kernel owned PD (i.e. the UMR PD) which can't be accessed by userspace. This ensures that nothing can continue to access the MR once it has been placed in the kernels cache for reuse.

[PATCH 4.14 51/53] objtool: Support GCC 9 cold subfunction naming scheme

2019-08-05 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit bcb6fb5da77c2a228adf07cc9cb1a0c2aa2001c6 upstream. Starting with GCC 8, a lot of unlikely code was moved out of line to "cold" subfunctions in .text.unlikely. For example, the unlikely bits of: irq_do_set_affinity() are moved out to the following subfunction:

[PATCH 4.19 11/74] 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.19 02/74] 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.14 49/53] IB/hfi1: Check for error on call to alloc_rsm_map_table

2019-08-05 Thread Greg Kroah-Hartman
From: John Fleck commit cd48a82087231fdba0e77521102386c6ed0168d6 upstream. The call to alloc_rsm_map_table does not check if the kmalloc fails. Check for a NULL on alloc, and bail if it fails. Fixes: 372cc85a13c9 ("IB/hfi1: Extract RSM map table init from QOS") Link:

[PATCH 4.14 37/53] gpiolib: fix incorrect IRQ requesting of an active-low lineevent

2019-08-05 Thread Greg Kroah-Hartman
From: Michael Wu commit 223ecaf140b1dd1c1d2a1a1d96281efc5c906984 upstream. When a pin is active-low, logical trigger edge should be inverted to match the same interrupt opportunity. For example, a button pushed triggers falling edge in ACTIVE_HIGH case; in ACTIVE_LOW case, the button pushed

[PATCH 4.14 35/53] Btrfs: fix race leading to fs corruption after transaction abort

2019-08-05 Thread Greg Kroah-Hartman
From: Filipe Manana commit cb2d3daddbfb6318d170e79aac1f7d5e4d49f0d7 upstream. When one transaction is finishing its commit, it is possible for another transaction to start and enter its initial commit phase as well. If the first ends up getting aborted, we have a small time window where the

Re: [f2fs-dev] [PATCH] f2fs: cleanup the code in build_sit_entries.

2019-08-05 Thread Chao Yu
On 2019-8-5 19:13, Lihong Kou wrote: > We do not need to set the SBI_NEED_FSCK flag in the error paths, if we > return error here, we will not update the checkpoint flag, so the code > is useless, just remove it. > > Signed-off-by: Lihong Kou Reviewed-by: Chao Yu Thanks,

[PATCH 4.14 52/53] gcc-9: properly declare the {pv,hv}clock_page storage

2019-08-05 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 459e3a21535ae3c7a9a123650e54f5c882b8fcbf upstream. The pvlock_page and hvclock_page variables are (as the name implies) addresses to pages, created by the linker script. But we declared them as just "extern u8" variables, which _works_, but now that gcc does some

Re: [PATCH 1/2] PCI: pciehp: Do not disable interrupt twice on suspend

2019-08-05 Thread Mika Westerberg
On Sun, Aug 04, 2019 at 09:53:06PM +0200, Lukas Wunner wrote: > On Tue, Jun 18, 2019 at 03:50:50PM +0300, Mika Westerberg wrote: > > @@ -313,10 +332,12 @@ static struct pcie_port_service_driver > > hpdriver_portdrv = { > > .remove = pciehp_remove, > > > > #ifdef CONFIG_PM > >

Re: [PATCH 1/3] mm, reclaim: make should_continue_reclaim performdryrun detection

2019-08-05 Thread Vlastimil Babka
On 8/5/19 11:27 AM, Hillf Danton wrote: BTW, can you please do something about your mail client's lack of In-Reply-To/References headers, which breaks threadings? See Documentation/process/email-clients.rst: Email clients should generate and maintain References: or In-Reply-To: headers so that

[PATCH 4.19 12/74] clk: tegra210: fix PLLU and PLLU_OUT1

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 0d34dfbf3023cf119b83f6470692c0b10c832495 ] Full-speed and low-speed USB devices do not work with Tegra210 platforms because of incorrect PLLU/PLLU_OUT1 clock settings. When full-speed device is connected: [ 14.059886] usb 1-3: new full-speed USB device number 2 using

[PATCH 4.14 33/53] kbuild: initialize CLANG_FLAGS correctly in the top Makefile

2019-08-05 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 5241ab4cf42d3a93b933b55d3d53f43049081fa1 upstream. CLANG_FLAGS is initialized by the following line: CLANG_FLAGS := --target=$(notdir $(CROSS_COMPILE:%-=%)) ..., which is run only when CROSS_COMPILE is set. Some build targets (bindeb-pkg etc.) recurse to

[PATCH 4.19 05/74] ftrace: Enable trampoline when rec count returns back to one

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit a124692b698b00026a58d89831ceda2331b2e1d0 ] Custom trampolines can only be enabled if there is only a single ops attached to it. If there's only a single callback registered to a function, and the ops has a trampoline registered for it, then we can call the trampoline directly.

[PATCH 4.19 06/74] dmaengine: tegra-apb: Error out if DMA_PREP_INTERRUPT flag is unset

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit dc161064beb83c668e0f85766b92b1e7ed186e58 ] Apparently driver was never tested with DMA_PREP_INTERRUPT flag being unset since it completely disables interrupt handling instead of skipping the callbacks invocations, hence putting channel into unusable state. The flag is always

[PATCH 4.19 29/74] lib/test_overflow.c: avoid tainting the kernel and fix wrap size

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 8e060c21ae2c265a2b596e9e7f9f97ec274151a4 ] This adds __GFP_NOWARN to the kmalloc()-portions of the overflow test to avoid tainting the kernel. Additionally fixes up the math on wrap size to be architecture and page size agnostic. Link:

[PATCH 4.19 31/74] 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.19 25/74] 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.19 07/74] arm64: dts: rockchip: fix isp iommu clocks and power domain

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit c432a29d3fc9ee928caeca2f5cf68b3aebfa6817 ] isp iommu requires wrapper variants of the clocks. noc variants are always on and using the wrapper variants will activate {A,H}CLK_ISP{0,1} due to the hierarchy. Tested using the pending isp patch set (which is not upstream yet).

[PATCH 4.19 34/74] 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.19 33/74] 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.19 39/74] x86/paravirt: Fix callee-saved function ELF sizes

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 083db6764821996526970e42d09c1ab2f4155dd4 ] The __raw_callee_save_*() functions have an ELF symbol size of zero, which confuses objtool and other tools. Fixes a bunch of warnings like the following: arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_pte_val() is

Re: [PATCH v1 2/2] drm: Clear the fence pointer when writeback job signaled

2019-08-05 Thread Brian Starkey
Hi Lowry, Based on Daniel's input, this patch looks fine: Reviewed-by: Brian Starkey I think there's some opportunity for improvement around prepare_signaling/complete_signaling, but that can be treated as separate from fixing this bug. Thanks, -Brian On Wed, Jul 31, 2019 at 11:04:45AM

[PATCH 4.19 44/74] 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.19 42/74] kconfig: Clear "written" flag to avoid data loss

2019-08-05 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit 0c5b6c28ed68becb692b43eae5e44d5aa7e160ce upstream. Prior to this commit, starting nconfig, xconfig or gconfig, and saving the .config file more than once caused data loss, where a .config file that contained only comments would be written to disk starting from the

[PATCH 4.19 43/74] kbuild: initialize CLANG_FLAGS correctly in the top Makefile

2019-08-05 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit 5241ab4cf42d3a93b933b55d3d53f43049081fa1 upstream. CLANG_FLAGS is initialized by the following line: CLANG_FLAGS := --target=$(notdir $(CROSS_COMPILE:%-=%)) ..., which is run only when CROSS_COMPILE is set. Some build targets (bindeb-pkg etc.) recurse to

[PATCH 4.19 40/74] 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 4.19 47/74] mmc: meson-mx-sdio: Fix misuse of GENMASK macro

2019-08-05 Thread Greg Kroah-Hartman
From: Joe Perches commit 665e985c2f41bebc3e6cee7e04c36a44afbc58f7 upstream. Arguments are supposed to be ordered high then low. Signed-off-by: Joe Perches Reviewed-by: Neil Armstrong Fixes: ed80a13bb4c4 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs") Cc:

Re: [PATCH v4 07/10] regulator: mt6358: Add support for MT6358 regulator

2019-08-05 Thread Mark Brown
On Mon, Aug 05, 2019 at 01:21:55PM +0800, Hsin-Hsiung Wang wrote: > +static const u32 vmch_voltages[] = { > + 290, 300, 330, > +}; > +static const u32 vemc_voltages[] = { > + 290, 300, 330, > +}; Several of these tables appear to be identical. > +static inline

[PATCH 4.19 21/74] 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.19 22/74] perf version: Fix segfault due to missing OPT_END()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 916c31fff946fae0e05862f9b2435fdb29fd5090 ] 'perf version' on powerpc segfaults when used with non-supported option: # perf version -a Segmentation fault (core dumped) Fix this. Signed-off-by: Ravi Bangoria Reviewed-by: Kamalesh Babulal Tested-by: Mamatha Inamdar Cc:

Re: [PATCH v3 1/2] mm/page_idle: Add per-pid idle page tracking using virtual indexing

2019-08-05 Thread Joel Fernandes
On Mon, Aug 05, 2019 at 04:55:47PM +0900, Minchan Kim wrote: > Hi Joel, Hi Minchan, > On Wed, Jul 31, 2019 at 01:19:37PM -0400, Joel Fernandes wrote: > > > > -static struct page *page_idle_get_page(unsigned long pfn) > > > > +static struct page *page_idle_get_page(struct page *page_in) > > > >

[PATCH 4.19 24/74] 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.19 63/74] IB/mlx5: Use direct mkey destroy command upon UMR unreg failure

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit afd1417404fba6dbfa6c0a8e5763bd348da682e4 upstream. Use a direct firmware command to destroy the mkey in case the unreg UMR operation has failed. This prevents a case that a mkey will leak out from the cache post a failure to be destroyed by a UMR WR. In case the MR

[PATCH 4.19 62/74] IB/mlx5: Fix unreg_umr to ignore the mkey state

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit 6a053953739d23694474a5f9c81d1a30093da81a upstream. Fix unreg_umr to ignore the mkey state and do not fail if was freed. This prevents a case that a user space application already changed the mkey state to free and then the UMR operation will fail leaving the mkey in

[PATCH 4.19 15/74] 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.19 59/74] arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG}

2019-08-05 Thread Greg Kroah-Hartman
From: Will Deacon commit 147b9635e6347104b91f48ca9dca61eb0fbf2a54 upstream. If CTR_EL0.{CWG,ERG} are 0b then they must be interpreted to have their architecturally maximum values, which defeats the use of FTR_HIGHER_SAFE when sanitising CPU ID registers on heterogeneous machines. Introduce

[PATCH 4.19 50/74] mtd: rawnand: micron: handle on-die "ECC-off" devices correctly

2019-08-05 Thread Greg Kroah-Hartman
From: Marco Felsch commit 8493b2a06fc5b77ef5c579dc32b12761f7b7a84c upstream. Some devices are not supposed to support on-die ECC but experience shows that internal ECC machinery can actually be enabled through the "SET FEATURE (EFh)" command, even if a read of the "READ ID Parameter Tables"

[PATCH 4.19 61/74] 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.19 60/74] nbd: replace kill_bdev() with __invalidate_device() again

2019-08-05 Thread Greg Kroah-Hartman
From: Munehisa Kamata commit 2b5c8f0063e4b263cf2de82029798183cf85c320 upstream. Commit abbbdf12497d ("replace kill_bdev() with __invalidate_device()") once did this, but 29eaadc03649 ("nbd: stop using the bdev everywhere") resurrected kill_bdev() and it has been there since then. So buffer_head

[PATCH 4.19 23/74] x86: kvm: avoid constant-conversion warning

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit a6a6d3b1f867d34ba5bd61aa7bb056b48ca67cff ] clang finds a contruct suspicious that converts an unsigned character to a signed integer and back, causing an overflow: arch/x86/kvm/mmu.c:4605:39: error: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value

[PATCH 4.19 48/74] gpiolib: fix incorrect IRQ requesting of an active-low lineevent

2019-08-05 Thread Greg Kroah-Hartman
From: Michael Wu commit 223ecaf140b1dd1c1d2a1a1d96281efc5c906984 upstream. When a pin is active-low, logical trigger edge should be inverted to match the same interrupt opportunity. For example, a button pushed triggers falling edge in ACTIVE_HIGH case; in ACTIVE_LOW case, the button pushed

[PATCH 4.19 19/74] 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.19 20/74] 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.19 17/74] 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.19 38/74] 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.19 37/74] xen/pv: Fix a boot up hang revealed by int3 self test

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit b23e5844dfe78a80ba672793187d3f52e4b528d7 ] Commit 7457c0da024b ("x86/alternatives: Add int3_emulate_call() selftest") is used to ensure there is a gap setup in int3 exception stack which could be used for inserting call return address. This gap is missed in XEN PV int3

[PATCH 4.19 46/74] 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.19 18/74] 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.19 41/74] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 09b90e2fe35faeace2488234e2a7728f2ea8ba26 ] In nouveau_conn_reset(), if connector->state is true, __drm_atomic_helper_connector_destroy_state() will be called, but the memory pointed by asyc isn't freed. Memory leak happens in the following function

[PATCH 4.19 45/74] Btrfs: fix race leading to fs corruption after transaction abort

2019-08-05 Thread Greg Kroah-Hartman
From: Filipe Manana commit cb2d3daddbfb6318d170e79aac1f7d5e4d49f0d7 upstream. When one transaction is finishing its commit, it is possible for another transaction to start and enter its initial commit phase as well. If the first ends up getting aborted, we have a small time window where the

[PATCH 4.19 36/74] mlxsw: spectrum_dcb: Configure DSCP map as the last rule is removed

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit dedfde2fe1c4ccf27179fcb234e2112d065c39bb ] Spectrum systems use DSCP rewrite map to update DSCP field in egressing packets to correspond to priority that the packet has. Whether rewriting will take place is determined at the point when the packet ingresses the switch: if the

[PATCH 4.19 35/74] 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.19 09/74] firmware/psci: psci_checker: Park kthreads before stopping them

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 92e074acf6f7694e96204265eb18ac113f546e80 ] Since commit 85f1abe0019f ("kthread, sched/wait: Fix kthread_parkme() completion issue"), kthreads that are bound to a CPU must be parked before being stopped. At the moment the PSCI checker calls kthread_stop() directly on the suspend

[PATCH 4.19 32/74] 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.19 01/74] 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.19 27/74] 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.14 42/53] 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.19 26/74] 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.19 16/74] btrfs: qgroup: Dont hold qgroup_ioctl_lock in btrfs_qgroup_inherit()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit e88439debd0a7f969b3ddba6f147152cd0732676 ] [BUG] Lockdep will report the following circular locking dependency: WARNING: possible circular locking dependency detected 5.2.0-rc2-custom #24 Tainted: G O --

[PATCH 4.19 28/74] 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.19 30/74] lib/test_string.c: avoid masking memset16/32/64 failures

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 33d6e0ff68af74be0c846c8e042e84a9a1a0561e ] If a memsetXX implementation is completely broken and fails in the first iteration, when i, j, and k are all zero, the failure is masked as zero is returned. Failing in the first iteration is perhaps the most likely failure, so this

[PATCH 4.19 10/74] 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.19 00/74] 4.19.65-stable review

2019-08-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.65 release. There are 74 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.19 08/74] 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.19 03/74] ARM: dts: rockchip: Make rk3288-veyron-mickeys emmc work again

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 99fa066710f75f18f4d9a5bc5f6a711968a581d5 ] When I try to boot rk3288-veyron-mickey I totally fail to make the eMMC work. Specifically my logs (on Chrome OS 4.19): mmc_host mmc1: card is non-removable. mmc_host mmc1: Bus speed (slot 0) = 40Hz (slot req 40Hz, actual

[PATCH 4.19 13/74] 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.19 04/74] 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.19 14/74] clk: sprd: Add check for return value of sprd_clk_regmap_init()

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit c974c48deeb969c5e4250e4f06af91edd84b1f10 ] sprd_clk_regmap_init() doesn't always return success, adding check for its return value should make the code more strong. Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang [sb...@kernel.org: Add a missing int ret] Signed-off-by:

[PATCH 4.14 40/53] 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.14 39/53] 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.14 41/53] parisc: Fix build of compressed kernel even with debug enabled

2019-08-05 Thread Greg Kroah-Hartman
From: Helge Deller commit 3fe6c873af2f2247544debdbe51ec29f690a2ccf upstream. With debug info enabled (CONFIG_DEBUG_INFO=y) the resulting vmlinux may get that huge that we need to increase the start addresss for the decompression text section otherwise one will face a linker error. Reported-by:

[PATCH 4.14 38/53] IB/hfi1: Fix Spectre v1 vulnerability

2019-08-05 Thread Greg Kroah-Hartman
From: Gustavo A. R. Silva commit 6497d0a9c53df6e98b25e2b79f2295d7caa47b6e upstream. sl is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. Fix this by sanitizing sl before using it to index ibp->sl_to_sc. Notice that given that

[PATCH 4.14 53/53] x86/vdso: Prevent segfaults due to hoisted vclock reads

2019-08-05 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit ff17bbe0bb405ad8b36e55815d381841f9fdeebc upstream. GCC 5.5.0 sometimes cleverly hoists reads of the pvclock and/or hvclock pages before the vclock mode checks. This creates a path through vclock_gettime() in which no vclock is enabled at all (due to disabled TSC on

[PATCH 4.14 36/53] 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.14 44/53] 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.14 50/53] 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

[PATCH 4.14 48/53] 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.14 43/53] nbd: replace kill_bdev() with __invalidate_device() again

2019-08-05 Thread Greg Kroah-Hartman
From: Munehisa Kamata commit 2b5c8f0063e4b263cf2de82029798183cf85c320 upstream. Commit abbbdf12497d ("replace kill_bdev() with __invalidate_device()") once did this, but 29eaadc03649 ("nbd: stop using the bdev everywhere") resurrected kill_bdev() and it has been there since then. So buffer_head

[PATCH 4.14 09/53] clk: tegra210: fix PLLU and PLLU_OUT1

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 0d34dfbf3023cf119b83f6470692c0b10c832495 ] Full-speed and low-speed USB devices do not work with Tegra210 platforms because of incorrect PLLU/PLLU_OUT1 clock settings. When full-speed device is connected: [ 14.059886] usb 1-3: new full-speed USB device number 2 using

[PATCH 4.14 46/53] IB/mlx5: Use direct mkey destroy command upon UMR unreg failure

2019-08-05 Thread Greg Kroah-Hartman
From: Yishai Hadas commit afd1417404fba6dbfa6c0a8e5763bd348da682e4 upstream. Use a direct firmware command to destroy the mkey in case the unreg UMR operation has failed. This prevents a case that a mkey will leak out from the cache post a failure to be destroyed by a UMR WR. In case the MR

[PATCH 4.14 00/53] 4.14.137-stable review

2019-08-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.137 release. There are 53 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.14 34/53] 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.14 08/53] 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.14 25/53] 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.14 30/53] x86/paravirt: Fix callee-saved function ELF sizes

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 083db6764821996526970e42d09c1ab2f4155dd4 ] The __raw_callee_save_*() functions have an ELF symbol size of zero, which confuses objtool and other tools. Fixes a bunch of warnings like the following: arch/x86/xen/mmu_pv.o: warning: objtool: __raw_callee_save_xen_pte_val() is

[PATCH 4.14 26/53] 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 24/53] 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.14 23/53] 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.14 03/53] ARM: dts: rockchip: Make rk3288-veyron-mickeys emmc work again

2019-08-05 Thread Greg Kroah-Hartman
[ Upstream commit 99fa066710f75f18f4d9a5bc5f6a711968a581d5 ] When I try to boot rk3288-veyron-mickey I totally fail to make the eMMC work. Specifically my logs (on Chrome OS 4.19): mmc_host mmc1: card is non-removable. mmc_host mmc1: Bus speed (slot 0) = 40Hz (slot req 40Hz, actual

[PATCH 4.14 29/53] 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.14 18/53] 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.14 02/53] 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.14 21/53] 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 41/42] objtool: Support GCC 9 cold subfunction naming scheme

2019-08-05 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit bcb6fb5da77c2a228adf07cc9cb1a0c2aa2001c6 upstream. Starting with GCC 8, a lot of unlikely code was moved out of line to "cold" subfunctions in .text.unlikely. For example, the unlikely bits of: irq_do_set_affinity() are moved out to the following subfunction:

<    4   5   6   7   8   9   10   11   12   13   >