From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Mattson Subject: [PATCH] KVM: VMX: fix page leak in hardware_setup() Date: Fri, 1 Dec 2017 09:57:56 -0800 Message-ID: <20171201175756.16841-1-jmattson@google.com> Cc: Jim Mattson To: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , kvm@vger.kernel.org Return-path: Received: from mail-io0-f196.google.com ([209.85.223.196]:39777 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbdLAR6R (ORCPT ); Fri, 1 Dec 2017 12:58:17 -0500 Received: by mail-io0-f196.google.com with SMTP id h12so12116221iof.6 for ; Fri, 01 Dec 2017 09:58:17 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: vmx_io_bitmap_b should not be allocated twice. Fixes: 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps") Signed-off-by: Jim Mattson --- arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 4704aaf6d19e..5fb5c4aff1cf 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -6751,7 +6751,6 @@ static __init int hardware_setup(void) goto out; } - vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL); memset(vmx_vmread_bitmap, 0xff, PAGE_SIZE); memset(vmx_vmwrite_bitmap, 0xff, PAGE_SIZE); -- 2.15.0.531.g2ccb3012c9-goog