KVM: VMX: fix page leak in hardware_setup()
PATCH 1/1 KVM: VMX: fix page leak in hardware_setup()
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 <[email protected]>
--- arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-)
arch/x86/kvm/vmx.c +0 -1
@@ -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 );
Signature · 1 line
2.15.0.531.g2ccb3012c9-goog
Quoted 13 lines · Jim Mattson
vmx_io_bitmap_bshould not be allocated twice.Fixes 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps")Signed-off-by Jim Mattson <[email protected]>--- arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-)arch/x86/kvm/vmx.c +0
-0
arch/x86/kvm/vmx.c static __init int hardware_setup(void) · line 6756
Quoted 7 lines
arch/x86/kvm/vmx.c +0
-1@@ -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 );
Reviewed-by Krish Sadhukhan <[email protected]>
Quoted 14 lines · Jim Mattson
vmx_io_bitmap_bshould not be allocated twice.Fixes 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps")Signed-off-by Jim Mattson <[email protected]>--- arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-)arch/x86/kvm/vmx.c +0
-0
arch/x86/kvm/vmx.c static __init int hardware_setup(void) · line 6756
Quoted 7 lines
arch/x86/kvm/vmx.c +0
-1@@ -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 );
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Thanks, David / dhildenb
Radim Krčmář
Applied2017-12-01 09:57-0800, Jim Mattson:
Quoted 5 lines
vmx_io_bitmap_bshould not be allocated twice.Fixes 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps")Signed-off-by Jim Mattson <[email protected]>---
Applied, thanks.
Quoted 18 lines
arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-)arch/x86/kvm/vmx.c +0
-1@@ -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 );Signature · 1 line
2.15.0.531.g2ccb3012c9-goog
Quoted 13 lines · Jim Mattson
vmx_io_bitmap_bshould not be allocated twice.Fixes 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps")Signed-off-by Jim Mattson <[email protected]>--- arch/x86/kvm/vmx.c | 1 - 1 file changed, 1 deletion(-)arch/x86/kvm/vmx.c +0
-0
arch/x86/kvm/vmx.c static __init int hardware_setup(void) · line 6756
Quoted 7 lines
arch/x86/kvm/vmx.c +0
-1@@ -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 );
Reviewed-by Quan Xu <[email protected]>