From: Hugh Dickins Date: Tue, 5 Feb 2008 22:26:01 +0000 (+0000) Subject: stop c_p_a corrupting the pds X-Git-Tag: v2.6.25-rc1~784 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8cb2a7c1e95e472b5ad8cbde4d5c7bb65c532603;p=linux-2.6-omap-h63xx.git 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 --- 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;