From 8cb2a7c1e95e472b5ad8cbde4d5c7bb65c532603 Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Tue, 5 Feb 2008 22:26:01 +0000 Subject: [PATCH] stop c_p_a corrupting the pds When change_page_attr splits a large page on x86_32 (without PAE), it is currently corrupting every process's page directory: fix that by removing the thinko which passes down a physical instead of a virtual address. Signed-off-by: Hugh Dickins Signed-off-by: Linus Torvalds --- arch/x86/mm/pageattr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index bb55a78dcd6..16ce841f08d 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -237,7 +237,6 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte) if (!SHARED_KERNEL_PMD) { struct page *page; - address = __pa(address); list_for_each_entry(page, &pgd_list, lru) { pgd_t *pgd; pud_t *pud; -- 2.41.1