[PATCH] 18pre7aa1 pagetable corroops

From: Hugh Dickins (hugh@veritas.com)
Date: Wed Jan 30 2002 - 12:55:38 EST


clear_pagetable corrupts memory and oopses when CONFIG_HIGHMEM,
but the pagetable has been allocated from low memory.

Hugh

--- 2.4.18-pre7aa1/include/linux/highmem.h Wed Jan 30 15:30:21 2002
+++ linux/include/linux/highmem.h Wed Jan 30 15:30:21 2002
@@ -103,7 +103,7 @@
 {
         void * vaddr = kmap_pagetable(page);
         clear_page(vaddr);
- kunmap_high(vaddr);
+ kunmap_vaddr((unsigned long)vaddr);
 }
 
 /*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:21 EST