From: Shaohua Li Date: Mon, 2 Aug 2010 00:49:34 +0000 (+0800) Subject: x86, vdso: Unmap vdso pages X-Git-Tag: firefly_0821_release~9833^2~1246^7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=be783a47214afc5a0aea9dafcbd9f1535ba05e94;hp=9fe6206f400646a2322096b56c59891d530e8d51;p=firefly-linux-kernel-4.4.55.git x86, vdso: Unmap vdso pages 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 LKML-Reference: <20100802004934.GA2505@sli10-desk.sh.intel.com> Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c index ac74869b8140..80f23ed483ef 100644 --- a/arch/x86/vdso/vma.c +++ b/arch/x86/vdso/vma.c @@ -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: