Re: [PATCH] Fix possible race with 4level-fixup.h

2005-02-17 Thread Nick Piggin
Benjamin Herrenschmidt wrote: Index: linux-work/include/asm-generic/4level-fixup.h === --- linux-work.orig/include/asm-generic/4level-fixup.h 2005-01-24 17:09:49.0 +1100 +++ linux-work/include/asm-generic/4level-fixup.h

Re: [PATCH] Fix possible race with 4level-fixup.h

2005-02-17 Thread Benjamin Herrenschmidt
On Thu, 2005-02-17 at 19:33 +1100, Nick Piggin wrote: > Benjamin Herrenschmidt wrote: > > Hi ! > > > > When using 4level-fixup.h, a PMD page may end up beeing freed before the > > matching PGD entry is cleared due to the way the compatibility macros > > work. This can cause nasty races on some arc

Re: [PATCH] Fix possible race with 4level-fixup.h

2005-02-17 Thread Nick Piggin
Benjamin Herrenschmidt wrote: Hi ! When using 4level-fixup.h, a PMD page may end up beeing freed before the matching PGD entry is cleared due to the way the compatibility macros work. This can cause nasty races on some architectures. This patch fixes it by defining pud_clear() to be pgd_clear(). Th

[PATCH] Fix possible race with 4level-fixup.h

2005-02-16 Thread Benjamin Herrenschmidt
Hi ! When using 4level-fixup.h, a PMD page may end up beeing freed before the matching PGD entry is cleared due to the way the compatibility macros work. This can cause nasty races on some architectures. This patch fixes it by defining pud_clear() to be pgd_clear(). That means we'll actually writ