[PATCH] 18pre7aa1 pagetable corroops

Hugh Dickins (hugh@veritas.com)
Wed, 30 Jan 2002 17:55:38 +0000 (GMT)


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/