There was an error fetching the commit references. Please try again later.
KVM: use __vcalloc for very large allocations
Allocations whose size is related to the memslot size can be arbitrarily large. Do not use kvzalloc/kvcalloc, as those are limited to "not crazy" sizes that fit in 32 bits. Cc: stable@vger.kernel.org Fixes: 7661809d ("mm: don't allow oversized kvmalloc() calls") Reviewed-by:David Hildenbrand <david@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/powerpc/kvm/book3s_hv_uvmem.c 1 addition, 1 deletionarch/powerpc/kvm/book3s_hv_uvmem.c
- arch/x86/kvm/mmu/page_track.c 4 additions, 3 deletionsarch/x86/kvm/mmu/page_track.c
- arch/x86/kvm/x86.c 2 additions, 2 deletionsarch/x86/kvm/x86.c
- virt/kvm/kvm_main.c 2 additions, 2 deletionsvirt/kvm/kvm_main.c
Please register or sign in to comment