[PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-07 Thread Hong H. Pham
From: "Hong H. Pham" In pte_alloc_one(), pgtable_page_ctor() is passed an address that has not been converted by page_address() to the newly allocated PTE page. When the PTE is freed, __pte_free_tlb() calls pgtable_page_dtor() with an address to the PTE page that has been converted by page_addre

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-07 Thread Benjamin Herrenschmidt
On Sat, 2013-12-07 at 09:06 -0500, Hong H. Pham wrote: > diff --git a/arch/powerpc/include/asm/pgalloc-32.h > b/arch/powerpc/include/asm/pgalloc-32.h > index 27b2386..842846c 100644 > --- a/arch/powerpc/include/asm/pgalloc-32.h > +++ b/arch/powerpc/include/asm/pgalloc-32.h > @@ -84,10 +84,8 @@ st

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-07 Thread Benjamin Herrenschmidt
On Sun, 2013-12-08 at 07:27 +1100, Benjamin Herrenschmidt wrote: > On Sat, 2013-12-07 at 09:06 -0500, Hong H. Pham wrote: > > > diff --git a/arch/powerpc/include/asm/pgalloc-32.h > > b/arch/powerpc/include/asm/pgalloc-32.h > > index 27b2386..842846c 100644 > > --- a/arch/powerpc/include/asm/pgall

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-09 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Sat, 2013-12-07 at 09:06 -0500, Hong H. Pham wrote: > >> diff --git a/arch/powerpc/include/asm/pgalloc-32.h >> b/arch/powerpc/include/asm/pgalloc-32.h >> index 27b2386..842846c 100644 >> --- a/arch/powerpc/include/asm/pgalloc-32.h >> +++ b/arch/powerpc/include

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-09 Thread Aneesh Kumar K.V
"Hong H. Pham" writes: > From: "Hong H. Pham" > > In pte_alloc_one(), pgtable_page_ctor() is passed an address that has > not been converted by page_address() to the newly allocated PTE page. > > When the PTE is freed, __pte_free_tlb() calls pgtable_page_dtor() > with an address to the PTE page

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-15 Thread Sebastian Andrzej Siewior
* Hong H. Pham | 2013-12-07 09:06:33 [-0500]: >On PPC32, only SMP kernels are affected. > >On PPC64, only SMP kernels with 4K page size are affected. $ uname -a Linux mpc8536-1 3.12.1-rt3-00281-g9de268d #76 SMP PREEMPT RT Fri Nov 22 16:53:05 CET 2013 ppc GNU/Linux $ uptime 22:01:10 up 22 days,