kernel_samsung_a53x/arch/powerpc/kvm
Paolo Bonzini e4cf6b17e6 KVM: use __vcalloc for very large allocations
commit 37b2a6510a48ca361ced679f92682b7b7d7d0330 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: 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: Alexander Ofitserov <oficerovas@altlinux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:12:59 +01:00
..
book3s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_32_mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_32_mmu_host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_32_sr.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_mmu_host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_mmu_hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_mmu_radix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_slb.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_vio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_64_vio_hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_emulate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_exports.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_builtin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_hmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_interrupts.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_nested.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_ras.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_rm_mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_rm_xics.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_rm_xive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_rmhandlers.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_tm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_tm_builtin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_hv_uvmem.c KVM: use __vcalloc for very large allocations 2024-11-18 12:12:59 +01:00
book3s_interrupts.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_mmu_hpte.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_paired_singles.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_pr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_pr_papr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_rmhandlers.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_rtas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_segment.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xics.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xics.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xive.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xive_native.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s_xive_template.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booke.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booke.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booke_emulate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booke_interrupts.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bookehv_interrupts.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500_emulate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500_mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500_mmu_host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500_mmu_host.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e500mc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
emulate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
emulate_loadstore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fpu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powerpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timing.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tm.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_book3s.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_booke.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_hv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_pr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00