[PATCH 08/10] mm/page_alloc: Avoid conflating IRQs disabled with zone->lock

2021-04-19 Thread Mel Gorman
Historically when freeing pages, free_one_page() assumed that callers had IRQs disabled and the zone->lock could be acquired with spin_lock(). This confuses the scope of what local_lock_irq is protecting and what zone->lock is protecting in free_unref_page_list in particular. This patch uses spin_

Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-19 Thread Paulo Alcantara
Salvatore Bonaccorso writes: > Thanks Greg! Shyam, Steven, now the commit was reverted for the older > brnaches. But did you got a chance to find why it breaks for the older > series? That commit has revealed another bug in cifs_mount() where we failed to update the super's prefix path after cha

[PATCH 07/10] mm/page_alloc: Explicitly acquire the zone lock in __free_pages_ok

2021-04-19 Thread Mel Gorman
__free_pages_ok() disables IRQs before calling a common helper free_one_page() that acquires the zone lock. This is not safe according to Documentation/locking/locktypes.rst and in this context, IRQ disabling is not protecting a per_cpu_pages structure either or a local_lock would be used. This pa

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-19 Thread Borislav Petkov
On Fri, Apr 16, 2021 at 06:05:10PM -0400, Len Brown wrote: > I'm not aware of any intent to transparently use AMX for bcopy, like > what happened > with AVX-512. (didn't they undo that mistake?) No clue, did they? > Tasks are created without an 8KB AMX buffer. > Tasks have to actually touch the

[PATCH 06/10] mm/page_alloc: Reduce duration that IRQs are disabled for VM counters

2021-04-19 Thread Mel Gorman
IRQs are left disabled for the zone and node VM event counters. This is unnecessary as the affected counters are allowed to race for preemmption and IRQs. This patch reduces the scope of IRQs being disabled via local_[lock|unlock]_irq on !PREEMPT_RT kernels. One __mod_zone_freepage_state is still

[PATCH 05/10] mm/page_alloc: Batch the accounting updates in the bulk allocator

2021-04-19 Thread Mel Gorman
Now that the zone_statistics are simple counters that do not require special protection, the bulk allocator accounting updates can be batch updated without adding too much complexity with protected RMW updates or using xchg. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- include/linux/

[PATCH 04/10] mm/vmstat: Inline NUMA event counter updates

2021-04-19 Thread Mel Gorman
__count_numa_event is small enough to be treated similarly to __count_vm_event so inline it. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- include/linux/vmstat.h | 10 +- mm/vmstat.c| 9 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/inc

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:58 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven > wrote: > > > In any case it's not true. We have the platform drivers w/o legacy > > > users that are not dependent on OF. > > > > Example? ;-) > > i2c-owl.c In case you want more sound

[PATCH 03/10] mm/vmstat: Convert NUMA statistics to basic NUMA counters

2021-04-19 Thread Mel Gorman
NUMA statistics are maintained on the zone level for hits, misses, foreign etc but nothing relies on them being perfectly accurate for functional correctness. The counters are used by userspace to get a general overview of a workloads NUMA behaviour but the page allocator incurs a high cost to main

[PATCH][next][V2] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size

2021-04-19 Thread Colin King
From: Colin Ian King The size of the buffer than can be written to is currently incorrect, it is always the size of the entire buffer even though the snprintf is writing as position pos into the buffer. Fix this by setting the buffer size to be the number of bytes left in the buffer, namely sizeo

[PATCH 02/10] mm/page_alloc: Convert per-cpu list protection to local_lock

2021-04-19 Thread Mel Gorman
There is a lack of clarity of what exactly local_irq_save/local_irq_restore protects in page_alloc.c . It conflates the protection of per-cpu page allocation structures with per-cpu vmstat deltas. This patch protects the PCP structure using local_lock which for most configurations is identical to

[PATCH 01/10] mm/page_alloc: Split per cpu page lists and zone stats

2021-04-19 Thread Mel Gorman
The per-cpu page allocator lists and the per-cpu vmstat deltas are stored in the same struct per_cpu_pages even though vmstats have no direct impact on the per-cpu page lists. This is inconsistent because the vmstats for a node are stored on a dedicated structure. The bigger issue is that the per_c

[PATCH 00/10 v4] Use local_lock for pcp protection and reduce stat overhead

2021-04-19 Thread Mel Gorman
Some Acks from RT people are still missing that I'd like to have before trying to merge this via Andrew's tree and there is an open question is whether the last path in this series is worthwhile. It embeds local_lock within the per_cpu_pages structure to clarify the scope but it increases complexit

Re: [PATCH][next] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size Content-Type: text/plain; charset="utf-8"

2021-04-19 Thread Arnd Bergmann
On Mon, Apr 19, 2021 at 4:01 PM Colin King wrote: > > From: Colin Ian King > > The size of the buffer than can be written to is currently incorrect, it is > always the size of the entire buffer even though the snprintf is writing > as position pos into the buffer. Fix this by setting the buffer s

Re: [PATCH v2 1/4] mm: pagewalk: Fix walk for hugepage tables

2021-04-19 Thread Steven Price
On 19/04/2021 11:47, Christophe Leroy wrote: Pagewalk ignores hugepd entries and walk down the tables as if it was traditionnal entries, leading to crazy result. Add walk_hugepd_range() and use it to walk hugepage tables. Signed-off-by: Christophe Leroy Looks correct to me, sadly I don't hav

Re: [PATCH 37/57] staging: rtl8188eu: os_dep: ioctl_linux: Move 2 large data buffers into the heap

2021-04-19 Thread Arnd Bergmann
On Thu, Apr 15, 2021 at 7:29 AM Dan Carpenter wrote: > > On Thu, Apr 15, 2021 at 08:20:16AM +0300, Dan Carpenter wrote: > > On Wed, Apr 14, 2021 at 07:11:09PM +0100, Lee Jones wrote: > > > --- > > > drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 12 +++- > > > 1 file changed, 11 inserti

Re: [PATCH 12/13] ARM: dts: stm32: fix DSI port node on STM32MP15

2021-04-19 Thread Alexandre TORGUE
On 4/19/21 3:57 PM, Arnd Bergmann wrote: On Thu, Apr 15, 2021 at 2:23 PM Alexandre TORGUE wrote: On 4/15/21 12:43 PM, Ahmad Fatoum wrote: On 15.04.21 12:10, Alexandre Torgue wrote: Running "make dtbs_check W=1", some warnings are reported concerning DSI. This patch reorder DSI nodes to avo

[PATCH][next] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size Content-Type: text/plain; charset="utf-8"

2021-04-19 Thread Colin King
From: Colin Ian King The size of the buffer than can be written to is currently incorrect, it is always the size of the entire buffer even though the snprintf is writing as position pos into the buffer. Fix this by setting the buffer size to be the number of bytes left in the buffer, namely sizeo

[PATCH vfs.git] MAINTAINERS: Add git tree for the FILESYSTEMS entry

2021-04-19 Thread Rafał Miłecki
From: Rafał Miłecki This helps finding the latest development code. Signed-off-by: Rafał Miłecki --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index d92f85ca831d..67317bfd46e3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6890,6 +6890,7 @@ FILES

Re: [PATCH 2/2] powerpc: add ALTIVEC support to lib/ when PPC_FPU not set

2021-04-19 Thread Segher Boessenkool
On Mon, Apr 19, 2021 at 03:38:02PM +0200, Christophe Leroy wrote: > Le 19/04/2021 à 15:32, Segher Boessenkool a écrit : > >On Sun, Apr 18, 2021 at 01:17:26PM -0700, Randy Dunlap wrote: > >>Add ldstfp.o to the Makefile for CONFIG_ALTIVEC and add > >>externs for get_vr() and put_vr() in lib/sstep.c t

Re: [PATCH v1 3/5] mm: ptdump: Provide page size to notepage()

2021-04-19 Thread Steven Price
On 19/04/2021 14:14, Christophe Leroy wrote: Le 16/04/2021 à 12:51, Steven Price a écrit : On 16/04/2021 11:38, Christophe Leroy wrote: Le 16/04/2021 à 11:28, Steven Price a écrit : On 15/04/2021 18:18, Christophe Leroy wrote: To be honest I don't fully understand why powerpc requires the

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven wrote: > On Mon, Apr 19, 2021 at 3:35 PM Andy Shevchenko > wrote: > > On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven > > wrote: > > > On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko > > > wrote: > > > > On Thu, Apr 15, 2021 at 3:43 AM Gee

Re: [PATCH 12/13] ARM: dts: stm32: fix DSI port node on STM32MP15

2021-04-19 Thread Arnd Bergmann
On Thu, Apr 15, 2021 at 2:23 PM Alexandre TORGUE wrote: > On 4/15/21 12:43 PM, Ahmad Fatoum wrote: > > On 15.04.21 12:10, Alexandre Torgue wrote: > >> Running "make dtbs_check W=1", some warnings are reported concerning > >> DSI. This patch reorder DSI nodes to avoid: > >> > >> soc/dsi@5a00: u

Re: [PATCH v7 09/28] mm: Create FolioFlags

2021-04-19 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 03:25:46PM +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 07:50:46PM +0100, Matthew Wilcox (Oracle) wrote: > > These new functions are the folio analogues of the PageFlags functions. > > If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio is not a tail > > page

Re: [PATCH v2 1/2] dt-bindings: remoteproc: k3-r5f: Update bindings for AM64x SoCs

2021-04-19 Thread Suman Anna
Hi Rob, On 3/27/21 9:31 AM, Suman Anna wrote: > The K3 AM64x SoCs have two dual-core Arm R5F clusters/subsystems, with > 2 R5F cores each, both in the MAIN voltage domain. > > These clusters are a revised IP version compared to those present on > J721E and J7200 SoCs, and supports a new "Single-C

[PATCH v2 5/5] selftests/vm: add test for MADV_POPULATE_(READ|WRITE)

2021-04-19 Thread David Hildenbrand
Let's add a simple test for MADV_POPULATE_READ and MADV_POPULATE_WRITE, verifying some error handling, that population works, and that softdirty tracking works as expected. For now, limit the test to private anonymous memory. Cc: Andrew Morton Cc: Arnd Bergmann Cc: Michal Hocko Cc: Oscar Salvad

Re: [PATCH v3 2/2] iio: accel: Add driver for Murata SCA3300 accelerometer

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:26 PM Tomas Melin wrote: Thanks for an update, it's getting better! My comments below. > Add initial support for Murata SCA3300 3-axis industrial > accelerometer with digital SPI interface. This device also > provides a temperature measurement. First of all, you forgot

[PATCH v2 4/5] selftests/vm: add protection_keys_32 / protection_keys_64 to gitignore

2021-04-19 Thread David Hildenbrand
We missed to add two binaries to gitignore. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Cc: Ram Pai Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: David Hildenbrand --- tools/testing/selftests/vm/.gitignore | 2 ++ 1 file chang

[PATCH v2 2/5] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables

2021-04-19 Thread David Hildenbrand
I. Background: Sparse Memory Mappings When we manage sparse memory mappings dynamically in user space - also sometimes involving MAP_NORESERVE - we want to dynamically populate/ discard memory inside such a sparse memory region. Example users are hypervisors (especially implementing memory balloon

[PATCH v2 3/5] MAINTAINERS: add tools/testing/selftests/vm/ to MEMORY MANAGEMENT

2021-04-19 Thread David Hildenbrand
MEMORY MANAGEMENT seems to be a good fit. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: David Hildenbrand --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINE

[PATCH v2 0/5] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables

2021-04-19 Thread David Hildenbrand
Excessive details on MADV_POPULATE_(READ|WRITE) can be found in patch #2. v1 -> v2: - "mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables" -- Renamed patch/series to match what's happening -- prefault page tables -- Clarified MADV_POPULATE_READ semantics on file holes and

[PATCH v2 1/5] mm: make variable names for populate_vma_page_range() consistent

2021-04-19 Thread David Hildenbrand
Let's make the variable names in the function declaration match the variable names used in the definition. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Signed-off-by: David Hildenbrand --- mm/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Geert Uytterhoeven
Hi Andy, On Mon, Apr 19, 2021 at 3:35 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven > wrote: > > On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko > > wrote: > > > On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven > > > wrote: > > > > On Wed, Apr 14, 2021 at

Re: [PATCH] bpf: fix errno code for unsupported batch ops

2021-04-19 Thread Pedro Tammela
Em dom., 18 de abr. de 2021 às 19:56, Alexei Starovoitov escreveu: > > On Sun, Apr 18, 2021 at 1:03 PM Pedro Tammela wrote: > > > > ENOTSUPP is not a valid userland errno[1], which is annoying for > > userland applications that implement a fallback to iterative, report > > errors via 'strerror()'

Re: [PATCH v2 09/10] KVM: Don't take mmu_lock for range invalidation unless necessary

2021-04-19 Thread Paolo Bonzini
On 19/04/21 10:49, Wanpeng Li wrote: I saw this splatting: == WARNING: possible circular locking dependency detected 5.12.0-rc3+ #6 Tainted: G OE -- qemu-system-x86/3069 is

RE: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-19 Thread Shyam Prasad
I think so; Paulo can confirm. -Original Message- From: Salvatore Bonaccorso On Behalf Of Salvatore Bonaccorso Sent: Monday, April 19, 2021 6:52 PM To: Shyam Prasad Cc: Greg Kroah-Hartman ; pc ; linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Aurelien Aptel ; Steven French ; Sas

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven wrote: > On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko > wrote: > > On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven > > wrote: > > > On Wed, Apr 14, 2021 at 9:14 PM Andy Shevchenko > > > wrote: > > > > On Wed, Apr 14, 2021 at 08:55:21PM

Re: [PATCH v1 1/1] tee: optee: Provide special parameter field for UUID values

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:30 PM Jens Wiklander wrote: > On Mon, Apr 19, 2021 at 2:01 PM Andy Shevchenko > wrote: > > > > On Mon, Apr 19, 2021 at 01:35:51PM +0200, Jens Wiklander wrote: > > > On Thu, Apr 15, 2021 at 4:58 PM Andy Shevchenko > > > wrote: > > > > Thanks for review, my answer below.

Re: [PATCH 2/2] powerpc: add ALTIVEC support to lib/ when PPC_FPU not set

2021-04-19 Thread Segher Boessenkool
Hi! On Sun, Apr 18, 2021 at 01:17:26PM -0700, Randy Dunlap wrote: > Add ldstfp.o to the Makefile for CONFIG_ALTIVEC and add > externs for get_vr() and put_vr() in lib/sstep.c to fix the > build errors. > obj-$(CONFIG_PPC_FPU)+= ldstfp.o > +obj-$(CONFIG_ALTIVEC)+= ldstfp.o It is

Re: [PATCH 2/2] powerpc: add ALTIVEC support to lib/ when PPC_FPU not set

2021-04-19 Thread Christophe Leroy
Le 19/04/2021 à 15:32, Segher Boessenkool a écrit : Hi! On Sun, Apr 18, 2021 at 01:17:26PM -0700, Randy Dunlap wrote: Add ldstfp.o to the Makefile for CONFIG_ALTIVEC and add externs for get_vr() and put_vr() in lib/sstep.c to fix the build errors. obj-$(CONFIG_PPC_FPU) += ldstfp.o +obj-

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Guenter Roeck
On 4/18/21 9:27 PM, Alice Guo (OSS) wrote: > From: Alice Guo > > Update all the code that use soc_device_match because add support for > soc_device_match returning -EPROBE_DEFER. > > Signed-off-by: Alice Guo > --- [ ... ] > drivers/watchdog/renesas_wdt.c| 2 +- > 48 files chan

Re: [PATCH 2/4] dt-bindings: clock: Convert ti,sci-clk to json schema

2021-04-19 Thread Nishanth Menon
Stephen, On 07:51-20210417, Nishanth Menon wrote: > On 16:55-20210416, Stephen Boyd wrote: > > Quoting Nishanth Menon (2021-04-15 23:37:19) > > > diff --git a/Documentation/devicetree/bindings/clock/ti,sci-clk.yaml > > > b/Documentation/devicetree/bindings/clock/ti,sci-clk.yaml > > > new file mod

Re: [PATCH 2/2] iio: accel: Add driver for Murata SCA3300 accelerometer

2021-04-19 Thread Tomas Melin
Hi, On 4/18/21 1:03 PM, Jonathan Cameron wrote: On Fri, 16 Apr 2021 15:21:14 +0300 Tomas Melin wrote: Updated email-address for Alexandru. On 4/16/21 3:17 PM, Tomas Melin wrote: On 4/15/21 11:41 AM, Tomas Melin wrote: While working on updates I did notice something new which I cannot

[PATCH 5.4 22/73] ASoC: fsl_esai: Fix TDM slot setup for I2S mode

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Shiyan [ Upstream commit e7a48c710defa0e0fef54d42b7d9e4ab596e2761 ] When using the driver in I2S TDM mode, the fsl_esai_startup() function rewrites the number of slots previously set by the fsl_esai_set_dai_tdm_slot() function to 2. To fix this, let's use the saved slot count val

Re: [PATCH v3 02/12] iommu: Add iommu_split_block interface

2021-04-19 Thread Lu Baolu
Hi Keqian, On 2021/4/19 17:32, Keqian Zhu wrote: +EXPORT_SYMBOL_GPL(iommu_split_block); Do you really have any consumers of this interface other than the dirty bit tracking? If not, I don't suggest to make this as a generic IOMMU interface. There is an implicit requirement for such interfaces.

Re: [PATCH v7 09/28] mm: Create FolioFlags

2021-04-19 Thread Peter Zijlstra
On Fri, Apr 09, 2021 at 07:50:46PM +0100, Matthew Wilcox (Oracle) wrote: > These new functions are the folio analogues of the PageFlags functions. > If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio is not a tail > page at every invocation. Note that this will also catch the PagePoisoned >

[PATCH 5.4 30/73] net: ieee802154: stop dump llsec devkeys for monitors

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 080d1a57a94d93e70f84b7a360baa351388c574f ] This patch stops dumping llsec devkeys for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.o

[PATCH 5.4 60/73] ibmvnic: avoid calling napi_disable() twice

2021-04-19 Thread Greg Kroah-Hartman
From: Lijun Pan commit 0775ebc4cf8554bdcd2c212669a0868ab68df5c0 upstream. __ibmvnic_open calls napi_disable without checking whether NAPI polling has already been disabled or not. This could cause napi_disable being called twice, which could generate deadlock. For example, the first napi_disable

[PATCH 5.4 68/73] r8169: fix performance regression related to PCIe max read request size

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 21b5f672fb2eb1366dedc4ac9d32431146b378d3 ] It turned out that on low performance systems the original change can cause lower tx performance. On a N3450-based mini-PC tx performance in iperf3 was reduced from 950Mbps to ~900Mbps. Therefore effectively rever

[PATCH 5.4 67/73] r8169: simplify setting PCI_EXP_DEVCTL_NOSNOOP_EN

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit e0bbe7cbb3c5ff72d680993edf89db2391e80d5d ] r8168b_0_hw_jumbo_enable() and r8168b_0_hw_jumbo_disable() both do the same and just set PCI_EXP_DEVCTL_NOSNOOP_EN. We can simplify the code by moving this setting for RTL8168B to rtl_hw_start_8168(). Signed-off-

[PATCH 5.4 69/73] r8169: improve rtl_jumbo_config

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 9db0ac57bd3286fedcf43a86b29b847cea281cc7 ] Merge enabling and disabling jumbo packets to one function to make the code a little simpler. Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/

[PATCH 5.4 43/73] dm verity fec: fix misaligned RS roots IO

2021-04-19 Thread Greg Kroah-Hartman
From: Jaegeuk Kim commit 8ca7cab82bda4eb0b8064befeeeaa38106cac637 upstream. commit df7b59ba9245 ("dm verity: fix FEC for RS roots unaligned to block size") introduced the possibility for misaligned roots IO relative to the underlying device's logical block size. E.g. Android's default RS roots=2

[PATCH 5.4 65/73] arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems

2021-04-19 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit 3dd4ce4185df6798dcdcc3669bddb35899d7d5e1 ] Commit 941432d00768 ("arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card") enabled the card detect GPIO for the SOPine module, along the way with the Pine64-LTS, which share the same base .dtsi. How

[PATCH 5.4 66/73] r8169: remove fiddling with the PCIe max read request size

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 2df49d36549808a7357ad9f78b7a8e39516e7809 ] The attempt to improve performance by changing the PCIe max read request size was added in the vendor driver more than 10 years back and copied to r8169 driver. In the vendor driver this has been removed long ago.

[PATCH 5.4 64/73] ARM: footbridge: fix PCI interrupt mapping

2021-04-19 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 30e3b4f256b4e366a61658c294f6a21b8626dda7 ] Since commit 30fdfb929e82 ("PCI: Add a call to pci_assign_irq() in pci_device_probe()"), the PCI code will call the IRQ mapping function whenever a PCI driver is probed. If these are marked as __init, this causes an

[PATCH 5.4 63/73] gro: ensure frag0 meets IP header alignment

2021-04-19 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 38ec4944b593fd90c5ef4253e66ae5769d04 upstream. After commit 0f6925b3e8da ("virtio_net: Do not pull payload in skb->head") Guenter Roeck reported one failure in his tests using sh architecture. After much debugging, we have been able to spot silent unaligned accesse

[PATCH 5.4 62/73] ibmvnic: remove duplicate napi_schedule call in open function

2021-04-19 Thread Greg Kroah-Hartman
From: Lijun Pan commit 7c451f3ef676c805a4b77a743a01a5c21a250a73 upstream. Remove the unnecessary napi_schedule() call in __ibmvnic_open() since interrupt_rx() calls napi_schedule_prep/__napi_schedule during every receive interrupt. Fixes: ed651a10875f ("ibmvnic: Updated reset handling") Signed-

[PATCH 5.4 73/73] net: phy: marvell: fix detection of PHY on Topaz switches

2021-04-19 Thread Greg Kroah-Hartman
From: Pali Rohár commit 1fe976d308acb6374c899a4ee8025a0a016e453e upstream. Since commit fee2d546414d ("net: phy: marvell: mv88e6390 temperature sensor reading"), Linux reports the temperature of Topaz hwmon as constant -75°C. This is because switches from the Topaz family (88E6141 / 88E6341) ha

[PATCH 5.4 61/73] ibmvnic: remove duplicate napi_schedule call in do_reset function

2021-04-19 Thread Greg Kroah-Hartman
From: Lijun Pan commit d3a6abccbd272aea7dc2c6f984bb5a2c11278e44 upstream. During adapter reset, do_reset/do_hard_reset calls ibmvnic_open(), which will calls napi_schedule if previous state is VNIC_CLOSED (i.e, the reset case, and "ifconfig down" case). So there is no need for do_reset to call n

[PATCH 5.4 72/73] ARM: 9071/1: uprobes: Dont hook on thumb instructions

2021-04-19 Thread Greg Kroah-Hartman
From: Fredrik Strupe commit d2f7eca60b29006285d57c7035539e33300e89e5 upstream. Since uprobes is not supported for thumb, check that the thumb bit is not set when matching the uprobes instruction hooks. The Arm UDF instructions used for uprobes triggering (UPROBE_SWBP_ARM_INSN and UPROBE_SS_ARM_

[PATCH 5.4 71/73] r8169: dont advertise pause in jumbo mode

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 453a77894efa4d9b6ef9644d74b9419c47ac427c ] It has been reported [0] that using pause frames in jumbo mode impacts performance. There's no available chip documentation, but vendor drivers r8168 and r8125 don't advertise pause in jumbo mode. So let's do the

[PATCH 5.4 31/73] net: ieee802154: forbid monitor for add llsec devkey

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit a347b3b394868fef15b16f143719df56184be81d ] This patch forbids to add llsec devkey for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lor

[PATCH 5.4 70/73] r8169: tweak max read request size for newer chips also in jumbo mtu mode

2021-04-19 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 5e00e16cb98935bcf06f51931876d898c226f65c ] So far we don't increase the max read request size if we switch to jumbo mode before bringing up the interface for the first time. Let's change this. Signed-off-by: Heiner Kallweit Signed-off-by: Jakub Kicinski

[PATCH 5.4 44/73] readdir: make sure to verify directory entry for legacy interfaces too

2021-04-19 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 0c93ac69407d63a85be0129aa55ffaec27ffebd3 upstream. This does the directory entry name verification for the legacy "fillonedir" (and compat) interface that goes all the way back to the dark ages before we had a proper dirent, and the readdir() system call returned just

[PATCH 5.4 42/73] HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices

2021-04-19 Thread Greg Kroah-Hartman
From: Ping Cheng commit 276559d8d02c2709281578976ca2f53bc62063d4 upstream. Valid HID_GENERIC type of devices set EV_KEY and EV_ABS by wacom_map_usage. When *_input_capabilities are reached, those devices should already have their proper EV_* set. EV_KEY and EV_ABS only need to be set for non-HID

[PATCH 5.4 24/73] net: ieee802154: stop dump llsec keys for monitors

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit fb3c5cdf88cd504ef11d59e8d656f4bc896c6922 ] This patch stops dumping llsec keys for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.org/

[PATCH 5.4 29/73] net: ieee802154: forbid monitor for del llsec dev

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit ad8f9de1f3566686af35b1c6b43240726541da61 ] This patch forbids to del llsec dev for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.k

[PATCH 5.4 28/73] net: ieee802154: forbid monitor for add llsec dev

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 5303f956b05a2886ff42890908156afaec0f95ac ] This patch forbids to add llsec dev for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.k

[PATCH 5.4 27/73] net: ieee802154: stop dump llsec devs for monitors

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 5582d641e6740839c9b83efd1fbf9bcd00b6f5fc ] This patch stops dumping llsec devs for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel.org/

[PATCH 5.4 26/73] net: ieee802154: forbid monitor for del llsec key

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit b6e2949544a183f590ae6f3ef2d12c44e38a ] This patch forbids to del llsec key for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.k

[PATCH 5.4 59/73] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-19 Thread Greg Kroah-Hartman
From: Jason Xing commit 4e39a072a6a0fc422ba7da5e4336bdc295d70211 upstream. Fix this panic by adding more rules to calculate the value of @rss_size_max which could be used in allocating the queues when bpf is loaded, which, however, could cause the failure and then trigger the NULL pointer of vsi

[PATCH 5.4 58/73] net: ip6_tunnel: Unregister catch-all devices

2021-04-19 Thread Greg Kroah-Hartman
From: Hristo Venev commit 941ea91e87a6e879ed82dad4949f6234f2702bec upstream. Similarly to the sit case, we need to remove the tunnels with no addresses that have been moved to another network namespace. Fixes: 0bd8762824e73 ("ip6tnl: add x-netns support") Signed-off-by: Hristo Venev Signed-off

[PATCH 5.4 56/73] net: davicom: Fix regulator not turned off on failed probe

2021-04-19 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit 31457db3750c0b0ed229d836f2609fdb8a5b790e upstream. When the probe fails, we must disable the regulator that was previously enabled. This patch is a follow-up to commit ac88c531a5b3 ("net: davicom: Fix regulator not turned off on failed probe") which missed one ca

[PATCH 5.4 57/73] net: sit: Unregister catch-all devices

2021-04-19 Thread Greg Kroah-Hartman
From: Hristo Venev commit 610f8c0fc8d46e0933955ce13af3d64484a4630a upstream. A sit interface created without a local or a remote address is linked into the `sit_net::tunnels_wc` list of its original namespace. When deleting a network namespace, delete the devices that have been moved. The follo

[PATCH 5.4 54/73] net: macb: fix the restore of cmp registers

2021-04-19 Thread Greg Kroah-Hartman
From: Claudiu Beznea commit a714e27ea8bdee2b238748029d31472d0a65b611 upstream. Commit a14d273ba159 ("net: macb: restore cmp registers on resume path") introduces the restore of CMP registers on resume path. In case the IP doesn't support type 2 screeners (zero on DCFG8 register) the struct macb:

[PATCH 5.4 55/73] netfilter: nft_limit: avoid possible divide error in nft_limit_init

2021-04-19 Thread Greg Kroah-Hartman
From: Eric Dumazet commit b895bdf5d643b6feb7c60856326dd4feb6981560 upstream. div_u64() divides u64 by u32. nft_limit_init() wants to divide u64 by u64, use the appropriate math function (div64_u64) divide error: [#1] PREEMPT SMP KASAN CPU: 1 PID: 8390 Comm: syz-executor188 Not tainted 5.1

[PATCH 5.4 51/73] libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC

2021-04-19 Thread Greg Kroah-Hartman
From: Vaibhav Jain commit a2948b17f6b936fc52f86c0f92c46d2f91928b79 upstream. In case a platform doesn't provide explicit flush-hints but provides an explicit flush callback via ND_REGION_ASYNC region flag, then nvdimm_has_flush() still returns '0' indicating that writes do not require flushing.

[PATCH 5.4 50/73] netfilter: conntrack: do not print icmpv6 as unknown via /proc

2021-04-19 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit fbea31808ca124dd73ff6bb1e67c9af4607c3e32 upstream. /proc/net/nf_conntrack shows icmpv6 as unknown. Fixes: 09ec82f5af99 ("netfilter: conntrack: remove protocol name from l4proto struct") Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net

[PATCH 5.4 53/73] netfilter: arp_tables: add pre_exit hook for table unregister

2021-04-19 Thread Greg Kroah-Hartman
From: Florian Westphal commit d163a925ebbc6eb5b562b0f1d72c7e817aa75c40 upstream. Same problem that also existed in iptables/ip(6)tables, when arptable_filter is removed there is no longer a wait period before the table/ruleset is free'd. Unregister the hook in pre_exit, then remove the table in

[PATCH 5.4 49/73] scsi: libsas: Reset num_scatter if libata marks qc as NODATA

2021-04-19 Thread Greg Kroah-Hartman
From: Jolly Shah commit 176ddd89171ddcf661862d90c5d257877f7326d6 upstream. When the cache_type for the SCSI device is changed, the SCSI layer issues a MODE_SELECT command. The caching mode details are communicated via a request buffer associated with the SCSI command with data direction set as D

[PATCH 5.4 25/73] net: ieee802154: forbid monitor for add llsec key

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 08470c5453339369bd3d590c4cbb0b5961cdcbb6 ] This patch forbids to add llsec key for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.k

[PATCH 5.4 52/73] netfilter: bridge: add pre_exit hooks for ebtable unregistration

2021-04-19 Thread Greg Kroah-Hartman
From: Florian Westphal commit 7ee3c61dcd28bf6e290e06ad382f13511dc790e9 upstream. Just like ip/ip6/arptables, the hooks have to be removed, then synchronize_rcu() has to be called to make sure no more packets are being processed before the ruleset data is released. Place the hook unregistration

[PATCH 5.4 48/73] riscv: Fix spelling mistake "SPARSEMEM" to "SPARSMEM"

2021-04-19 Thread Greg Kroah-Hartman
From: Kefeng Wang commit 199fc6b8dee7d6d50467a57e0dc7e3e1b7d59966 upstream. There is a spelling mistake when SPARSEMEM Kconfig copy. Fixes: a5406a7ff56e ("riscv: Correct SPARSEMEM configuration") Cc: sta...@vger.kernel.org Signed-off-by: Kefeng Wang Signed-off-by: Palmer Dabbelt Signed-off-by

[PATCH 5.4 47/73] vfio/pci: Add missing range check in vfio_pci_mmap

2021-04-19 Thread Greg Kroah-Hartman
From: Christian A. Ehrhardt commit 909290786ea335366e21d7f1ed5812b90f2f0a92 upstream. When mmaping an extra device region verify that the region index derived from the mmap offset is valid. Fixes: a15b1883fee1 ("vfio_pci: Allow mapping extra regions") Cc: sta...@vger.kernel.org Signed-off-by: C

[PATCH 5.4 46/73] arm64: alternatives: Move length validation in alternative_{insn, endif}

2021-04-19 Thread Greg Kroah-Hartman
From: Nathan Chancellor commit 22315a2296f4c251fa92aec45fbbae37e9301b6c upstream. After commit 2decad92f473 ("arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically"), LLVM's integrated assembler fails to build entry.S: :5:7: error: expected assembly-time absolute expression .org . - (664b-6

[PATCH 5.4 45/73] arm64: fix inline asm in load_unaligned_zeropad()

2021-04-19 Thread Greg Kroah-Hartman
From: Peter Collingbourne commit 185f2e5f51c2029efd9dd26cceb968a44fe053c6 upstream. The inline asm's addr operand is marked as input-only, however in the case where an exception is taken it may be modified by the BIC instruction on the exception path. Fix the problem by using a temporary registe

[PATCH 5.4 41/73] Input: i8042 - fix Pegatron C15B ID entry

2021-04-19 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit daa58c8eec0a65ac8e2e77ff3ea8a233d8eec954 upstream. The Zenbook Flip entry that was added overwrites a previous one because of a typo: In file included from drivers/input/serio/i8042.h:23, from drivers/input/serio/i8042.c:131: drivers/input/serio/i8042

Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-19 Thread Salvatore Bonaccorso
Hi Shyam, On Mon, Apr 19, 2021 at 05:48:24AM +, Shyam Prasad wrote: > > > Hi Salvatore, > > Attached is a proposed fix from Paulo for older kernels. > Can you please confirm that this works for you too? So just to be clear, first apply again a738c93fb1c1 and then your additional patch on

[PATCH 5.4 03/73] scsi: qla2xxx: Dual FCP-NVMe target port support

2021-04-19 Thread Greg Kroah-Hartman
From: Michael Hernandez [ Upstream commit 84ed362ac40ca44dbbbebf767301463aa72bc797 ] Some storage arrays advertise FCP LUNs and NVMe namespaces behind the same WWN. The driver now offers a user option by way of NVRAM parameter to allow users to choose, on a per port basis, the kind of FC-4 type

[PATCH 5.4 18/73] neighbour: Disregard DEAD dst in neigh_update

2021-04-19 Thread Greg Kroah-Hartman
From: Tong Zhu [ Upstream commit d47ec7a0a7271dda08932d6208e4ab65ab0c987c ] After a short network outage, the dst_entry is timed out and put in DST_OBSOLETE_DEAD. We are in this code because arp reply comes from this neighbour after network recovers. There is a potential race condition that dst_

[PATCH 5.4 16/73] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-04-19 Thread Greg Kroah-Hartman
From: Wang Qing [ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ] The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing Signed-off-by: Vineet Gupta Signed-off-by: Sasha Le

[PATCH 5.4 36/73] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-19 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ] In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource is freed and later under spinlock, causing potential use-after-free. Set the free pointer to NULL to avoid undefined behavior. Signed-off-by: A

[PATCH 5.4 40/73] Input: s6sy761 - fix coordinate read bit shift

2021-04-19 Thread Greg Kroah-Hartman
From: Caleb Connolly commit 30b3f68715595dee7fe4d9bd91a2252c3becdf0a upstream. The touch coordinate register contains the following: byte 3 byte 2 byte 1 +++ +-+ +-+ ||| | | |

[PATCH 5.4 37/73] net: tipc: Fix spelling errors in net/tipc module

2021-04-19 Thread Greg Kroah-Hartman
From: Zheng Yongjun [ Upstream commit a79ace4b312953c5835fafb12adc3cb6878b26bd ] These patches fix a series of spelling errors in net/tipc module. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/tipc/bearer.h | 6 +++---

[PATCH 5.4 38/73] mac80211: clear sta->fast_rx when STA removed from 4-addr VLAN

2021-04-19 Thread Greg Kroah-Hartman
From: Seevalamuthu Mariappan [ Upstream commit dd0b45538146cb6a54d6da7663b8c3afd16ebcfd ] In some race conditions, with more clients and traffic configuration, below crash is seen when making the interface down. sta->fast_rx wasn't cleared when STA gets removed from 4-addr AP_VLAN interface. The

[PATCH 5.4 39/73] virt_wifi: Return micros for BSS TSF values

2021-04-19 Thread Greg Kroah-Hartman
From: A. Cody Schuffelen [ Upstream commit b57aa17f07c9270e576ef7df09f142978b5a75f0 ] cfg80211_inform_bss expects to receive a TSF value, but is given the time since boot in nanoseconds. TSF values are expected to be at microsecond scale rather than nanosecond scale. Signed-off-by: A. Cody Schu

[PATCH 5.4 32/73] net: ieee802154: forbid monitor for del llsec devkey

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 6fb8045319ef172dc88a8142e7f8b58c7608137e ] This patch forbids to del llsec devkey for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lor

[PATCH 5.4 34/73] net: ieee802154: forbid monitor for add llsec seclevel

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 9ec87e322428d4734ac647d1a8e507434086993d ] This patch forbids to add llsec seclevel for monitor interfaces which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://l

[PATCH 5.4 33/73] net: ieee802154: stop dump llsec seclevels for monitors

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Aring [ Upstream commit 4c9b4f55ad1f5a4b6206ac4ea58f273126d21925 ] This patch stops dumping llsec seclevels for monitors which we don't support yet. Otherwise we will access llsec mib which isn't initialized for monitors. Signed-off-by: Alexander Aring Link: https://lore.kernel

[PATCH 5.4 35/73] pcnet32: Use pci_resource_len to validate PCI resource

2021-04-19 Thread Greg Kroah-Hartman
From: Guenter Roeck [ Upstream commit 66c3f05ddc538ee796321210c906b6ae6fc0792a ] pci_resource_start() is not a good indicator to determine if a PCI resource exists or not, since the resource may start at address 0. This is seen when trying to instantiate the driver in qemu for riscv32 or riscv64

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