[PATCH AUTOSEL 4.4 10/14] init: initialize jump labels before command line option parsing

2019-05-06 Thread Sasha Levin
From: Dan Williams [ Upstream commit 6041186a32585fc7a1d0f6cfe2f138b05fdc3c82 ] When a module option, or core kernel argument, toggles a static-key it requires jump labels to be initialized early. While x86, PowerPC, and ARM64 arrange for jump_label_init() to be called before parse_args(), ARM

[PATCH AUTOSEL 4.4 04/14] libnvdimm/btt: Fix a kmemdup failure check

2019-05-06 Thread Sasha Levin
From: Aditya Pakki [ Upstream commit 486fa92df4707b5df58d6508728bdb9321a59766 ] In case kmemdup fails, the fix releases resources and returns to avoid the NULL pointer dereference. Signed-off-by: Aditya Pakki Signed-off-by: Dan Williams Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.4 01/14] iio: adc: xilinx: fix potential use-after-free on remove

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 62039b6aef63380ba7a37c113bbaeee8a55c5342 ] When cancel_delayed_work() returns, the delayed work may still be running. This means that the core could potentially free the private structure (struct xadc) while the delayed work is still using it. This is a

[PATCH AUTOSEL 4.9 16/25] selftests: netfilter: check icmp pkttoobig errors are set as related

2019-05-06 Thread Sasha Levin
From: Florian Westphal [ Upstream commit becf2319f320cae43e20cf179cc51a355a0deb5f ] When an icmp error such as pkttoobig is received, conntrack checks if the "inner" header (header of packet that did not fit link mtu) is matches an existing connection, and, if so, sets that packet as being

[PATCH AUTOSEL 4.9 15/25] init: initialize jump labels before command line option parsing

2019-05-06 Thread Sasha Levin
From: Dan Williams [ Upstream commit 6041186a32585fc7a1d0f6cfe2f138b05fdc3c82 ] When a module option, or core kernel argument, toggles a static-key it requires jump labels to be initialized early. While x86, PowerPC, and ARM64 arrange for jump_label_init() to be called before parse_args(), ARM

[PATCH AUTOSEL 4.9 10/25] s390/3270: fix lockdep false positive on view->lock

2019-05-06 Thread Sasha Levin
From: Martin Schwidefsky [ Upstream commit 5712f3301a12c0c3de9cc423484496b0464f2faf ] The spinlock in the raw3270_view structure is used by con3270, tty3270 and fs3270 in different ways. For con3270 the lock can be acquired in irq context, for tty3270 and fs3270 the highest context is bh.

[PATCH AUTOSEL 4.9 09/25] Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ

2019-05-06 Thread Sasha Levin
From: Anson Huang [ Upstream commit bf2a7ca39fd3ab47ef71c621a7ee69d1813b1f97 ] SNVS IRQ is requested before necessary driver data initialized, if there is a pending IRQ during driver probe phase, kernel NULL pointer panic will occur in IRQ handler. To avoid such scenario, just initialize

[PATCH AUTOSEL 4.9 12/25] x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T

2019-05-06 Thread Sasha Levin
From: Jian-Hong Pan [ Upstream commit 0082517fa4bce073e7cf542633439f26538a14cc ] Upon reboot, the Acer TravelMate X514-51T laptop appears to complete the shutdown process, but then it hangs in BIOS POST with a black screen. The problem is intermittent - at some points it has appeared related

[PATCH AUTOSEL 4.9 05/25] HID: input: add mapping for "Toggle Display" key

2019-05-06 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit c01908a14bf735b871170092807c618bb9dae654 ] According to HUT 1.12 usage 0xb5 from the generic desktop page is reserved for switching between external and internal display, so let's add the mapping. Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha

[PATCH AUTOSEL 4.14 87/95] f2fs: fix to data block override node segment by mistake

2019-05-06 Thread Sasha Levin
From: zhengliang [ Upstream commit a0770e13c8da83bdb64738c0209ab02dd3cfff8b ] v4: Rearrange the previous three versions. The following scenario could lead to data block override by mistake. TASK A| TASK kworker| TASK B

[PATCH AUTOSEL 4.14 89/95] mlxsw: spectrum_switchdev: Add MDB entries in prepare phase

2019-05-06 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit d4d0e40977ac450f32f2db5e4d8e23c9d2578899 ] The driver cannot guarantee in the prepare phase that it will be able to write an MDB entry to the device. In case the driver returned success during the prepare phase, but then failed to add the entry in the commit

[PATCH AUTOSEL 4.14 77/95] gtp: change NET_UDP_TUNNEL dependency to select

2019-05-06 Thread Sasha Levin
From: Matteo Croce [ Upstream commit c22da36688d6298f2e546dcc43fdc1ad35036467 ] Similarly to commit a7603ac1fc8c ("geneve: change NET_UDP_TUNNEL dependency to select"), GTP has a dependency on NET_UDP_TUNNEL which makes impossible to compile it if no other protocol depending on NET_UDP_TUNNEL

[PATCH AUTOSEL 4.14 78/95] ACPICA: Namespace: remove address node from global list after method termination

2019-05-06 Thread Sasha Levin
From: Erik Schmauss [ Upstream commit c5781ffbbd4f742a58263458145fe7f0ac01d9e0 ] ACPICA commit b233720031a480abd438f2e9c643080929d144c3 ASL operation_regions declare a range of addresses that it uses. In a perfect world, the range of addresses should be used exclusively by the AML interpreter.

[PATCH AUTOSEL 4.14 80/95] Input: elan_i2c - add hardware ID for multiple Lenovo laptops

2019-05-06 Thread Sasha Levin
From: KT Liao [ Upstream commit 738c06d0e4562e0acf9f2c7438a22b2d5afc67aa ] There are many Lenovo laptops which need elan_i2c support, this patch adds relevant IDs to the Elan driver so that touchpads are recognized. Signed-off-by: KT Liao Cc: sta...@vger.kernel.org Signed-off-by: Dmitry

[PATCH AUTOSEL 4.14 79/95] x86/asm: Remove dead __GNUC__ conditionals

2019-05-06 Thread Sasha Levin
From: Rasmus Villemoes [ Upstream commit 88ca66d8540ca26119b1428cddb96b37925bdf01 ] The minimum supported gcc version is >= 4.6, so these can be removed. Signed-off-by: Rasmus Villemoes Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Dan Williams Cc: Geert Uytterhoeven Cc: Ingo

[PATCH AUTOSEL 4.14 83/95] cifs: fix memory leak in SMB2_read

2019-05-06 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit 05fd5c2c61732152a6bddc318aae62d7e436629b ] Commit 088aaf17aa79300cab14dbee2569c58cfafd7d6e introduced a leak where if SMB2_read() returned an error we would return without freeing the request buffer. Cc: Stable Signed-off-by: Ronnie Sahlberg

[PATCH AUTOSEL 4.14 66/95] leds: pwm: silently error out on EPROBE_DEFER

2019-05-06 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 9aec30371fb095a0c9415f3f0146ae269c3713d8 ] When probing, if we fail to get the pwm due to probe deferal, we shouldn't print an error message. Just be silent in this case. Signed-off-by: Jerome Brunet Signed-off-by: Jacek Anaszewski Signed-off-by: Sasha

[PATCH AUTOSEL 4.14 71/95] Revert "mm, memory_hotplug: initialize struct pages for the full memory section"

2019-05-06 Thread Sasha Levin
From: Michal Hocko [ Upstream commit 4aa9fc2a435abe95a1e8d7f8c7b3d6356514b37a ] This reverts commit 2830bf6f05fb3e05bc4743274b806c821807a684. The underlying assumption that one sparse section belongs into a single numa node doesn't hold really. Robert Shteynfeld has reported a boot failure.

[PATCH AUTOSEL 4.14 60/95] x86/vdso: Pass --eh-frame-hdr to the linker

2019-05-06 Thread Sasha Levin
From: Alistair Strachan [ Upstream commit cd01544a268ad8ee5b1dfe42c4393f1095f86879 ] Commit 379d98ddf413 ("x86: vdso: Use $LD instead of $CC to link") accidentally broke unwinding from userspace, because ld would strip the .eh_frame sections when linking. Originally, the compiler would

[PATCH AUTOSEL 4.14 67/95] drm/rockchip: psr: do not dereference encoder before it is null checked.

2019-05-06 Thread Sasha Levin
From: Enric Balletbo i Serra [ Upstream commit 4eda776c3cefcb1f01b2d85bd8753f67606282b5 ] 'encoder' is dereferenced before it is null sanity checked, hence we potentially have a null pointer dereference bug. Instead, initialise drm_drv from encoder->dev->dev_private after we are sure 'encoder'

[PATCH AUTOSEL 4.14 24/95] ipvs: do not schedule icmp errors from tunnels

2019-05-06 Thread Sasha Levin
From: Julian Anastasov [ Upstream commit 0261ea1bd1eb0da5c0792a9119b8655cf33c80a3 ] We can receive ICMP errors from client or from tunneling real server. While the former can be scheduled to real server, the latter should not be scheduled, they are decapsulated only when existing connection is

[PATCH AUTOSEL 4.14 34/95] Input: synaptics-rmi4 - fix possible double free

2019-05-06 Thread Sasha Levin
From: Pan Bian [ Upstream commit bce1a78423961fce676ac65540a31b6ffd179e6d ] The RMI4 function structure has been released in rmi_register_function if error occurs. However, it will be released again in the function rmi_create_function, which may result in a double-free bug. Signed-off-by: Pan

Re: [PATCH 2/2] dmaengine: milbeaut: Add Milbeaut AXI DMA controller

2019-05-06 Thread Kazuhiro Kasai
Thank you very much for reviewing my patch. Sorry for my late reply. Japan was in Spring Vacation. On Fri, Apr 26, 2019 at 17:16 +0530, Vinod Koul wrote: > On 25-03-19, 13:15, Kazuhiro Kasai wrote: > > Add Milbeaut AXI DMA controller. This DMA controller has > > only capable of memory to memory

[PATCH AUTOSEL 4.14 25/95] netfilter: ctnetlink: don't use conntrack/expect object addresses as id

2019-05-06 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 3c79107631db1f7fd32cf3f7368e4672004a3010 ] else, we leak the addresses to userspace via ctnetlink events and dumps. Compute an ID on demand based on the immutable parts of nf_conn struct. Another advantage compared to using an address is that there is

[PATCH AUTOSEL 4.14 52/95] media: ov5640: fix auto controls values when switching to manual mode

2019-05-06 Thread Sasha Levin
From: Hugues Fruchet [ Upstream commit a8f438c684eaa4cbe6c98828eb996d5ec53e24fb ] When switching from auto to manual mode, V4L2 core is calling g_volatile_ctrl() in manual mode in order to get the manual initial value. Remove the manual mode check/return to not break this behaviour.

[PATCH AUTOSEL 4.14 27/95] s390: ctcm: fix ctcm_new_device error return code

2019-05-06 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 27b141fc234a3670d21bd742c35d7205d03cbb3a ] clang points out that the return code from this function is undefined for one of the error paths: ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used uninitialized whenever 'if' condition

[PATCH AUTOSEL 4.14 32/95] spi: Micrel eth switch: declare missing of table

2019-05-06 Thread Sasha Levin
From: Daniel Gomez [ Upstream commit 2f23a2a768bee7ad2ff1e9527c3f7e279e794a46 ] Add missing table for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo drivers/net/phy/spi_ks8995.ko | grep alias alias: spi:ksz8795

[PATCH AUTOSEL 4.14 21/95] mm: fix inactive list balancing between NUMA nodes and cgroups

2019-05-06 Thread Sasha Levin
From: Johannes Weiner [ Upstream commit 3b991208b897f52507168374033771a984b947b1 ] During !CONFIG_CGROUP reclaim, we expand the inactive list size if it's thrashing on the node that is about to be reclaimed. But when cgroups are enabled, we suddenly ignore the node scope and use the cgroup

[PATCH AUTOSEL 4.14 40/95] IB/rxe: Revise the ib_wr_opcode enum

2019-05-06 Thread Sasha Levin
From: Jason Gunthorpe [ Upstream commit 9a59739bd01f77db6fbe2955a4fce165f0f43568 ] This enum has become part of the uABI, as both RXE and the ib_uverbs_post_send() command expect userspace to supply values from this enum. So it should be properly placed in include/uapi/rdma. In userspace this

[PATCH AUTOSEL 4.14 22/95] init: initialize jump labels before command line option parsing

2019-05-06 Thread Sasha Levin
From: Dan Williams [ Upstream commit 6041186a32585fc7a1d0f6cfe2f138b05fdc3c82 ] When a module option, or core kernel argument, toggles a static-key it requires jump labels to be initialized early. While x86, PowerPC, and ARM64 arrange for jump_label_init() to be called before parse_args(), ARM

[PATCH AUTOSEL 4.14 28/95] drm/sun4i: Set device driver data at bind time for use in unbind

2019-05-06 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit 02b92adbe33e6dbd15dc6e32540b22f47c4ff0a2 ] Our sun4i_drv_unbind gets the drm device using dev_get_drvdata. However, that driver data is never set in sun4i_drv_bind. Set it there to avoid getting a NULL pointer at unbind time. Fixes: 9026e0d122ac

[PATCH AUTOSEL 4.14 12/95] Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ

2019-05-06 Thread Sasha Levin
From: Anson Huang [ Upstream commit bf2a7ca39fd3ab47ef71c621a7ee69d1813b1f97 ] SNVS IRQ is requested before necessary driver data initialized, if there is a pending IRQ during driver probe phase, kernel NULL pointer panic will occur in IRQ handler. To avoid such scenario, just initialize

[PATCH AUTOSEL 4.14 13/95] s390/3270: fix lockdep false positive on view->lock

2019-05-06 Thread Sasha Levin
From: Martin Schwidefsky [ Upstream commit 5712f3301a12c0c3de9cc423484496b0464f2faf ] The spinlock in the raw3270_view structure is used by con3270, tty3270 and fs3270 in different ways. For con3270 the lock can be acquired in irq context, for tty3270 and fs3270 the highest context is bh.

[PATCH AUTOSEL 4.14 20/95] tools lib traceevent: Fix missing equality check for strcmp

2019-05-06 Thread Sasha Levin
From: Rikard Falkeborn [ Upstream commit f32c2877bcb068a718bb70094cd59ccc29d4d082 ] There was a missing comparison with 0 when checking if type is "s64" or "u64". Therefore, the body of the if-statement was entered if "type" was "u64" or not "s64", which made the first strcmp() redundant since

[PATCH AUTOSEL 4.14 16/95] s390/pkey: add one more argument space for debug feature entry

2019-05-06 Thread Sasha Levin
From: Harald Freudenberger [ Upstream commit 6b1f16ba730d4c0cda1247568c3a1bf4fa3a2f2f ] The debug feature entries have been used with up to 5 arguents (including the pointer to the format string) but there was only space reserved for 4 arguemnts. So now the registration does reserve space for 5

[PATCH AUTOSEL 4.14 01/95] iio: adc: xilinx: fix potential use-after-free on remove

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 62039b6aef63380ba7a37c113bbaeee8a55c5342 ] When cancel_delayed_work() returns, the delayed work may still be running. This means that the core could potentially free the private structure (struct xadc) while the delayed work is still using it. This is a

[PATCH AUTOSEL 4.19 80/81] nfc: nci: Potential off by one in ->pipes[] array

2019-05-06 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 6491d698396fd5da4941980a35ca7c162a672016 ] This is similar to commit e285d5bfb7e9 ("NFC: Fix the number of pipes") where we changed NFC_HCI_MAX_PIPES from 127 to 128. As the comment next to the define explains, the pipe identifier is 7 bits long. The

[PATCH AUTOSEL 4.19 75/81] mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue

2019-05-06 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 4af0699782e2cc7d0d89db9eb6f8844dd3df82dc ] The ordered workqueue is used to offload various objects such as routes and neighbours in the order they are notified. It should not be called as part of memory reclaim path, so remove the WQ_MEM_RECLAIM flag. This

[PATCH AUTOSEL 4.14 11/95] nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands

2019-05-06 Thread Sasha Levin
From: Sunil Dutt [ Upstream commit d6db02a88a4aaa1cd7105137c67ddec7f3bdbc05 ] This commit adds NL80211_FLAG_CLEAR_SKB flag to other NL commands that carry key data to ensure they do not stick around on heap after the SKB is freed. Also introduced this flag for NL80211_CMD_VENDOR as there are

[PATCH AUTOSEL 4.19 33/81] KVM: x86: Raise #GP when guest vCPU do not support PMU

2019-05-06 Thread Sasha Levin
From: Liran Alon [ Upstream commit 672ff6cff80ca43bf3258410d2b887036969df5f ] Before this change, reading a VMware pseduo PMC will succeed even when PMU is not supported by guest. This can easily be seen by running kvm-unit-test vmware_backdoors with "-cpu host,-pmu" option. Reviewed-by: Mihai

[PATCH AUTOSEL 4.19 66/81] net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode

2019-05-06 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 5ceaeb99ffb4dc002d20f6ac243c19a85e2c7a76 ] This patches fixes few issues in mv88e6390x_port_set_cmode(). 1. When entering the function the old cmode may be 0, in this case mv88e6390x_serdes_get_lane() returns -ENODEV. As result we bail out and have

[PATCH AUTOSEL 4.19 47/81] MIPS: perf: ath79: Fix perfcount IRQ assignment

2019-05-06 Thread Sasha Levin
From: Petr Štetiar [ Upstream commit a1e8783db8e0d58891681bc1e6d9ada66eae8e20 ] Currently it's not possible to use perf on ath79 due to genirq flags mismatch happening on static virtual IRQ 13 which is used for performance counters hardware IRQ 5. On TP-Link Archer C7v5: CPU0 2:

[PATCH AUTOSEL 4.19 68/81] usb: typec: Fix unchecked return value

2019-05-06 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit e82adc1074a7356f1158233551df9e86b7ebfb82 ] Currently there is no check on platform_get_irq() return value in case it fails, hence never actually reporting any errors and causing unexpected behavior when using such value as argument for function

[PATCH AUTOSEL 4.19 60/81] Input: synaptics-rmi4 - fix possible double free

2019-05-06 Thread Sasha Levin
From: Pan Bian [ Upstream commit bce1a78423961fce676ac65540a31b6ffd179e6d ] The RMI4 function structure has been released in rmi_register_function if error occurs. However, it will be released again in the function rmi_create_function, which may result in a double-free bug. Signed-off-by: Pan

[PATCH AUTOSEL 4.19 57/81] spi: ST ST95HF NFC: declare missing of table

2019-05-06 Thread Sasha Levin
From: Daniel Gomez [ Upstream commit d04830531d0c4a99c897a44038e5da3d23331d2f ] Add missing table for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo drivers/nfc/st95hf/st95hf.ko | grep alias alias: spi:st95hf After

[PATCH AUTOSEL 4.19 38/81] ocelot: Don't sleep in atomic context (irqs_disabled())

2019-05-06 Thread Sasha Levin
From: Claudiu Manoil [ Upstream commit a8fd48b50deaa20808bbf0f6685f6f1acba6a64c ] Preemption disabled at: [] dev_set_rx_mode+0x1c/0x38 Call trace: [] dump_backtrace+0x0/0x3d0 [] show_stack+0x14/0x20 [] dump_stack+0xac/0xe4 [] ___might_sleep+0x164/0x238 [] __might_sleep+0x50/0x88 []

[PATCH AUTOSEL 4.19 55/81] ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled

2019-05-06 Thread Sasha Levin
From: Tigran Tadevosyan [ Upstream commit c3143967807adb1357c36b68a7563fc0c4e1f615 ] When CONFIG_ARM_MPU is not defined, the base address of v7M SCB register is not initialized with correct value. This prevents enabling I/D caches when the L1 cache poilcy is applied in kernel. Fixes:

[PATCH AUTOSEL 4.19 45/81] netfilter: ctnetlink: don't use conntrack/expect object addresses as id

2019-05-06 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 3c79107631db1f7fd32cf3f7368e4672004a3010 ] else, we leak the addresses to userspace via ctnetlink events and dumps. Compute an ID on demand based on the immutable parts of nf_conn struct. Another advantage compared to using an address is that there is

[PATCH AUTOSEL 4.19 42/81] init: initialize jump labels before command line option parsing

2019-05-06 Thread Sasha Levin
From: Dan Williams [ Upstream commit 6041186a32585fc7a1d0f6cfe2f138b05fdc3c82 ] When a module option, or core kernel argument, toggles a static-key it requires jump labels to be initialized early. While x86, PowerPC, and ARM64 arrange for jump_label_init() to be called before parse_args(), ARM

[PATCH AUTOSEL 4.19 34/81] KVM: fix spectrev1 gadgets

2019-05-06 Thread Sasha Levin
From: Paolo Bonzini [ Upstream commit 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c ] These were found with smatch, and then generalized when applicable. Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- arch/x86/kvm/lapic.c | 4 +++- include/linux/kvm_host.h | 10 ++

[PATCH AUTOSEL 4.19 36/81] tools lib traceevent: Fix missing equality check for strcmp

2019-05-06 Thread Sasha Levin
From: Rikard Falkeborn [ Upstream commit f32c2877bcb068a718bb70094cd59ccc29d4d082 ] There was a missing comparison with 0 when checking if type is "s64" or "u64". Therefore, the body of the if-statement was entered if "type" was "u64" or not "s64", which made the first strcmp() redundant since

[PATCH AUTOSEL 4.19 62/81] RDMA/hns: Bugfix for mapping user db

2019-05-06 Thread Sasha Levin
From: Lijun Ou [ Upstream commit 2557fabd6e29f349bfa0ac13f38ac98aa5eafc74 ] When the maximum send wr delivered by the user is zero, the qp does not have a sq. When allocating the sq db buffer to store the user sq pi pointer and map it to the kernel mode, max_send_wr is used as the trigger

[PATCH AUTOSEL 4.19 63/81] mm/memory_hotplug.c: drop memory device reference after find_memory_block()

2019-05-06 Thread Sasha Levin
From: David Hildenbrand [ Upstream commit 89c02e69fc5245f8a2f34b58b42d43a737af1a5e ] Right now we are using find_memory_block() to get the node id for the pfn range to online. We are missing to drop a reference to the memory block device. While the device still gets unregistered via

[PATCH AUTOSEL 4.19 29/81] s390/pkey: add one more argument space for debug feature entry

2019-05-06 Thread Sasha Levin
From: Harald Freudenberger [ Upstream commit 6b1f16ba730d4c0cda1247568c3a1bf4fa3a2f2f ] The debug feature entries have been used with up to 5 arguents (including the pointer to the format string) but there was only space reserved for 4 arguemnts. So now the registration does reserve space for 5

[PATCH AUTOSEL 4.19 48/81] s390: ctcm: fix ctcm_new_device error return code

2019-05-06 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 27b141fc234a3670d21bd742c35d7205d03cbb3a ] clang points out that the return code from this function is undefined for one of the error paths: ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used uninitialized whenever 'if' condition

[PATCH AUTOSEL 4.19 41/81] mm: fix inactive list balancing between NUMA nodes and cgroups

2019-05-06 Thread Sasha Levin
From: Johannes Weiner [ Upstream commit 3b991208b897f52507168374033771a984b947b1 ] During !CONFIG_CGROUP reclaim, we expand the inactive list size if it's thrashing on the node that is about to be reclaimed. But when cgroups are enabled, we suddenly ignore the node scope and use the cgroup

[PATCH AUTOSEL 5.0 82/99] spi: Micrel eth switch: declare missing of table

2019-05-06 Thread Sasha Levin
From: Daniel Gomez [ Upstream commit 2f23a2a768bee7ad2ff1e9527c3f7e279e794a46 ] Add missing table for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo drivers/net/phy/spi_ks8995.ko | grep alias alias: spi:ksz8795

[PATCH AUTOSEL 5.0 93/99] RDMA/hns: Bugfix for mapping user db

2019-05-06 Thread Sasha Levin
From: Lijun Ou [ Upstream commit 2557fabd6e29f349bfa0ac13f38ac98aa5eafc74 ] When the maximum send wr delivered by the user is zero, the qp does not have a sq. When allocating the sq db buffer to store the user sq pi pointer and map it to the kernel mode, max_send_wr is used as the trigger

[PATCH AUTOSEL 5.0 81/99] ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled

2019-05-06 Thread Sasha Levin
From: Tigran Tadevosyan [ Upstream commit c3143967807adb1357c36b68a7563fc0c4e1f615 ] When CONFIG_ARM_MPU is not defined, the base address of v7M SCB register is not initialized with correct value. This prevents enabling I/D caches when the L1 cache poilcy is applied in kernel. Fixes:

[PATCH AUTOSEL 5.0 86/99] x86/mm: Fix a crash with kmemleak_scan()

2019-05-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit 0d02113b31b2017dd349ec9df2314e798a90fa6e ] The first kmemleak_scan() call after boot would trigger the crash below because this callpath: kernel_init free_initmem mem_encrypt_free_decrypted_mem free_init_pages unmaps memory inside the .bss

[PATCH AUTOSEL 5.0 97/99] net: sched: fix cleanup NULL pointer exception in act_mirr

2019-05-06 Thread Sasha Levin
From: John Hurley [ Upstream commit 064c5d6881e897077639e04973de26440ee205e6 ] A new mirred action is created by the tcf_mirred_init function. This contains a list head struct which is inserted into a global list on successful creation of a new action. However, after a creation, it is still

[PATCH AUTOSEL 4.19 01/81] iio: adc: xilinx: fix potential use-after-free on remove

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 62039b6aef63380ba7a37c113bbaeee8a55c5342 ] When cancel_delayed_work() returns, the delayed work may still be running. This means that the core could potentially free the private structure (struct xadc) while the delayed work is still using it. This is a

[PATCH AUTOSEL 5.0 89/99] Input: synaptics-rmi4 - fix possible double free

2019-05-06 Thread Sasha Levin
From: Pan Bian [ Upstream commit bce1a78423961fce676ac65540a31b6ffd179e6d ] The RMI4 function structure has been released in rmi_register_function if error occurs. However, it will be released again in the function rmi_create_function, which may result in a double-free bug. Signed-off-by: Pan

[PATCH AUTOSEL 5.0 72/99] selftests/net: correct the return value for run_netsocktests

2019-05-06 Thread Sasha Levin
From: Po-Hsu Lin [ Upstream commit 30c04d796b693e22405c38e9b78e9a364e4c77e6 ] The run_netsocktests will be marked as passed regardless the actual test result from the ./socket: selftests: net: run_netsocktests

[PATCH AUTOSEL 5.0 80/99] ARM: fix function graph tracer and unwinder dependencies

2019-05-06 Thread Sasha Levin
From: Russell King [ Upstream commit 503621628b32782a07b2318e4112bd4372aa3401 ] Naresh Kamboju recently reported that the function-graph tracer crashes on ARM. The function-graph tracer assumes that the kernel is built with frame pointers. We explicitly disabled the function-graph tracer when

[PATCH AUTOSEL 5.0 70/99] drm/sun4i: Fix component unbinding and component master deletion

2019-05-06 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit f5a9ed867c83875546c9aadd4ed8e785e9adcc3c ] For our component-backed driver to be properly removed, we need to delete the component master in sun4i_drv_remove and make sure to call component_unbind_all in the master's unbind so that all components are

[PATCH AUTOSEL 5.0 59/99] init: initialize jump labels before command line option parsing

2019-05-06 Thread Sasha Levin
From: Dan Williams [ Upstream commit 6041186a32585fc7a1d0f6cfe2f138b05fdc3c82 ] When a module option, or core kernel argument, toggles a static-key it requires jump labels to be initialized early. While x86, PowerPC, and ARM64 arrange for jump_label_init() to be called before parse_args(), ARM

[PATCH AUTOSEL 5.0 40/99] x86/build/lto: Fix truncated .bss with -fdata-sections

2019-05-06 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 6a03469a1edc94da52b65478f1e00837add869a3 ] With CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y, we compile the kernel with -fdata-sections, which also splits the .bss section. The new section, with a new .bss.* name, which pattern gets missed by the main x86

[PATCH AUTOSEL 5.0 46/99] KVM: nVMX: Expose RDPMC-exiting only when guest supports PMU

2019-05-06 Thread Sasha Levin
From: Liran Alon [ Upstream commit e51bfdb68725dc052d16241ace40ea3140f938aa ] Issue was discovered when running kvm-unit-tests on KVM running as L1 on top of Hyper-V. When vmx_instruction_intercept unit-test attempts to run RDPMC to test RDPMC-exiting, it is intercepted by L1 KVM which it's

[PATCH AUTOSEL 5.0 43/99] x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"

2019-05-06 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 780e0106d468a2962b16b52fdf42898f2639e0a0 ] Revert the following commit: 515ab7c41306: ("x86/mm: Align TLB invalidation info") I found out (the hard way) that under some .config options (notably L1_CACHE_SHIFT=7) and compiler combinations this on-stack

[PATCH AUTOSEL 5.0 45/99] KVM: x86: Raise #GP when guest vCPU do not support PMU

2019-05-06 Thread Sasha Levin
From: Liran Alon [ Upstream commit 672ff6cff80ca43bf3258410d2b887036969df5f ] Before this change, reading a VMware pseduo PMC will succeed even when PMU is not supported by guest. This can easily be seen by running kvm-unit-test vmware_backdoors with "-cpu host,-pmu" option. Reviewed-by: Mihai

[PATCH AUTOSEL 5.0 61/99] selftests: netfilter: check icmp pkttoobig errors are set as related

2019-05-06 Thread Sasha Levin
From: Florian Westphal [ Upstream commit becf2319f320cae43e20cf179cc51a355a0deb5f ] When an icmp error such as pkttoobig is received, conntrack checks if the "inner" header (header of packet that did not fit link mtu) is matches an existing connection, and, if so, sets that packet as being

[PATCH AUTOSEL 5.0 41/99] x86/mm: Prevent bogus warnings with "noexec=off"

2019-05-06 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 510bb96fe5b3480b4b22d815786377e54cb701e7 ] Xose Vazquez Perez reported boot warnings when NX is disabled on the kernel command line. __early_set_fixmap() triggers this warning: attempted to set unsupported pgprot:8163

[PATCH AUTOSEL 5.0 53/99] perf tools: Fix map reference counting

2019-05-06 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit b9abbdfa88024d52c8084d8f46ea4f161606c692 ] By calling maps__insert() we assume to get 2 references on the map, which we relese within maps__remove call. However if there's already same map name, we currently don't bump the reference and can crash, like:

[PATCH AUTOSEL 5.0 55/99] scsi: aic7xxx: fix EISA support

2019-05-06 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 144ec97493af34efdb77c5aba146e9c7de8d0a06 ] Instead of relying on the now removed NULL argument to pci_alloc_consistent, switch to the generic DMA API, and store the struct device so that we can pass it. Fixes: 4167b2ad5182 ("PCI: Remove NULL device

[PATCH AUTOSEL 5.0 54/99] x86/mm/KASLR: Fix the size of the direct mapping section

2019-05-06 Thread Sasha Levin
From: Baoquan He [ Upstream commit ec3937107ab43f3e8b2bc9dad95710043c462ff7 ] kernel_randomize_memory() uses __PHYSICAL_MASK_SHIFT to calculate the maximum amount of system RAM supported. The size of the direct mapping section is obtained from the smaller one of the below two values: (actual

[PATCH AUTOSEL 5.0 50/99] perf top: Always sample time to satisfy needs of use of ordered queuing

2019-05-06 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit 1e6db2ee86e6a4399fc0ae5689e55e0fd1c43caf ] Bastian reported broken 'perf top -p PID' command, it won't display any data. The problem is that for -p option we monitor single thread, so we don't enable time in samples, because it's not needed. However since

[PATCH AUTOSEL 5.0 21/99] s390/3270: fix lockdep false positive on view->lock

2019-05-06 Thread Sasha Levin
From: Martin Schwidefsky [ Upstream commit 5712f3301a12c0c3de9cc423484496b0464f2faf ] The spinlock in the raw3270_view structure is used by con3270, tty3270 and fs3270 in different ways. For con3270 the lock can be acquired in irq context, for tty3270 and fs3270 the highest context is bh.

[PATCH AUTOSEL 5.0 23/99] drm/amd/display: extending AUX SW Timeout

2019-05-06 Thread Sasha Levin
From: Martin Leung [ Upstream commit f4bbebf8e7eb4d294b040ab2d2ba71e70e69b930 ] [Why] AUX takes longer to reply when using active DP-DVI dongle on some asics resulting in up to 2000+ us edid read (timeout). [How] 1. Adjust AUX poll to match spec 2. Extend the SW timeout. This does not affect

[PATCH AUTOSEL 5.0 25/99] clocksource/drivers/oxnas: Fix OX820 compatible

2019-05-06 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit fbc87aa0f7c42dc31f1bac3b2615008cac32 ] The OX820 compatible is wrong is the driver, fix it. Fixes: 2ea3401e2a84 ("clocksource/drivers/oxnas: Add OX820 compatible") Reported-by: Daniel Golle Signed-off-by: Neil Armstrong Signed-off-by: Daniel Lezcano

[PATCH AUTOSEL 5.0 17/99] Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ

2019-05-06 Thread Sasha Levin
From: Anson Huang [ Upstream commit bf2a7ca39fd3ab47ef71c621a7ee69d1813b1f97 ] SNVS IRQ is requested before necessary driver data initialized, if there is a pending IRQ during driver probe phase, kernel NULL pointer panic will occur in IRQ handler. To avoid such scenario, just initialize

[PATCH AUTOSEL 5.0 20/99] mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode

2019-05-06 Thread Sasha Levin
From: Alexander Wetzel [ Upstream commit 78ad2341521d5ea96cb936244ed4c4c4ef9ec13b ] Restore SW_CRYPTO_CONTROL operation on AP_VLAN interfaces for unicast keys, the original override was intended to be done for group keys as those are treated specially by mac80211 and would always have been

[PATCH AUTOSEL 5.0 24/99] clocksource/drivers/npcm: select TIMER_OF

2019-05-06 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 99834eead2a04e93a120abb112542b87c42ff5e1 ] When this is disabled, we get a link failure: drivers/clocksource/timer-npcm7xx.o: In function `npcm7xx_timer_init': timer-npcm7xx.c:(.init.text+0xf): undefined reference to `timer_of_init' Fixes: 1c00289ecd12

[PATCH AUTOSEL 5.0 19/99] tools/testing/nvdimm: Retain security state after overwrite

2019-05-06 Thread Sasha Levin
From: Dave Jiang [ Upstream commit 2170a0d53bee1a6c1a4ebd042f99d85aafc6c0ea ] Overwrite retains the security state after completion of operation. Fix nfit_test to reflect this so that the kernel can test the behavior it is more likely to see in practice. Fixes: 926f74802cb1

[PATCH AUTOSEL 5.0 16/99] libnvdimm/security: provide fix for secure-erase to use zero-key

2019-05-06 Thread Sasha Levin
From: Dave Jiang [ Upstream commit 037c8489ade669e0f09ad40d5b91e5e1159a14b1 ] Add a zero key in order to standardize hardware that want a key of 0's to be passed. Some platforms defaults to a zero-key with security enabled rather than allow the OS to enable the security. The zero key would

[PATCH AUTOSEL 5.0 26/99] selftests: fib_tests: Fix 'Command line is not complete' errors

2019-05-06 Thread Sasha Levin
From: David Ahern [ Upstream commit a5f622984a623df9a84cf43f6b098d8dd76fbe05 ] A couple of tests are verifying a route has been removed. The helper expects the prefix as the first part of the expected output. When checking that a route has been deleted the prefix is empty leading to an invalid

[PATCH AUTOSEL 5.0 32/99] afs: Fix in-progess ops to ignore server-level callback invalidation

2019-05-06 Thread Sasha Levin
From: David Howells [ Upstream commit eeba1e9cf31d064284dd1fa7bd6cfe01395bd03d ] The in-kernel afs filesystem client counts the number of server-level callback invalidation events (CB.InitCallBackState* RPC operations) that it receives from the server. This is stored in cb_s_break in various

[PATCH AUTOSEL 5.0 02/99] iio: adc: xilinx: fix potential use-after-free on probe

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 862e4644fd2d7df8998edc65e0963ea2f567bde9 ] If probe errors out after request_irq(), its error path does not explicitly cancel the delayed work, which may have been scheduled by the interrupt handler. This means the delayed work may still be running

[PATCH AUTOSEL 5.0 03/99] iio: adc: xilinx: prevent touching unclocked h/w on remove

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 2e4b88f73966adead360e47621df0183586fac32 ] In remove, the clock is disabled before canceling the delayed work. This means that the delayed work may be touching unclocked hardware. Fix by disabling the clock after the delayed work is fully canceled.

[PATCH AUTOSEL 5.0 01/99] iio: adc: xilinx: fix potential use-after-free on remove

2019-05-06 Thread Sasha Levin
From: Sven Van Asbroeck [ Upstream commit 62039b6aef63380ba7a37c113bbaeee8a55c5342 ] When cancel_delayed_work() returns, the delayed work may still be running. This means that the core could potentially free the private structure (struct xadc) while the delayed work is still using it. This is a

Re: [alsa-devel] [RFC PATCH 1/7] soundwire: Add sysfs support for master(s)

2019-05-06 Thread Vinod Koul
On 06-05-19, 21:24, Pierre-Louis Bossart wrote: > > > > +int sdw_sysfs_bus_init(struct sdw_bus *bus) > > > +{ > > > + struct sdw_master_sysfs *master; > > > + int err; > > > + > > > + if (bus->sysfs) { > > > + dev_err(bus->dev, "SDW sysfs is already initialized\n"); > > > + return

Re: [PATCH v3 04/10] dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC

2019-05-06 Thread Nicolas Boichat
On Fri, May 3, 2019 at 6:34 PM Hsin-Hsiung Wang wrote: > > This adds compatible for the MediaTek MT6358 PMIC. > > Acked-for-MFD-by: Lee Jones > Signed-off-by: Hsin-Hsiung Wang > --- > Documentation/devicetree/bindings/mfd/mt6397.txt | 11 --- > 1 file changed, 8 insertions(+), 3

Re: [alsa-devel] [RFC PATCH 2/7] soundwire: add Slave sysfs support

2019-05-06 Thread Vinod Koul
On 06-05-19, 11:46, Pierre-Louis Bossart wrote: > On 5/6/19 11:22 AM, Vinod Koul wrote: > > On 06-05-19, 17:19, Greg KH wrote: > > > On Mon, May 06, 2019 at 09:42:35AM -0500, Pierre-Louis Bossart wrote: > > > > > > + > > > > > > +int sdw_sysfs_slave_init(struct sdw_slave *slave) > > > > > > +{ > >

Re: [PATCH v3 02/10] mfd: mt6397: extract irq related code from core driver

2019-05-06 Thread Nicolas Boichat
On Tue, May 7, 2019 at 2:11 PM Nicolas Boichat wrote: > > On Fri, May 3, 2019 at 6:33 PM Hsin-Hsiung Wang > wrote: > > > > In order to support different types of irq design, we decide to add > > separate irq drivers for different design and keep mt6397 mfd core > > simple and reusable to all

Re: [PATCH v3 02/10] mfd: mt6397: extract irq related code from core driver

2019-05-06 Thread Nicolas Boichat
On Fri, May 3, 2019 at 6:33 PM Hsin-Hsiung Wang wrote: > > In order to support different types of irq design, we decide to add > separate irq drivers for different design and keep mt6397 mfd core > simple and reusable to all generations of PMICs so far. > > Signed-off-by: Hsin-Hsiung Wang > ---

Re: [PATCH] arm64: add support for rng-seed

2019-05-06 Thread Hsin-Yi Wang
On Tue, May 7, 2019 at 12:54 PM Hsin-Yi Wang wrote: > > Introducing a chosen node, rng-seed, which is an 64 bytes entropy > that can be passed to kernel called very early to increase device > randomness. Bootloader should provide this entropy and the value is > read from /chosen/rng-seed in DT. >

RE: [PATCH v2] hv: tools: fixed Python pep8/flake8 warnings for lsvmbus

2019-05-06 Thread Dexuan Cui
> From: Adrian Vladu > Sent: Monday, May 6, 2019 10:34 AM > To: linux-kernel@vger.kernel.org > Cc: Adrian Vladu ; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger ; Sasha Levin ; > Dexuan Cui ; Alessandro Pilotti > > Subject: [PATCH v2] hv: tools: fixed Python pep8/flake8 warnings for

Re: [PATCH] HID: fix A4Tech horizontal scrolling

2019-05-06 Thread Peter Hutterer
On Fri, May 03, 2019 at 01:59:23PM +0200, Benjamin Tissoires wrote: > Hi, > > On Fri, May 3, 2019 at 11:43 AM Igor Kushnir wrote: > > > > Hi Benjamin, > > > > On 5/3/19 10:36 AM, Benjamin Tissoires wrote: > > > Hi, > > > > > > On Thu, May 2, 2019 at 11:37 PM Błażej Szczygieł wrote: > > >> > >

Re: [PATCH v2] HID: fix A4Tech horizontal scrolling

2019-05-06 Thread Peter Hutterer
On Fri, May 03, 2019 at 10:28:36PM +0200, Błażej Szczygieł wrote: > Since recent high resolution scrolling changes the A4Tech driver must > check for the "REL_WHEEL_HI_RES" usage code. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=203369 > Fixes: 2dc702c991e3774af9d7ce410eef410ca9e2357e

[PATCH] arm64: add support for rng-seed

2019-05-06 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an 64 bytes entropy that can be passed to kernel called very early to increase device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang ---

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