diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-03-08 04:49:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-12 16:35:02 +0200 |
commit | 6784b694ecd82c1c396f82e012ef892eb409a8d7 (patch) | |
tree | 1b34e0e33816705bca3787899848d0f9101cd1f3 /arch/parisc | |
parent | c33904fd1ef49095488060f8e3ac807c6d70ca04 (diff) |
KVM: use __vcalloc for very large allocations
[ Upstream commit 37b2a6510a48ca361ced679f92682b7b7d7d0330 ]
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: 7661809d493b ("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: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions