[PATCH AUTOSEL 5.2 71/85] mlxsw: spectrum_dcb: Configure DSCP map as the last rule is removed

2019-07-26 Thread Sasha Levin
From: Petr Machata [ 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

[PATCH AUTOSEL 5.2 80/85] bnxt_en: Fix VNIC accounting when enabling aRFS on 57500 chips.

2019-07-26 Thread Sasha Levin
From: Michael Chan [ Upstream commit 9b3d15e6b05e0b916be5fbd915f90300a403098b ] Unlike legacy chips, 57500 chips don't need additional VNIC resources for aRFS/ntuple. Fix the code accordingly so that we don't reserve and allocate additional VNICs on 57500 chips. Without this patch, the driver

[PATCH AUTOSEL 5.2 78/85] x86/kvm: Don't call kvm_spurious_fault() from .fixup

2019-07-26 Thread Sasha Levin
From: Josh Poimboeuf [ 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

[PATCH AUTOSEL 4.19 01/47] ARM: riscpc: fix DMA

2019-07-26 Thread Sasha Levin
From: Russell King [ 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

[PATCH AUTOSEL 5.2 84/85] dma-direct: correct the physical addr in dma_direct_sync_sg_for_cpu/device

2019-07-26 Thread Sasha Levin
From: Fugang Duan [ Upstream commit 449fa54d6815be8c2c1f68fa9dbbae9384a7c03e ] dma_map_sg() may use swiotlb buffer when the kernel command line includes "swiotlb=force" or the dma_addr is out of dev->dma_mask range. After DMA complete the memory moving from device to memory, then user call

[PATCH AUTOSEL 5.2 81/85] x86, boot: Remove multiple copy of static function sanitize_boot_params()

2019-07-26 Thread Sasha Levin
From: Zhenzhong Duan [ 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

[PATCH AUTOSEL 5.2 82/85] bpf: Disable GCC -fgcse optimization for ___bpf_prog_run()

2019-07-26 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 3193c0836f203a91bef96d88c64cccf0be090d9c ] On x86-64, with CONFIG_RETPOLINE=n, GCC's "global common subexpression elimination" optimization results in ___bpf_prog_run()'s jumptable code changing from this: select_insn: jmp

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

2019-07-26 Thread Sasha Levin
From: Cheng Jian [ 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

[PATCH AUTOSEL 4.19 02/47] ARM: dts: rockchip: Make rk3288-veyron-minnie run at hs200

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ 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

[PATCH AUTOSEL 4.19 13/47] fs/adfs: super: fix use-after-free bug

2019-07-26 Thread Sasha Levin
From: Russell King [ 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

[PATCH AUTOSEL 4.19 09/47] firmware/psci: psci_checker: Park kthreads before stopping them

2019-07-26 Thread Sasha Levin
From: Jean-Philippe Brucker [ 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

[PATCH AUTOSEL 4.19 26/47] ISDN: hfcsusb: checking idx of ep configuration

2019-07-26 Thread Sasha Levin
From: Phong Tran [ Upstream commit f384e62a82ba5d85408405fdd6aeff89354deaa9 ] The syzbot test with random endpoint address which made the idx is overflow in the table of endpoint configuations. this adds the checking for fixing the error report from syzbot KASAN: stack-out-of-bounds Read in

[PATCH AUTOSEL 4.19 19/47] ceph: fix improper use of smp_mb__before_atomic()

2019-07-26 Thread Sasha Levin
From: Andrea Parri [ 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

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

2019-07-26 Thread Sasha Levin
From: JC Kuo [ 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

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

2019-07-26 Thread Sasha Levin
From: Benjamin Block [ 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

[PATCH AUTOSEL 4.14 18/37] ACPI: fix false-positive -Wuninitialized warning

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

Re: [alsa-devel] [RFC PATCH 01/40] soundwire: add debugfs support

2019-07-26 Thread Pierre-Louis Bossart
On 7/25/19 5:15 PM, Guennadi Liakhovetski wrote: Hi Pierre, A couple of nitpicks: Thanks for the feedback! create mode 100644 drivers/soundwire/debugfs.c [snip] diff --git a/drivers/soundwire/bus.h b/drivers/soundwire/bus.h index 3048ca153f22..06ac4adb0074 100644 ---

[PATCH AUTOSEL 4.14 04/37] ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ 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

[PATCH AUTOSEL 4.14 32/37] xen: let alloc_xenballooned_pages() fail if not enough memory free

2019-07-26 Thread Sasha Levin
From: Juergen Gross [ Upstream commit a1078e821b605813b63bf6bca414a85f804d5c66 ] Instead of trying to allocate pages with GFP_USER in add_ballooned_pages() check the available free memory via si_mem_available(). GFP_USER is far less limiting memory exhaustion than the test via

[PATCH AUTOSEL 4.14 29/37] ipc/mqueue.c: only perform resource calculation if user valid

2019-07-26 Thread Sasha Levin
From: Kees Cook [ 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:

[PATCH AUTOSEL 4.14 27/37] drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings

2019-07-26 Thread Sasha Levin
From: Dan Carpenter [ 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

[PATCH AUTOSEL 4.14 28/37] drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl

2019-07-26 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 5515e9a6273b8c02034466bcbd717ac9f53dab99 ] The PPS assert/clear offset corrections are set by the PPS_SETPARAMS ioctl in the pps_ktime structs, which also contain flags. The flags are not initialized by applications (using the timepps.h header) and they

[PATCH AUTOSEL 4.14 33/37] xen/pv: Fix a boot up hang revealed by int3 self test

2019-07-26 Thread Sasha Levin
From: Zhenzhong Duan [ 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

[PATCH AUTOSEL 4.14 30/37] floppy: fix div-by-zero in setup_format_params

2019-07-26 Thread Sasha Levin
From: Denis Efremov [ Upstream commit f3554aeb991214cbfafd17d55e2bfddb50282e32 ] This fixes a divide by zero error in the setup_format_params function of the floppy driver. Two consecutive ioctls can trigger the bug: The first one should set the drive geometry with such .sect and .rate values

[PATCH AUTOSEL 4.4 12/23] be2net: Signal that the device cannot transmit during reconfiguration

2019-07-26 Thread Sasha Levin
From: Benjamin Poirier [ 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

[PATCH AUTOSEL 4.4 15/23] mm/cma.c: fail if fixed declaration can't be honored

2019-07-26 Thread Sasha Levin
From: Doug Berger [ 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

[PATCH AUTOSEL 4.4 11/23] ISDN: hfcsusb: checking idx of ep configuration

2019-07-26 Thread Sasha Levin
From: Phong Tran [ Upstream commit f384e62a82ba5d85408405fdd6aeff89354deaa9 ] The syzbot test with random endpoint address which made the idx is overflow in the table of endpoint configuations. this adds the checking for fixing the error report from syzbot KASAN: stack-out-of-bounds Read in

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

2019-07-26 Thread Sasha Levin
From: Andrea Parri [ 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

[PATCH AUTOSEL 4.4 13/23] x86/apic: Silence -Wtype-limits compiler warnings

2019-07-26 Thread Sasha Levin
From: Qian Cai [ 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 AUTOSEL 5.2 52/85] mm/memcontrol.c: keep local VM counters in sync with the hierarchical ones

2019-07-26 Thread Sasha Levin
From: Yafang Shao [ Upstream commit 766a4c19d880887c457811b86f1f68525e416965 ] After commit 815744d75152 ("mm: memcontrol: don't batch updates of local VM stats and events"), the local VM counter are not in sync with the hierarchical ones. Below is one example in a leaf memcg on my server

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

2019-07-26 Thread Sasha Levin
From: David Sterba [ 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

[PATCH AUTOSEL 4.19 30/47] mm/cma.c: fail if fixed declaration can't be honored

2019-07-26 Thread Sasha Levin
From: Doug Berger [ 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

[PATCH AUTOSEL 5.2 08/85] soc: qcom: rpmpd: fixup rpmpd set performance state

2019-07-26 Thread Sasha Levin
From: Sibi Sankar [ Upstream commit 8b3344422f097debe52296b87a39707d56ca3abe ] Remoteproc q6v5-mss calls set_performance_state with INT_MAX on rpmpd. This is currently ignored since it is greater than the max supported state. Fixup rpmpd state to max if the required state is greater than all

Re: [PATCH v3 3/8] dt-bindings: interrupt-controller: Add JZ4760 and JZ4760B bindings.

2019-07-26 Thread Marc Zyngier
On Mon, 15 Jul 2019 13:09:50 +0100, Zhou Yanjie wrote: > > Add the interrupt-controller bindings for the JZ4760 Soc and > the JZ4760B Soc from Ingenic. > > Signed-off-by: Zhou Yanjie > --- > Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt | 2 > ++ > 1 file changed, 2

[PATCH v2] counter/ftm-quaddec: Use device-managed registration API

2019-07-26 Thread Chuhong Yuan
Make use of devm_counter_register. Then we can remove redundant unregistration API usage to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Use devm_add_action_or_reset to keep resource release order. - remove() function is redundant now, delete it.

[PATCH AUTOSEL 4.19 35/47] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2019-07-26 Thread Sasha Levin
From: Mikko Rapeli [ 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

[PATCH AUTOSEL 5.2 55/85] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

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

2019-07-26 Thread Sasha Levin
From: Petr Cvek [ 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

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

2019-07-26 Thread Sasha Levin
From: Prarit Bhargava [ 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

Re: [PATCH] irqchip: renesas-rza1: fix an use-after-free in rza1_irqc_probe()

2019-07-26 Thread Marc Zyngier
On Mon, 08 Jul 2019 07:19:04 +0100, Wen Yang wrote: > > The gic_node is still being used in the rza1_irqc_parse_map() call > after the of_node_put() call, which may result in use-after-free. > > Fixes: a644ccb819bc ("irqchip: Add Renesas RZ/A1 Interrupt Controller driver") > Signed-off-by: Wen

[PATCH AUTOSEL 5.2 09/85] arm64: dts: marvell: mcbin: enlarge PCI memory window

2019-07-26 Thread Sasha Levin
From: Heinrich Schuchardt [ Upstream commit d3446b266a8c72a7bbc94b65f5fc6d206be77d24 ] Running a graphics adapter on the MACCHIATObin fails due to an insufficiently sized memory window. Enlarge the memory window for the PCIe slot to 512 MiB. With the patch I am able to use a GT710 graphics

[PATCH AUTOSEL 4.4 03/23] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-07-26 Thread Sasha Levin
From: Prarit Bhargava [ 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

[PATCH AUTOSEL 5.2 44/85] ACPI: fix false-positive -Wuninitialized warning

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

[PATCH AUTOSEL 4.9 20/30] coda: add error handling for fget

2019-07-26 Thread Sasha Levin
From: Zhouyang Jia [ 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 AUTOSEL 4.9 18/30] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

[PATCH AUTOSEL 4.19 25/47] ACPI: fix false-positive -Wuninitialized warning

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

[PATCH AUTOSEL 5.2 04/85] clk: meson: mpll: properly handle spread spectrum

2019-07-26 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit f9b3eeebef6aabaa37a351715374de53b6da860c ] The bit 'SSEN' available on some MPLL DSS outputs is not related to the fractional part of the divider but to the function called 'Spread Spectrum'. This function might be used to solve EM issues by adding a

[PATCH AUTOSEL 4.9 29/30] x86/kvm: Don't call kvm_spurious_fault() from .fixup

2019-07-26 Thread Sasha Levin
From: Josh Poimboeuf [ 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

[PATCH AUTOSEL 4.4 05/23] dmaengine: rcar-dmac: Reject zero-length slave DMA requests

2019-07-26 Thread Sasha Levin
From: Geert Uytterhoeven [ 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()

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

2019-07-26 Thread Sasha Levin
From: Andrea Parri [ 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

[PATCH AUTOSEL 4.14 23/37] mm/cma.c: fail if fixed declaration can't be honored

2019-07-26 Thread Sasha Levin
From: Doug Berger [ 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

[PATCH AUTOSEL 4.14 19/37] ISDN: hfcsusb: checking idx of ep configuration

2019-07-26 Thread Sasha Levin
From: Phong Tran [ Upstream commit f384e62a82ba5d85408405fdd6aeff89354deaa9 ] The syzbot test with random endpoint address which made the idx is overflow in the table of endpoint configuations. this adds the checking for fixing the error report from syzbot KASAN: stack-out-of-bounds Read in

[PATCH AUTOSEL 4.4 06/23] fs/adfs: super: fix use-after-free bug

2019-07-26 Thread Sasha Levin
From: Russell King [ 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

[PATCH AUTOSEL 4.19 47/47] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-07-26 Thread Sasha Levin
From: Yongxin Liu [ 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 AUTOSEL 5.2 28/85] btrfs: Flush before reflinking any extent to prevent NOCOW write falling back to COW without data reservation

2019-07-26 Thread Sasha Levin
From: Qu Wenruo [ Upstream commit a94d1d0cb3bf1983fcdf05b59d914dbff4f1f52c ] [BUG] The following script can cause unexpected fsync failure: #!/bin/bash dev=/dev/test/test mnt=/mnt/btrfs mkfs.btrfs -f $dev -b 512M > /dev/null mount $dev $mnt -o nospace_cache # Prealloc one extent

[PATCH AUTOSEL 4.14 20/37] be2net: Signal that the device cannot transmit during reconfiguration

2019-07-26 Thread Sasha Levin
From: Benjamin Poirier [ 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

[PATCH AUTOSEL 5.2 02/85] ARM: dts: rockchip: Make rk3288-veyron-minnie run at hs200

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ 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

[PATCH AUTOSEL 4.19 32/47] lib/test_string.c: avoid masking memset16/32/64 failures

2019-07-26 Thread Sasha Levin
From: Peter Rosin [ 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

[PATCH AUTOSEL 4.9 21/30] coda: fix build using bare-metal toolchain

2019-07-26 Thread Sasha Levin
From: Sam Protsenko [ 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

[PATCH AUTOSEL 5.2 43/85] x86: kvm: avoid constant-conversion warning

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

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

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ 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

[PATCH AUTOSEL 4.14 22/37] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

[PATCH AUTOSEL 4.9 13/30] scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized

2019-07-26 Thread Sasha Levin
From: Benjamin Block [ 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

[PATCH AUTOSEL 4.9 23/30] drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings

2019-07-26 Thread Sasha Levin
From: Dan Carpenter [ 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

[PATCH AUTOSEL 5.2 40/85] drm/amd/display: Expose audio inst from DC to DM

2019-07-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 5fdb7c4c7f2691efd760b0b0dc00da4a3699f1a6 ] [Why] In order to give pin notifications to the sound driver from DM we need to know whether audio is enabled on a stream and what pin it's using from DC. [How] Expose the instance via stream status if it's

[PATCH AUTOSEL 4.19 29/47] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

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

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

[PATCH AUTOSEL 5.2 53/85] mm/z3fold.c: reinitialize zhdr structs after migration

2019-07-26 Thread Sasha Levin
From: Henry Burns [ Upstream commit c92d2f38563db20c20c8db2f98fa1349290477d5 ] z3fold_page_migration() calls memcpy(new_zhdr, zhdr, PAGE_SIZE). However, zhdr contains fields that can't be directly coppied over (ex: list_head, a circular linked list). We only need to initialize the linked lists

[PATCH AUTOSEL 5.2 60/85] coda: add error handling for fget

2019-07-26 Thread Sasha Levin
From: Zhouyang Jia [ 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 AUTOSEL 5.2 47/85] bpf: fix BTF verifier size resolution logic

2019-07-26 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 1acc5d5c5832da9a98b22374a8fae08ffe31b3f8 ] BTF verifier has a size resolution bug which in some circumstances leads to invalid size resolution for, e.g., TYPEDEF modifier. This happens if we have [1] PTR -> [2] TYPEDEF -> [3] ARRAY, in which case due to

[PATCH AUTOSEL 5.2 65/85] ipc/mqueue.c: only perform resource calculation if user valid

2019-07-26 Thread Sasha Levin
From: Kees Cook [ 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:

[PATCH AUTOSEL 4.4 01/23] ARM: riscpc: fix DMA

2019-07-26 Thread Sasha Levin
From: Russell King [ 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

[PATCH AUTOSEL 4.9 24/30] drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl

2019-07-26 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 5515e9a6273b8c02034466bcbd717ac9f53dab99 ] The PPS assert/clear offset corrections are set by the PPS_SETPARAMS ioctl in the pps_ktime structs, which also contain flags. The flags are not initialized by applications (using the timepps.h header) and they

[PATCH AUTOSEL 4.14 36/37] x86, boot: Remove multiple copy of static function sanitize_boot_params()

2019-07-26 Thread Sasha Levin
From: Zhenzhong Duan [ 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

[PATCH AUTOSEL 4.4 23/23] x86/kvm: Don't call kvm_spurious_fault() from .fixup

2019-07-26 Thread Sasha Levin
From: Josh Poimboeuf [ 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

[PATCH v2 1/6] firmware: arm_scmi: Use the correct style for SPDX License Identifier

2019-07-26 Thread Sudeep Holla
Fix to correct the SPDX License Identifier style in header file related to firmware frivers for ARM SCMI message protocol. For C header files Documentation/process/license-rules.rst mandates C-like comments(opposed to C source files where C++ style should be used). While at it, change GPL-2.0 to

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

2019-07-26 Thread Sudeep Holla
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 the channel is freed and new commands are dispatch on the same channel, OS

[PATCH v2 4/6] firmware: arm_scmi: Fix few trivial typos in comments

2019-07-26 Thread Sudeep Holla
While adding new comments found couple of typos that are better fixed. s/informfation/information/ s/statues/status/ Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/arm_scmi/driver.c

[PATCH v2 0/6] firmware: arm_scmi: miscellaneous fixes/updates

2019-07-26 Thread Sudeep Holla
Hi, Here are few miscellaneous fixes and updates to SCMI. Fixes are mostly for the reported issues and updates are based on code inspection during development of new features(delayed response and notifications). The new features will follow this. -- Regards, Sudeep v1->v2: - Fixed

[PATCH v2 3/6] firmware: arm_scmi: Remove extra check for invalid length message responses

2019-07-26 Thread Sudeep Holla
scmi_xfer_get_init ensures both transmit and receive buffer lengths are within the maximum limits. If receive buffer length is not supplied by the caller, it's set to the maximum limit value. Receive buffer length is never modified after that. So there's no need for the extra check when receive

Re: [PATCH] net: bridge: Allow bridge to joing multicast groups

2019-07-26 Thread Andrew Lunn
On Fri, Jul 26, 2019 at 02:02:15PM +0200, Horatiu Vultur wrote: > Hi Nikolay, > > The 07/26/2019 12:26, Nikolay Aleksandrov wrote: > > External E-Mail > > > > > > On 26/07/2019 11:41, Nikolay Aleksandrov wrote: > > > On 25/07/2019 17:21, Horatiu Vultur wrote: > > >> Hi Nikolay, > > >> > > >>

[PATCH v2 5/6] firmware: arm_scmi: Use the term 'message' instead of 'command'

2019-07-26 Thread Sudeep Holla
In preparation to adding support for other two types of messages that SCMI specification mentions, let's replace the term 'command' with the correct term 'message'. As per the specification the messages are of 3 types: commands(synchronous or asynchronous), delayed responses and notifications.

[PATCH AUTOSEL 4.4 19/23] drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl

2019-07-26 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 5515e9a6273b8c02034466bcbd717ac9f53dab99 ] The PPS assert/clear offset corrections are set by the PPS_SETPARAMS ioctl in the pps_ktime structs, which also contain flags. The flags are not initialized by applications (using the timepps.h header) and they

[PATCH AUTOSEL 4.4 21/23] floppy: fix div-by-zero in setup_format_params

2019-07-26 Thread Sasha Levin
From: Denis Efremov [ Upstream commit f3554aeb991214cbfafd17d55e2bfddb50282e32 ] This fixes a divide by zero error in the setup_format_params function of the floppy driver. Two consecutive ioctls can trigger the bug: The first one should set the drive geometry with such .sect and .rate values

Re: [PATCH AUTOSEL 5.2 13/85] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-07-26 Thread Prarit Bhargava
On 7/26/19 9:38 AM, Sasha Levin wrote: > From: Prarit Bhargava > > [ Upstream commit 6e6de3dee51a439f76eb73c22ae2ffd2c9384712 ] > > Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and > linux guests boot with repeated errors: > Hey Sasha, I'd prefer to leave this out of

Re: [PATCH] irqchip: madera: Fixup SPDX headers

2019-07-26 Thread Marc Zyngier
On Tue, 25 Jun 2019 16:47:17 +0100, Charles Keepax wrote: > > GPL-2.0-only is the preferred way of expressing v2 of the GPL, update > the code to use this. > > Signed-off-by: Charles Keepax > --- > drivers/irqchip/irq-madera.c | 2 +- > include/linux/irqchip/irq-madera.h | 2 +- > 2

[PATCH AUTOSEL 4.4 22/23] floppy: fix out-of-bounds read in copy_buffer

2019-07-26 Thread Sasha Levin
From: Denis Efremov [ Upstream commit da99466ac243f15fbba65bd261bfc75ffa1532b6 ] This fixes a global out-of-bounds read access in the copy_buffer function of the floppy driver. The FDDEFPRM ioctl allows one to set the geometry of a disk. The sect and head fields (unsigned int) of the

[PATCH AUTOSEL 4.4 17/23] coda: fix build using bare-metal toolchain

2019-07-26 Thread Sasha Levin
From: Sam Protsenko [ 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

[PATCH v2 2/6] firmware: arm_scmi: Align few names in sensors protocol with SCMI specification

2019-07-26 Thread Sudeep Holla
Looks like more code developed during the draft versions of the specification slipped through and they don't match the final released version. This seem to have happened only with sensor protocol. Renaming few command and function names here to match exactly with the released version of SCMI

[PATCH AUTOSEL 4.4 18/23] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers

2019-07-26 Thread Sasha Levin
From: Mikko Rapeli [ 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

[PATCH AUTOSEL 4.4 20/23] ipc/mqueue.c: only perform resource calculation if user valid

2019-07-26 Thread Sasha Levin
From: Kees Cook [ 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:

[PATCH AUTOSEL 4.4 16/23] coda: add error handling for fget

2019-07-26 Thread Sasha Levin
From: Zhouyang Jia [ 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 AUTOSEL 4.4 14/23] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

Re: WARNING in __mmdrop

2019-07-26 Thread Michael S. Tsirkin
On Fri, Jul 26, 2019 at 08:53:18PM +0800, Jason Wang wrote: > > On 2019/7/26 下午8:38, Michael S. Tsirkin wrote: > > On Fri, Jul 26, 2019 at 08:00:58PM +0800, Jason Wang wrote: > > > On 2019/7/26 下午7:49, Michael S. Tsirkin wrote: > > > > On Thu, Jul 25, 2019 at 10:25:25PM +0800, Jason Wang wrote: >

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

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ 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

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

2019-07-26 Thread Sasha Levin
From: Benjamin Block [ 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

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

2019-07-26 Thread Sasha Levin
From: Zhenzhong Duan [ 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

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

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ 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

[PATCH AUTOSEL 4.9 28/30] xen: let alloc_xenballooned_pages() fail if not enough memory free

2019-07-26 Thread Sasha Levin
From: Juergen Gross [ Upstream commit a1078e821b605813b63bf6bca414a85f804d5c66 ] Instead of trying to allocate pages with GFP_USER in add_ballooned_pages() check the available free memory via si_mem_available(). GFP_USER is far less limiting memory exhaustion than the test via

[PATCH AUTOSEL 4.9 25/30] ipc/mqueue.c: only perform resource calculation if user valid

2019-07-26 Thread Sasha Levin
From: Kees Cook [ 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:

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