]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix possible race with 4level-fixup.h
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 16 Feb 2005 23:53:51 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 16 Feb 2005 23:53:51 +0000 (15:53 -0800)
commit4b59f81265401835d53ef47305222102ab8009bc
treebba0618c4a822baca11f046053e52bbfe2469e45
parent9a7a579e7532dc9c8ca995c0bd247bd8f0c9f696
[PATCH] Fix possible race with 4level-fixup.h

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 write 0 twice, a small price to pay here,
especially seeing how easy it is to convert to the new headers anyway
(hint hint, ppc & ppc64 patches as soon as 2.6.11 is out).

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/4level-fixup.h