Skip to content
Snippets Groups Projects
user avatar
Vitaly Kuznetsov authored
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: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarPaolo 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: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
df467e5d
Name Last commit Last update