Re: [PATCH v3 1/7] mm: Add functions to track page directory modifications

2020-06-06 Thread Catalin Marinas
On Fri, Jun 05, 2020 at 06:01:16PM -0700, Andrew Morton wrote: > On Fri, 5 Jun 2020 12:46:55 +0100 Catalin Marinas > wrote: > > On Fri, Jun 05, 2020 at 11:08:13AM +0100, Catalin Marinas wrote: > > > This patch causes a kernel panic on arm64 (and possibly powerpc, I > > > haven't tried). arm64

Re: [PATCH v3 1/7] mm: Add functions to track page directory modifications

2020-06-05 Thread Andrew Morton
On Fri, 5 Jun 2020 12:46:55 +0100 Catalin Marinas wrote: > On Fri, Jun 05, 2020 at 11:08:13AM +0100, Catalin Marinas wrote: > > This patch causes a kernel panic on arm64 (and possibly powerpc, I > > haven't tried). arm64 still uses the 5level-fixup.h and pud_alloc() > > checks for the empty p4d

Re: [PATCH v3 1/7] mm: Add functions to track page directory modifications

2020-06-05 Thread Catalin Marinas
On Fri, Jun 05, 2020 at 11:08:13AM +0100, Catalin Marinas wrote: > This patch causes a kernel panic on arm64 (and possibly powerpc, I > haven't tried). arm64 still uses the 5level-fixup.h and pud_alloc() > checks for the empty p4d with pgd_none() instead of p4d_none(). Ah, should have checked the

Re: [PATCH v3 1/7] mm: Add functions to track page directory modifications

2020-06-05 Thread Catalin Marinas
Hi Joerg, On Fri, May 15, 2020 at 04:00:17PM +0200, Joerg Roedel wrote: > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 5a323422d783..022fe682af9e 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2078,13 +2078,54 @@ static inline pud_t *pud_alloc(struct mm_struct

[PATCH v3 1/7] mm: Add functions to track page directory modifications

2020-05-15 Thread Joerg Roedel
From: Joerg Roedel Add page-table allocation functions which will keep track of changed directory entries. They are needed for new PGD, P4D, PUD, and PMD entries and will be used in vmalloc and ioremap code to decide whether any changes in the kernel mappings need to be synchronized between