linux-stable/virt
Paolo Bonzini c71e1c1a08 KVM: use __vcalloc for very large allocations
commit 37b2a6510a upstream.

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: 7661809d49 ("mm: don't allow oversized kvmalloc() calls")
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Ofitserov <oficerovas@altlinux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 08:41:55 +01:00
..
kvm KVM: use __vcalloc for very large allocations 2024-02-23 08:41:55 +01:00
lib Revert "irqbypass: do not start cons/prod when failed connect" 2021-06-03 09:00:34 +02:00
Makefile