Re: [PATCH v5 4/4] mm: convert page kmemcg type to a page memcg flag

2020-10-05 Thread Shakeel Butt
On Fri, Oct 2, 2020 at 10:26 AM Roman Gushchin wrote: > > PageKmemcg flag is currently defined as a page type (like buddy, > offline, table and guard). Semantically it means that the page > was accounted as a kernel memory by the page allocator and has > to be uncharged on the release. > > As a si

Re: Is usb_hcd_giveback_urb() allowed in task context?

2020-10-05 Thread Andrey Konovalov
On Mon, Oct 5, 2020 at 5:18 PM Greg Kroah-Hartman wrote: > > On Mon, Oct 05, 2020 at 05:08:11PM +0200, Andrey Konovalov wrote: > > Dear USB and USB/IP maintainers, > > > > While fuzzing the USB/IP stack with syzkaller we've stumbled upon an issue. > > > > Currently kcov (the subsystem that is used

Re: Is usb_hcd_giveback_urb() allowed in task context?

2020-10-05 Thread Alan Stern
On Mon, Oct 05, 2020 at 05:08:11PM +0200, Andrey Konovalov wrote: > Dear USB and USB/IP maintainers, > > While fuzzing the USB/IP stack with syzkaller we've stumbled upon an issue. > > Currently kcov (the subsystem that is used for coverage collection) > USB-related callbacks assume that usb_hcd_

Re: [PATCH 2/2] driver core: platform: provide devm_platform_iounremap_resource

2020-10-05 Thread pierre kuo
hi Greg: > Why are you adding new functions but not actually calling them anywhere? Below patch introduce a single helper, devm_platform_ioremap_resource, which combines platform_get_resource() and devm_ioremap_resource(). But there is no single helper to release those resources in driver removing

Re: [PATCH v4 2/4] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

2020-10-05 Thread Mark Brown
On Tue, Sep 29, 2020 at 03:37:53PM +0800, Ikjoon Jang wrote: > Use dma_alloc_coherent() for bounce buffer instead of kmalloc() to > make sure the bounce buffer to be allocated within its DMAable range. This doesn't apply against current code, please check and resend. signature.asc Description: P

Re: [PATCH 03/11] arm64: dts: qcom: pm8994: Add thermal-zones for temp alarm

2020-10-05 Thread Daniel Lezcano
On 05/10/2020 17:03, Konrad Dybcio wrote: > This will shut down the platform in case the PMIC overheats. > > Signed-off-by: Konrad Dybcio > --- > arch/arm64/boot/dts/qcom/pm8994.dtsi | 24 > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm89

Re: Is usb_hcd_giveback_urb() allowed in task context?

2020-10-05 Thread Alan Stern
On Mon, Oct 05, 2020 at 05:21:30PM +0200, Andrey Konovalov wrote: > On Mon, Oct 5, 2020 at 5:18 PM Greg Kroah-Hartman > wrote: > > > > On Mon, Oct 05, 2020 at 05:08:11PM +0200, Andrey Konovalov wrote: > > > Dear USB and USB/IP maintainers, > > > > > > While fuzzing the USB/IP stack with syzkaller

[PATCH 4.19 08/38] vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock()

2020-10-05 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 4c7246dc45e2706770d5233f7ce1597a07e069ba ] We are going to add 'struct vsock_sock *' parameter to virtio_transport_get_ops(). In some cases, like in the virtio_transport_reset_no_sock(), we don't have any socket assigned to the packet received, so we c

[PATCH 4.19 02/38] USB: gadget: f_ncm: Fix NDP16 datagram validation

2020-10-05 Thread Greg Kroah-Hartman
From: Bryan O'Donoghue commit 2b405533c2560d7878199c57d95a39151351df72 upstream. commit 2b74b0a04d3e ("USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()") adds important bounds checking however it unfortunately also introduces a bug with respect to section 3.3.1 of the NCM specificatio

[PATCH 4.19 01/38] mmc: sdhci: Workaround broken command queuing on Intel GLK based IRBIS models

2020-10-05 Thread Greg Kroah-Hartman
From: Hans de Goede commit afd7f30886b0b445a4240a99020458a9772f2b89 upstream. Commit bedf9fc01ff1 ("mmc: sdhci: Workaround broken command queuing on Intel GLK"), disabled command-queuing on Intel GLK based LENOVO models because of it being broken due to what is believed to be a bug in the BIOS.

[PATCH 4.19 03/38] gpio: mockup: fix resource leak in error path

2020-10-05 Thread Greg Kroah-Hartman
From: Bartosz Golaszewski commit 1b02d9e770cd7087f34c743f85ccf5ea8372b047 upstream. If the module init function fails after creating the debugs directory, it's never removed. Add proper cleanup calls to avoid this resource leak. Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over

Re: [PATCH 1/1] ASoC: cs42l51: add soft dependency declaration

2020-10-05 Thread Mark Brown
On Mon, Oct 05, 2020 at 03:01:23PM +, Olivier MOYSAN wrote: > On 10/2/20 5:41 PM, Mark Brown wrote: > > On Fri, Oct 02, 2020 at 05:29:04PM +0200, Olivier Moysan wrote: > > > When configured as module, CS42L51 codec driver uses two modules > snd-soc-cs42l51 and snd-soc-cs42l51-i2c. > Add soft

[PATCH 4.19 04/38] gpio: tc35894: fix up tc35894 interrupt configuration

2020-10-05 Thread Greg Kroah-Hartman
From: dillon min commit 214b0e1ad01abf4c1f6d8d28fa096bf167e47cef upstream. The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] +

[PATCH 4.19 06/38] vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock

2020-10-05 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 9c7a5582f5d720dc35cfcc42ccaded69f0642e4a ] Some callbacks used by the upper layers can run while we are in the .remove(). A potential use-after-free can happen, because we free the_virtio_vsock without knowing if the callbacks are over or not. To solve

[PATCH 4.19 20/38] mac80211: do not allow bigger VHT MPDUs than the hardware supports

2020-10-05 Thread Greg Kroah-Hartman
From: Felix Fietkau [ Upstream commit 3bd5c7a28a7c3aba07a2d300d43f8e988809e147 ] Limit maximum VHT MPDU size by local capability. Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20200917125031.45009-1-...@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/

[PATCH 4.19 09/38] net: virtio_vsock: Enhance connection semantics

2020-10-05 Thread Greg Kroah-Hartman
From: Sebastien Boeuf [ Upstream commit df12eb6d6cd920ab2f0e0a43cd6e1c23a05cea91 ] Whenever the vsock backend on the host sends a packet through the RX queue, it expects an answer on the TX queue. Unfortunately, there is one case where the host side will hang waiting for the answer and might eff

[PATCH 4.19 18/38] drivers/net/wan/lapbether: Make skb->protocol consistent with the header

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 83f9a9c8c1edc222846dc1bde6e3479703e8e5a3 ] This driver is a virtual driver stacked on top of Ethernet interfaces. When this driver transmits data on the Ethernet device, the skb->protocol setting is inconsistent with the Ethernet header prepended to the skb. This

[PATCH 4.19 19/38] drivers/net/wan/hdlc: Set skb->protocol before transmitting

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 9fb030a70431a2a2a1b292dbf0b2f399cc072c16 ] This patch sets skb->protocol before transmitting frames on the HDLC device, so that a user listening on the HDLC device with an AF_PACKET socket will see outgoing frames' sll_protocol field correctly set and consistent wi

[PATCH 4.19 27/38] iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate()

2020-10-05 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 1a26044954a6d1f4d375d5e62392446af663be7a ] if of_find_device_by_node() succeed, exynos_iommu_of_xlate() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: aa759fd376fb ("iommu/ex

[PATCH 4.19 17/38] nvme-core: get/put ctrl and transport module in nvme_dev_open/release()

2020-10-05 Thread Greg Kroah-Hartman
From: Chaitanya Kulkarni [ Upstream commit 52a3974feb1a3eec25d8836d37a508b67b0a9cd0 ] Get and put the reference to the ctrl in the nvme_dev_open() and nvme_dev_release() before and after module get/put for ctrl in char device file operations. Introduce char_dev relase function, get/put the cont

[PATCH 4.19 24/38] pinctrl: mvebu: Fix i2c sda definition for 98DX3236

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 63c3212e7a37d68c89a13bdaebce869f4e064e67 ] Per the datasheet the i2c functions use MPP_Sel=0x1. They are documented as using MPP_Sel=0x4 as well but mixing 0x1 and 0x4 is clearly wrong. On the board tested 0x4 resulted in a non-functioning i2c bus so stick w

[PATCH 4.19 05/38] clk: socfpga: stratix10: fix the divider for the emac_ptp_free_clk

2020-10-05 Thread Greg Kroah-Hartman
From: Dinh Nguyen commit b02cf0c4736c65c6667f396efaae6b5521e82abf upstream. The fixed divider the emac_ptp_free_clk should be 2, not 4. Fixes: 07afb8db7340 ("clk: socfpga: stratix10: add clock driver for Stratix10 platform") Cc: sta...@vger.kernel.org Signed-off-by: Dinh Nguyen Link: https://l

[PATCH 4.19 23/38] gpio: sprd: Clear interrupt when setting the type as edge

2020-10-05 Thread Greg Kroah-Hartman
From: Taiping Lai [ Upstream commit 5fcface659aab7eac4bd65dd116d98b8f7bb88d5 ] The raw interrupt status of GPIO maybe set before the interrupt is enabled, which would trigger the interrupt event once enabled it from user side. This is the case for edge interrupts only. Adding a clear operation w

[PATCH 4.19 00/38] 4.19.150-rc1 review

2020-10-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.150 release. There are 38 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 Oct 2020 14:20:55 +. Anything re

[PATCH 4.19 21/38] spi: fsl-espi: Only process interrupts for expected events

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit b867eef4cf548cd9541225aadcdcee644669b9e1 ] The SPIE register contains counts for the TX FIFO so any time the irq handler was invoked we would attempt to process the RX/TX fifos. Use the SPIM value to mask the events so that we only process interrupts that we

[PATCH 4.19 22/38] nvme-fc: fail new connections to a deleted host or remote port

2020-10-05 Thread Greg Kroah-Hartman
From: James Smart [ Upstream commit 9e0e8dac985d4bd07d9e62922b9d189d3ca2fccf ] The lldd may have made calls to delete a remote port or local port and the delete is in progress when the cli then attempts to create a new controller. Currently, this proceeds without error although it can't be very

[PATCH 4.19 26/38] clk: samsung: exynos4: mark chipid clock as CLK_IGNORE_UNUSED

2020-10-05 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit f3bb0f796f5ffe32f0fbdce5b1b12eb85511158f ] The ChipID IO region has it's own clock, which is being disabled while scanning for unused clocks. It turned out that some CPU hotplug, CPU idle or even SOC firmware code depends on the reads from that area. Fix

[PATCH 4.19 30/38] random32: Restore __latent_entropy attribute on net_rand_state

2020-10-05 Thread Greg Kroah-Hartman
From: Thibaut Sautereau [ Upstream commit 09a6b0bc3be793ca8cba580b7992d73e9f68f15d ] Commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity") broke compilation and was temporarily fixed by Linus in 83bdc7275e62 ("random32: remove net_rand_state from the latent entr

[PATCH 4.19 32/38] mm: dont rely on system state to detect hot-plug operations

2020-10-05 Thread Greg Kroah-Hartman
From: Laurent Dufour commit f85086f95fa36194eb0db5cd5c12e56801b98523 upstream. In register_mem_sect_under_node() the system_state's value is checked to detect whether the call is made during boot time or during an hot-plug operation. Unfortunately, that check against SYSTEM_BOOTING is wrong bec

[PATCH 4.19 33/38] net/packet: fix overflow in tpacket_rcv

2020-10-05 Thread Greg Kroah-Hartman
From: Or Cohen commit acf69c946233259ab4d64f8869d4037a198c7f06 upstream. Using tp_reserve to calculate netoff can overflow as tp_reserve is unsigned int and netoff is unsigned short. This may lead to macoff receving a smaller value then sizeof(struct virtio_net_hdr), and if po->has_vnet_hdr is

[PATCH 4.19 31/38] mm: replace memmap_context by meminit_context

2020-10-05 Thread Greg Kroah-Hartman
From: Laurent Dufour commit c1d0da83358a2316d9be7f229f26126dbaa07468 upstream. Patch series "mm: fix memory to node bad links in sysfs", v3. Sometimes, firmware may expose interleaved memory layout like this: Early memory node ranges node 1: [mem 0x-0x00011fff]

[PATCH 4.19 34/38] epoll: do not insert into poll queues until all sanity checks are done

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit f8d4f44df056c5b504b0d49683fb7279218fd207 upstream. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1

[PATCH 4.19 14/38] drm/sun4i: mixer: Extend regmap max_register

2020-10-05 Thread Greg Kroah-Hartman
From: Martin Cerveny [ Upstream commit 74ea06164cda81dc80e97790164ca533fd7e3087 ] Better guess. Secondary CSC registers are from 0xF. Signed-off-by: Martin Cerveny Reviewed-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20200906162140

[PATCH 5.4 01/57] btrfs: fix filesystem corruption after a device replace

2020-10-05 Thread Greg Kroah-Hartman
From: Filipe Manana commit 4c8f353272dd1262013873990c0fafd0e3c8f274 upstream. We use a device's allocation state tree to track ranges in a device used for allocated chunks, and we set ranges in this tree when allocating a new chunk. However after a device replace operation, we were not setting t

[PATCH 5.4 05/57] gpio: mockup: fix resource leak in error path

2020-10-05 Thread Greg Kroah-Hartman
From: Bartosz Golaszewski commit 1b02d9e770cd7087f34c743f85ccf5ea8372b047 upstream. If the module init function fails after creating the debugs directory, it's never removed. Add proper cleanup calls to avoid this resource leak. Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over

[PATCH 5.4 09/57] net: virtio_vsock: Enhance connection semantics

2020-10-05 Thread Greg Kroah-Hartman
From: Sebastien Boeuf [ Upstream commit df12eb6d6cd920ab2f0e0a43cd6e1c23a05cea91 ] Whenever the vsock backend on the host sends a packet through the RX queue, it expects an answer on the TX queue. Unfortunately, there is one case where the host side will hang waiting for the answer and might eff

[PATCH 4.19 28/38] i2c: cpm: Fix i2c_ram structure

2020-10-05 Thread Greg Kroah-Hartman
From: Nicolas VINCENT [ Upstream commit a2bd970aa62f2f7f80fd0d212b1d4ccea5df4aed ] the i2c_ram structure is missing the sdmatmp field mentionned in datasheet for MPC8272 at paragraph 36.5. With this field missing, the hardware would write past the allocated memory done through cpm_muram_alloc fo

[PATCH 4.19 13/38] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 44a049c42681de71c783d75cd6e56b4e339488b0 ] PVC devices are virtual devices in this driver stacked on top of the actual HDLC device. They are the devices normal users would use. PVC devices have two types: normal PVC devices and Ethernet-emulating PVC devices. When

[PATCH 4.19 07/38] vsock/virtio: stop workers during the .remove()

2020-10-05 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 17dd1367389cfe7f150790c83247b68e0c19d106 ] Before to call vdev->config->reset(vdev) we need to be sure that no one is accessing the device, for this reason, we add new variables in the struct virtio_vsock to stop the workers during the .remove(). This

[PATCH 5.4 06/57] gpio: tc35894: fix up tc35894 interrupt configuration

2020-10-05 Thread Greg Kroah-Hartman
From: dillon min commit 214b0e1ad01abf4c1f6d8d28fa096bf167e47cef upstream. The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] +

[PATCH 5.4 02/57] mmc: sdhci: Workaround broken command queuing on Intel GLK based IRBIS models

2020-10-05 Thread Greg Kroah-Hartman
From: Hans de Goede commit afd7f30886b0b445a4240a99020458a9772f2b89 upstream. Commit bedf9fc01ff1 ("mmc: sdhci: Workaround broken command queuing on Intel GLK"), disabled command-queuing on Intel GLK based LENOVO models because of it being broken due to what is believed to be a bug in the BIOS.

[PATCH 4.19 16/38] rndis_host: increase sleep time in the query-response loop

2020-10-05 Thread Greg Kroah-Hartman
From: Olympia Giannou [ Upstream commit 4202c9fdf03d79dedaa94b2c4cf574f25793d669 ] Some WinCE devices face connectivity issues via the NDIS interface. They fail to register, resulting in -110 timeout errors and failures during the probe procedure. In this kind of WinCE devices, the Windows-side

[PATCH 5.4 08/57] vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock()

2020-10-05 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 4c7246dc45e2706770d5233f7ce1597a07e069ba ] We are going to add 'struct vsock_sock *' parameter to virtio_transport_get_ops(). In some cases, like in the virtio_transport_reset_no_sock(), we don't have any socket assigned to the packet received, so we c

[PATCH 4.19 29/38] Input: trackpoint - enable Synaptics trackpoints

2020-10-05 Thread Greg Kroah-Hartman
From: Vincent Huang [ Upstream commit 996d585b079ad494a30cac10e08585bcd5345125 ] Add Synaptics IDs in trackpoint_start_protocol() to mark them as valid. Signed-off-by: Vincent Huang Fixes: 6c77545af100 ("Input: trackpoint - add new trackpoint variant IDs") Reviewed-by: Harry Cutts Tested-by:

[PATCH 5.4 07/57] clk: socfpga: stratix10: fix the divider for the emac_ptp_free_clk

2020-10-05 Thread Greg Kroah-Hartman
From: Dinh Nguyen commit b02cf0c4736c65c6667f396efaae6b5521e82abf upstream. The fixed divider the emac_ptp_free_clk should be 2, not 4. Fixes: 07afb8db7340 ("clk: socfpga: stratix10: add clock driver for Stratix10 platform") Cc: sta...@vger.kernel.org Signed-off-by: Dinh Nguyen Link: https://l

[PATCH 5.4 28/57] tracing: Make the space reserved for the pid wider

2020-10-05 Thread Greg Kroah-Hartman
From: Sebastian Andrzej Siewior [ Upstream commit 795d6379a47bcbb88bd95a69920e4acc52849f88 ] For 64bit CONFIG_BASE_SMALL=0 systems PID_MAX_LIMIT is set by default to 4194304. During boot the kernel sets a new value based on number of CPUs but no lower than 32768. It is 1024 per CPU so with 128 C

[PATCH 5.4 29/57] tools/io_uring: fix compile breakage

2020-10-05 Thread Greg Kroah-Hartman
From: Douglas Gilbert [ Upstream commit 72f04da48a9828ba3ae8ac77bea648bda8b7d0ff ] It would seem none of the kernel continuous integration does this: $ cd tools/io_uring $ make Otherwise it may have noticed: cc -Wall -Wextra -g -D_GNU_SOURCE -c -o io_uring-bench.o io_uring

[PATCH 5.4 27/57] mac80211: do not allow bigger VHT MPDUs than the hardware supports

2020-10-05 Thread Greg Kroah-Hartman
From: Felix Fietkau [ Upstream commit 3bd5c7a28a7c3aba07a2d300d43f8e988809e147 ] Limit maximum VHT MPDU size by local capability. Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20200917125031.45009-1-...@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/

[PATCH 5.4 25/57] drivers/net/wan/hdlc: Set skb->protocol before transmitting

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 9fb030a70431a2a2a1b292dbf0b2f399cc072c16 ] This patch sets skb->protocol before transmitting frames on the HDLC device, so that a user listening on the HDLC device with an AF_PACKET socket will see outgoing frames' sll_protocol field correctly set and consistent wi

[PATCH 5.4 32/57] nvme-fc: fail new connections to a deleted host or remote port

2020-10-05 Thread Greg Kroah-Hartman
From: James Smart [ Upstream commit 9e0e8dac985d4bd07d9e62922b9d189d3ca2fccf ] The lldd may have made calls to delete a remote port or local port and the delete is in progress when the cli then attempts to create a new controller. Currently, this proceeds without error although it can't be very

[PATCH 5.4 12/57] iio: adc: qcom-spmi-adc5: fix driver name

2020-10-05 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov commit fdb29f4de1374483291232ae7515e5e7bb464762 upstream. Remove superfluous '.c' from qcom-spmi-adc5 device driver name. Fixes: e13d757279bb ("iio: adc: Add QCOM SPMI PMIC5 ADC driver") Signed-off-by: Dmitry Baryshkov Acked-by: Manivannan Sadhasivam Cc: Link: https://

Re: [PATCH] KVM: x86: filter guest NX capability for cpuid2

2020-10-05 Thread Vitaly Kuznetsov
Tianjia Zhang writes: > Original KVM_SET_CPUID has removed NX on non-NX hosts as it did > before. but KVM_SET_CPUID2 does not. The two should be consistent. > > Signed-off-by: Tianjia Zhang > --- > arch/x86/kvm/cpuid.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/kvm/cpuid.

[PATCH 5.4 38/57] clk: samsung: exynos4: mark chipid clock as CLK_IGNORE_UNUSED

2020-10-05 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit f3bb0f796f5ffe32f0fbdce5b1b12eb85511158f ] The ChipID IO region has it's own clock, which is being disabled while scanning for unused clocks. It turned out that some CPU hotplug, CPU idle or even SOC firmware code depends on the reads from that area. Fix

[PATCH 5.4 30/57] spi: fsl-espi: Only process interrupts for expected events

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit b867eef4cf548cd9541225aadcdcee644669b9e1 ] The SPIE register contains counts for the TX FIFO so any time the irq handler was invoked we would attempt to process the RX/TX fifos. Use the SPIM value to mask the events so that we only process interrupts that we

[PATCH 5.4 36/57] nfs: Fix security label length not being reset

2020-10-05 Thread Greg Kroah-Hartman
From: Jeffrey Mitchell [ Upstream commit d33030e2ee3508d65db5644551435310df86010e ] nfs_readdir_page_filler() iterates over entries in a directory, reusing the same security label buffer, but does not reset the buffer's length. This causes decode_attr_security_label() to return -ERANGE if an ent

[PATCH 5.4 40/57] gpio/aspeed-sgpio: enable access to all 80 input & output sgpios

2020-10-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit ac67b07e268d46eba675a60c37051bb3e59fd201 ] Currently, the aspeed-sgpio driver exposes up to 80 GPIO lines, corresponding to the 80 status bits available in hardware. Each of these lines can be configured as either an input or an output. However, each of these

[PATCH 5.4 26/57] mac80211: Fix radiotap header channel flag for 6GHz band

2020-10-05 Thread Greg Kroah-Hartman
From: Aloka Dixit [ Upstream commit 412a84b5714af56f3eb648bba155107b5edddfdf ] Radiotap header field 'Channel flags' has '2 GHz spectrum' set to 'true' for 6GHz packet. Change it to 5GHz as there isn't a separate option available for 6GHz. Signed-off-by: Aloka Dixit Link: https://lore.kernel.

[PATCH 5.4 37/57] clk: tegra: Always program PLL_E when enabled

2020-10-05 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 5105660ee80862b85f7769626d0f936c18ce1885 ] Commit bff1cef5f23a ("clk: tegra: Don't enable already enabled PLLs") added checks to avoid enabling PLLs that have already been enabled by the bootloader. However, the PLL_E configuration inherited from the bootlo

[PATCH 5.4 41/57] gpio/aspeed-sgpio: dont enable all interrupts by default

2020-10-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit bf0d394e885015941ed2d5724c0a6ed8d42dd95e ] Currently, the IRQ setup for the SGPIO driver enables all interrupts in dual-edge trigger mode. Since the default handler is handle_bad_irq, any state change on input GPIOs will trigger bad IRQ warnings. This change

[PATCH 5.4 21/57] rndis_host: increase sleep time in the query-response loop

2020-10-05 Thread Greg Kroah-Hartman
From: Olympia Giannou [ Upstream commit 4202c9fdf03d79dedaa94b2c4cf574f25793d669 ] Some WinCE devices face connectivity issues via the NDIS interface. They fail to register, resulting in -110 timeout errors and failures during the probe procedure. In this kind of WinCE devices, the Windows-side

[PATCH 5.4 16/57] clocksource/drivers/timer-gx6605s: Fixup counter reload

2020-10-05 Thread Greg Kroah-Hartman
From: Guo Ren [ Upstream commit bc6717d55d07110d8f3c6d31ec2af50c11b07091 ] When the timer counts to the upper limit, an overflow interrupt is generated, and the count is reset with the value in the TIME_INI register. But the software expects to start counting from 0 when the count overflows, so

[PATCH 5.4 13/57] ftrace: Move RCU is watching check after recursion check

2020-10-05 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit b40341fad6cc2daa195f8090fd3348f18fff640a upstream. The first thing that the ftrace function callback helper functions should do is to check for recursion. Peter Zijlstra found that when "rcu_is_watching()" had its notrace removed, it caused perf function trac

[PATCH 5.4 15/57] drm/amdgpu: restore proper ref count in amdgpu_display_crtc_set_config

2020-10-05 Thread Greg Kroah-Hartman
From: Jean Delvare commit a39d0d7bdf8c21ac7645c02e9676b5cb2b804c31 upstream. A recent attempt to fix a ref count leak in amdgpu_display_crtc_set_config() turned out to be doing too much and "fixed" an intended decrease as if it were a leak. Undo that part to restore the proper balance. This is t

[PATCH 5.4 19/57] drm/sun4i: mixer: Extend regmap max_register

2020-10-05 Thread Greg Kroah-Hartman
From: Martin Cerveny [ Upstream commit 74ea06164cda81dc80e97790164ca533fd7e3087 ] Better guess. Secondary CSC registers are from 0xF. Signed-off-by: Martin Cerveny Reviewed-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20200906162140

[PATCH 5.4 17/57] libbpf: Remove arch-specific include path in Makefile

2020-10-05 Thread Greg Kroah-Hartman
From: Naveen N. Rao [ Upstream commit 21e9ba5373fc2cec608fd68301a1dbfd14df3172 ] Ubuntu mainline builds for ppc64le are failing with the below error (*): CALL/home/kernel/COD/linux/scripts/atomic/check-atomics.sh DESCEND bpf/resolve_btfids Auto-detecting system features: ...

[PATCH 5.4 46/57] random32: Restore __latent_entropy attribute on net_rand_state

2020-10-05 Thread Greg Kroah-Hartman
From: Thibaut Sautereau [ Upstream commit 09a6b0bc3be793ca8cba580b7992d73e9f68f15d ] Commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity") broke compilation and was temporarily fixed by Linus in 83bdc7275e62 ("random32: remove net_rand_state from the latent entr

Re: [PATCH] usb: typec: tcpm: Fix if vbus before cc, hard_reset_count not reset issue

2020-10-05 Thread Guenter Roeck
On 10/5/20 4:08 AM, Greg KH wrote: [ ... ] >>> What ever happened with this patch, is there still disagreement? >>> >> >> Yes, there is. I wouldn't have added the conditional without reason, >> and I am concerned that removing it entirely will open another problem. >> Feel free to apply, though - I

[PATCH 5.4 44/57] Input: trackpoint - enable Synaptics trackpoints

2020-10-05 Thread Greg Kroah-Hartman
From: Vincent Huang [ Upstream commit 996d585b079ad494a30cac10e08585bcd5345125 ] Add Synaptics IDs in trackpoint_start_protocol() to mark them as valid. Signed-off-by: Vincent Huang Fixes: 6c77545af100 ("Input: trackpoint - add new trackpoint variant IDs") Reviewed-by: Harry Cutts Tested-by:

[PATCH 5.4 53/57] epoll: do not insert into poll queues until all sanity checks are done

2020-10-05 Thread Greg Kroah-Hartman
From: Al Viro commit f8d4f44df056c5b504b0d49683fb7279218fd207 upstream. Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/eventpoll.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1

[PATCH 5.4 10/57] xfs: trim IO to found COW extent limit

2020-10-05 Thread Greg Kroah-Hartman
From: Eric Sandeen A bug existed in the XFS reflink code between v5.1 and v5.5 in which the mapping for a COW IO was not trimmed to the mapping of the COW extent that was found. This resulted in a too-short copy, and corruption of other files which shared the original extent. (This happened onl

[PATCH 5.4 47/57] block/diskstats: more accurate approximation of io_ticks for slow disks

2020-10-05 Thread Greg Kroah-Hartman
From: Konstantin Khlebnikov commit 2b8bd423614c595540eaadcfbc702afe8e155e50 upstream. Currently io_ticks is approximated by adding one at each start and end of requests if jiffies counter has changed. This works perfectly for requests shorter than a jiffy or if one of requests starts/ends at eac

[PATCH 5.4 18/57] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-10-05 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 44a049c42681de71c783d75cd6e56b4e339488b0 ] PVC devices are virtual devices in this driver stacked on top of the actual HDLC device. They are the devices normal users would use. PVC devices have two types: normal PVC devices and Ethernet-emulating PVC devices. When

[PATCH 5.8 06/85] usbcore/driver: Fix specific driver selection

2020-10-05 Thread Greg Kroah-Hartman
From: M. Vefa Bicakci commit aea850cd35ae3d266fe6f93fb9edb25e4a555230 upstream. This commit resolves a bug in the selection/discovery of more specific USB device drivers for devices that are currently bound to generic USB device drivers. The bug is in the logic that determines whether a device

Re: [PATCH v4 00/32] Make charlcd device independent

2020-10-05 Thread Miguel Ojeda
Hi Lars, On Mon, Oct 5, 2020 at 2:27 PM wrote: > > This tries to make charlcd device independent. Thanks a lot for the work! I see you have written the differences between versions in each patch, but given there are 32 patches, it'd be nice to comment which ones have changed so that folks that

[PATCH 5.8 18/85] iio: adc: qcom-spmi-adc5: fix driver name

2020-10-05 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov commit fdb29f4de1374483291232ae7515e5e7bb464762 upstream. Remove superfluous '.c' from qcom-spmi-adc5 device driver name. Fixes: e13d757279bb ("iio: adc: Add QCOM SPMI PMIC5 ADC driver") Signed-off-by: Dmitry Baryshkov Acked-by: Manivannan Sadhasivam Cc: Link: https://

[PATCH 5.8 22/85] drm/amdgpu: restore proper ref count in amdgpu_display_crtc_set_config

2020-10-05 Thread Greg Kroah-Hartman
From: Jean Delvare commit a39d0d7bdf8c21ac7645c02e9676b5cb2b804c31 upstream. A recent attempt to fix a ref count leak in amdgpu_display_crtc_set_config() turned out to be doing too much and "fixed" an intended decrease as if it were a leak. Undo that part to restore the proper balance. This is t

[PATCH 5.8 30/85] drm/sun4i: mixer: Extend regmap max_register

2020-10-05 Thread Greg Kroah-Hartman
From: Martin Cerveny [ Upstream commit 74ea06164cda81dc80e97790164ca533fd7e3087 ] Better guess. Secondary CSC registers are from 0xF. Signed-off-by: Martin Cerveny Reviewed-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20200906162140

[PATCH 5.8 23/85] xen/events: dont use chip_data for legacy IRQs

2020-10-05 Thread Greg Kroah-Hartman
From: Juergen Gross commit 0891fb39ba67bd7ae023ea0d367297010781 upstream. Since commit c330fb1ddc0a ("XEN uses irqdesc::irq_data_common::handler_data to store a per interrupt XEN data pointer which contains XEN specific information.") Xen is using the chip_data pointer for storing IRQ spec

[PATCH 5.8 20/85] tracing: Fix trace_find_next_entry() accounting of temp buffer size

2020-10-05 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 851e6f61cd076954f9d521e0d79b173ad3a2453b upstream. The temp buffer size variable for trace_find_next_entry() was incorrectly being updated when the size did not change. The temp buffer size should only be updated when it is reallocated. This is mostly an iss

[PATCH 5.8 27/85] libbpf: Remove arch-specific include path in Makefile

2020-10-05 Thread Greg Kroah-Hartman
From: Naveen N. Rao [ Upstream commit 21e9ba5373fc2cec608fd68301a1dbfd14df3172 ] Ubuntu mainline builds for ppc64le are failing with the below error (*): CALL/home/kernel/COD/linux/scripts/atomic/check-atomics.sh DESCEND bpf/resolve_btfids Auto-detecting system features: ...

[PATCH 5.8 04/85] USB: gadget: f_ncm: Fix NDP16 datagram validation

2020-10-05 Thread Greg Kroah-Hartman
From: Bryan O'Donoghue commit 2b405533c2560d7878199c57d95a39151351df72 upstream. commit 2b74b0a04d3e ("USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()") adds important bounds checking however it unfortunately also introduces a bug with respect to section 3.3.1 of the NCM specificatio

[PATCH 5.8 17/85] Input: i8042 - add nopnp quirk for Acer Aspire 5 A515

2020-10-05 Thread Greg Kroah-Hartman
From: Jiri Kosina commit 5fc27b098dafb8e30794a9db0705074c7d766179 upstream. Touchpad on this laptop is not detected properly during boot, as PNP enumerates (wrongly) AUX port as disabled on this machine. Fix that by adding this board (with admittedly quite funny DMI identifiers) to nopnp quirk

[PATCH 5.4 43/57] i2c: cpm: Fix i2c_ram structure

2020-10-05 Thread Greg Kroah-Hartman
From: Nicolas VINCENT [ Upstream commit a2bd970aa62f2f7f80fd0d212b1d4ccea5df4aed ] the i2c_ram structure is missing the sdmatmp field mentionned in datasheet for MPC8272 at paragraph 36.5. With this field missing, the hardware would write past the allocated memory done through cpm_muram_alloc fo

[PATCH 5.8 21/85] memstick: Skip allocating card when removing host

2020-10-05 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 62c59a8786e6bb75569cee91dab66e9da3ff4b68 upstream. After commit 6827ca573c03 ("memstick: rtsx_usb_ms: Support runtime power management"), removing module rtsx_usb_ms will be stuck. The deadlock is caused by powering on and powering off at the same time, the former one

[PATCH 5.8 15/85] scsi: iscsi: iscsi_tcp: Avoid holding spinlock while calling getpeername()

2020-10-05 Thread Greg Kroah-Hartman
From: Mark Mielke commit bcf3a2953d36bbfb9bd44ccb3db0897d935cc485 upstream. The kernel may fail to boot or devices may fail to come up when initializing iscsi_tcp devices starting with Linux 5.8. Commit a79af8a64d39 ("[SCSI] iscsi_tcp: use iscsi_conn_get_addr_param libiscsi function") introduce

[PATCH 5.4 52/57] nvme: consolidate chunk_sectors settings

2020-10-05 Thread Greg Kroah-Hartman
From: Keith Busch commit 38adf94e166e3cb4eb89683458ca578051e8218d upstream. Move the quirked chunk_sectors setting to the same location as noiob so one place registers this setting. And since the noiob value is only used locally, remove the member from struct nvme_ns. Signed-off-by: Keith Busch

[PATCH 5.8 26/85] mt76: mt7915: use ieee80211_free_txskb to free tx skbs

2020-10-05 Thread Greg Kroah-Hartman
From: Felix Fietkau [ Upstream commit b4be5a53ebf478ffcfb4c98c0ccc4a8d922b9a02 ] Using dev_kfree_skb for tx skbs breaks AQL. This worked until now only by accident, because a mac80211 issue breaks AQL on drivers with firmware rate control that report the rate via ieee80211_tx_status_ext as struc

[PATCH 5.8 55/85] pNFS/flexfiles: Ensure we initialise the mirror bsizes correctly on read

2020-10-05 Thread Greg Kroah-Hartman
From: Trond Myklebust [ Upstream commit ee15c7b53e52fb04583f734461244c4dcca828fa ] While it is true that reading from an unmirrored source always uses index 0, that is no longer true for mirrored sources when we fail over. Fixes: 563c53e73b8b ("NFS: Fix flexfiles read failover") Signed-off-by:

[PATCH 5.8 54/85] NFSv4.2: fix clients attribute cache management for copy_file_range

2020-10-05 Thread Greg Kroah-Hartman
From: Olga Kornievskaia [ Upstream commit 16abd2a0c124a6c3543c88ca4c53c997c9fb4114 ] After client is done with the COPY operation, it needs to invalidate its pagecache (as it did no reading or writing of the data locally) and it needs to invalidate it's attributes just like it would have for a r

[PATCH v16 09/15] mtd: spi-nor: Parse SFDP SCCR Map

2020-10-05 Thread Pratyush Yadav
From: Tudor Ambarus Parse just the 22nd dword and look for the 'DTR Octal Mode Enable Volatile bit'. SPI_NOR_IO_MODE_EN_VOLATILE should be set just for the flashes that don't define the optional SFDP SCCR Map. For the others, let the SFDP do its job and fill the SNOR_F_IO_MODE_EN_VOLATILE flag.

[PATCH 5.8 10/85] gpio: mockup: fix resource leak in error path

2020-10-05 Thread Greg Kroah-Hartman
From: Bartosz Golaszewski commit 1b02d9e770cd7087f34c743f85ccf5ea8372b047 upstream. If the module init function fails after creating the debugs directory, it's never removed. Add proper cleanup calls to avoid this resource leak. Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over

[PATCH 5.8 11/85] gpio: tc35894: fix up tc35894 interrupt configuration

2020-10-05 Thread Greg Kroah-Hartman
From: dillon min commit 214b0e1ad01abf4c1f6d8d28fa096bf167e47cef upstream. The offset of regmap is incorrect, j * 8 is move to the wrong register. for example: asume i = 0, j = 1. we want to set KPY5 as interrupt falling edge mode, regmap[0][1] should be TC3589x_GPIOIBE1 0xcd but, regmap[i] +

[PATCH v16 12/15] mtd: spi-nor: core: perform a Soft Reset on shutdown

2020-10-05 Thread Pratyush Yadav
Perform a Soft Reset on shutdown on flashes that support it so that the flash can be reset to its initial state and any configurations made by spi-nor (given that they're only done in volatile registers) will be reset. This will hand back the flash in pristine state for any further operations on it

[PATCH v16 05/15] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-10-05 Thread Pratyush Yadav
This table is indication that the flash is xSPI compliant and hence supports octal DTR mode. Extract information like the fast read opcode, dummy cycles, the number of dummy cycles needed for a Read Status Register command, and the number of address bytes needed for a Read Status Register command.

[PATCH 5.8 49/85] scripts/kallsyms: skip ppc compiler stub *.long_branch.* / *.plt_branch.*

2020-10-05 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit 516d980f85415d76ae3d0d2a871eb20243f46c95 ] PowerPC allmodconfig often fails to build as follows: LD .tmp_vmlinux.kallsyms1 KSYM.tmp_vmlinux.kallsyms1.o LD .tmp_vmlinux.kallsyms2 KSYM.tmp_vmlinux.kallsyms2.o LD .t

[PATCH v16 11/15] mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT

2020-10-05 Thread Pratyush Yadav
A Soft Reset sequence will return the flash to Power-on-Reset (POR) state. It consists of two commands: Soft Reset Enable and Soft Reset. Find out if the sequence is supported from BFPT DWORD 16. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.h | 1 + driv

[PATCH 5.8 57/85] clk: tegra: Fix missing prototype for tegra210_clk_register_emc()

2020-10-05 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit 2f878d04218c8b26f6d0ab26955ca6b03848a1ad ] Include the Tegra driver's clk.h to pull in the prototype definition for this function so that compilers don't warn about it being missing. Fixes: 0ac65fc946d3 ("clk: tegra: Implement Tegra210 EMC clock") Reported

[PATCH 5.8 52/85] pinctrl: mvebu: Fix i2c sda definition for 98DX3236

2020-10-05 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 63c3212e7a37d68c89a13bdaebce869f4e064e67 ] Per the datasheet the i2c functions use MPP_Sel=0x1. They are documented as using MPP_Sel=0x4 as well but mixing 0x1 and 0x4 is clearly wrong. On the board tested 0x4 resulted in a non-functioning i2c bus so stick w

[PATCH 5.8 51/85] phy: ti: am654: Fix a leak in serdes_am654_probe()

2020-10-05 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 850280156f6421a404f2351bee07a0e7bedfd4c6 ] If devm_phy_create() fails then we need to call of_clk_del_provider(node) to undo the call to of_clk_add_provider(). Fixes: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC") Signed-off-by: Dan C

[PATCH 5.8 39/85] mac80211: Fix radiotap header channel flag for 6GHz band

2020-10-05 Thread Greg Kroah-Hartman
From: Aloka Dixit [ Upstream commit 412a84b5714af56f3eb648bba155107b5edddfdf ] Radiotap header field 'Channel flags' has '2 GHz spectrum' set to 'true' for 6GHz packet. Change it to 5GHz as there isn't a separate option available for 6GHz. Signed-off-by: Aloka Dixit Link: https://lore.kernel.

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