KVM: x86: Use __vcalloc() in kvm_page_track_write_tracking_alloc()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2119111 commit 37b2a651 Author: Paolo Bonzini <pbonzini@redhat.com> Date: Tue Mar 8 04:49:37 2022 -0500 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> RHEL-only: Upstream commit 37b2a651 ("KVM: use __vcalloc for very large allocations") was previously backported without the hunk which goes to kvm_page_track_write_tracking_alloc(). Signed-off-by:
Vitaly Kuznetsov <vkuznets@redhat.com>
Please register or sign in to comment