android_kernel_xiaomi_sm8450/arch/powerpc
Paolo Bonzini c71e1c1a08 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-02-23 08:41:55 +01:00
..
boot powerpc: dts: t1040rdb: fix compatible string for Rev A boards 2023-03-17 08:45:10 +01:00
configs Remove DECnet support from kernel 2023-06-21 15:45:38 +02:00
crypto crypto: powerpc/crc-vpmsum_test - Fix sparse endianness warning 2020-09-04 17:57:15 +10:00
include powerpc: Remove in_kernel_text() 2024-01-25 14:37:39 -08:00
kernel powerpc: update ppc_save_regs to save current r1 in pt_regs 2024-01-15 18:48:07 +01:00
kexec powerpc: Set crashkernel offset to mid of RMA region 2022-04-13 21:00:56 +02:00
kvm KVM: use __vcalloc for very large allocations 2024-02-23 08:41:55 +01:00
lib powerpc: add crtsavres.o to always-y instead of extra-y 2024-01-25 14:37:39 -08:00
math-emu powerpc/math_emu/efp: Include module.h 2022-10-26 13:25:40 +02:00
mm powerpc/mm: Fix boot crash with FLATMEM 2023-11-08 17:30:49 +01:00
net powerpc64/bpf: Limit 'ldbrx' to processors compliant with ISA v2.06 2022-02-01 17:25:45 +01:00
oprofile powerpc/oprofile: fix spelling mistake "contex" -> "context" 2020-08-25 01:31:33 +10:00
perf powerpc/imc-pmu: Add a null pointer check in update_events_in_group() 2024-01-25 14:37:40 -08:00
platforms powerpc/powernv: Add a null pointer check in opal_powercap_init() 2024-01-25 14:37:39 -08:00
purgatory powerpc/purgatory: remove PGO flags 2023-06-21 15:45:37 +02:00
sysdev powerpc/xive: Fix endian conversion size 2023-11-20 11:06:53 +01:00
tools powerpc/tools: Remove 90 line limit in checkpatch script 2020-09-08 22:57:11 +10:00
xmon powerpc: Don't include lppaca.h in paca.h 2023-09-19 12:20:15 +02:00
Kbuild powerpc/kexec: Move kexec files into a dedicated subdir. 2019-11-21 15:41:34 +11:00
Kconfig powerpc/kasan: Force thread size increase with KASAN 2022-06-14 18:32:39 +02:00
Kconfig.debug powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y 2023-07-27 08:44:09 +02:00
Makefile powerpc: Fail build if using recordmcount with binutils v2.37 2023-07-27 08:44:26 +02:00
Makefile.postlink powerpc: unrel_branch_check.sh: use nm to find symbol value 2020-09-02 11:00:22 +10:00