ChangeSet 1.2231.1.79, 2005/03/28 19:38:32-08:00, [EMAIL PROTECTED]
[PATCH] x86_64: Only free PMDs and PUDs after other CPUs have been
flushed
This avoids a race on AMD systems where other CPUs could speculatively
follow
an already freed page table.
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
pgalloc.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -Nru a/include/asm-x86_64/pgalloc.h b/include/asm-x86_64/pgalloc.h
--- a/include/asm-x86_64/pgalloc.h 2005-03-28 21:23:50 -08:00
+++ b/include/asm-x86_64/pgalloc.h 2005-03-28 21:23:50 -08:00
@@ -98,7 +98,8 @@
}
#define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte))
-#define __pmd_free_tlb(tlb,x) pmd_free(x)
-#define __pud_free_tlb(tlb,x) pud_free(x)
+
+#define __pmd_free_tlb(tlb,x) tlb_remove_page((tlb),virt_to_page(x))
+#define __pud_free_tlb(tlb,x) tlb_remove_page((tlb),virt_to_page(x))
#endif /* _X86_64_PGALLOC_H */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html