x86, vdso: Unmap vdso pages
authorShaohua Li <[email protected]>
Mon, 2 Aug 2010 00:49:34 +0000 (08:49 +0800)
committerH. Peter Anvin <[email protected]>
Mon, 2 Aug 2010 22:11:59 +0000 (15:11 -0700)
We mapped vdso pages but never unmapped them and the virtual address
is lost after exiting from the function, so unmap vdso pages here.

Signed-off-by: Shaohua Li <[email protected]>
LKML-Reference: <20100802004934[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/vdso/vma.c

index ac74869b8140754b45277126fb6f5dcc5a9e6834..80f23ed483efa9e0f0bab3ff9bfb5cf0bc9c4f8e 100644 (file)
@@ -67,6 +67,7 @@ static int __init init_vdso_vars(void)
        *(typeof(__ ## x) **) var_ref(VDSO64_SYMBOL(vbase, x), #x) = &__ ## x;
 #include "vextern.h"
 #undef VEXTERN
+       vunmap(vbase);
        return 0;
 
  oom: