Re: [PATCH] Fix buf in zeromap_pud_range() losing virtual address

2005-02-17 Thread Benjamin Herrenschmidt
On Thu, 2005-02-17 at 09:33 +0100, Andi Kleen wrote: > Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > > > > zeromap_pud_range() is one of these page tables walking functions that > > split the address into a base and an offset. It forgets to add back the > > "base" when calling the lower leve

Re: [PATCH] Fix buf in zeromap_pud_range() losing virtual address

2005-02-17 Thread Andi Kleen
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > > zeromap_pud_range() is one of these page tables walking functions that > split the address into a base and an offset. It forgets to add back the > "base" when calling the lower level zeromap_pmd_range(), thus passing a > bogus virtual address.

[PATCH] Fix buf in zeromap_pud_range() losing virtual address

2005-02-16 Thread Benjamin Herrenschmidt
Hi ! This patch fixes a nasty bug that took us almost a week to track down on ppc64, introduced by the 4L page table changes, and resulting in random memory corruption. All archs that rely on a PTE page's struct page to contain the mm & address (in mapping/index) will be affected. zeromap_pud_ran