[PATCH] x86_64: Fixed guard page handling again in iounmap
authorAndi Kleen <ak@suse.de>
Fri, 20 May 2005 21:27:57 +0000 (14:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 May 2005 22:48:20 +0000 (15:48 -0700)
commit7856dfeb23c16ef3d8dac8871b4d5b93c70b59b9
tree0e9f799c3882dce14b49356c6db10bb6f4ba1713
parentc4d1fcf3a2ea89b6d6221fa8b4588c77aff50995
[PATCH] x86_64: Fixed guard page handling again in iounmap

Caused oopses again.  Also fix potential mismatch in checking if
change_page_attr was needed.

To do it without races I needed to change mm/vmalloc.c to export a
__remove_vm_area that does not take vmlist lock.

Noticed by Terence Ripperda and based on a patch of his.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/mm/ioremap.c
include/linux/vmalloc.h
mm/vmalloc.c