linux/arch/arm64/kvm
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
hyp KVM/arm64 changes for 7.3 2026-08-24 12:42:07 -04:00
vgic KVM/arm64 changes for 7.3 2026-08-24 12:42:07 -04:00
.gitignore
arch_timer.c Merge branch 'kvm-arm64/misc-7.3' into next 2026-08-19 14:08:24 -07:00
arm.c KVM/arm64 changes for 7.3 2026-08-24 12:42:07 -04:00
at.c KVM: arm64: Consider SCTLR_EL2.M when mapping the L1 VNCR page 2026-08-08 11:10:56 -07:00
config.c KVM: arm64: Add sanitisation for NVHCR_EL2 2026-07-31 00:17:04 -07:00
debug.c KVM: arm64: Read PMUVer as unsigned 2026-03-24 12:33:48 +00:00
emulate-nested.c Merge branch 'kvm-arm64/feat-nv3' into next 2026-08-19 12:27:53 -07:00
fpsimd.c KVM: arm64: nv: Don't save/restore FP register during a nested ERET or exception 2026-05-21 07:42:54 +01:00
guest.c arm64: fpsimd: Use opaque type for SVE state 2026-06-03 16:50:49 +01:00
handle_exit.c Merge branch 'kvm-arm64/misc-7.3' into next 2026-08-19 14:08:24 -07:00
hyp_trace.c KVM: arm64: Add missing hyp_enter when trapping sysreg 2026-07-23 09:56:57 +01:00
hyp_trace.h KVM: arm64: Add trace remote for the nVHE/pKVM hyp 2026-03-11 08:51:16 +00:00
hypercalls.c KVM: arm64: Use ktime_get_snapshot_id() to snapshot CLOCK_REALTIME 2026-06-04 11:04:16 +02:00
inject_fault.c KVM: arm64: Set IL for emulated SError injection 2026-06-22 10:44:08 +01:00
Kconfig KVM: arm64: tracing: add ftrace dependency 2026-03-12 15:19:30 +00:00
Makefile KVM: arm64: Add trace remote for the nVHE/pKVM hyp 2026-03-11 08:51:16 +00:00
mmio.c KVM: arm64: Fix sign-extension of MMIO loads 2026-07-06 17:18:34 +01:00
mmu.c KVM/arm64 changes for 7.3 2026-08-24 12:42:07 -04:00
nested.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
pauth.c KVM: arm64: nv: Work around lack of pauth support in old toolchains 2024-04-23 19:27:11 +01:00
pkvm.c Merge branch 'kvm-arm64/pkvm-7.3' into next 2026-08-19 12:27:35 -07:00
pmu-emul.c KVM: arm64: Add KVM_ARM_VCPU_PMU_V3_STRICT vCPU feature 2026-07-30 23:35:24 -07:00
pmu.c KVM: arm64: Use a cpucap to determine if system supports FEAT_PMUv3 2025-03-11 12:54:23 -07:00
psci.c KVM: arm64: Move PSCI helper functions to a shared header 2026-07-30 23:48:21 -07:00
ptdump.c KVM: arm64: ptdump: Flush the last region 2026-08-24 13:31:19 +00:00
pvtime.c KVM: MMU: Make the definition of 'INVALID_GPA' common 2023-01-19 21:48:38 +00:00
reset.c KVM: arm64: Factor out reusable vCPU reset helpers 2026-07-30 23:48:21 -07:00
stacktrace.c KVM: arm64: Add PKVM_DISABLE_STAGE2_ON_PANIC 2026-03-11 08:51:16 +00:00
sys_regs.c Merge branch 'kvm-arm64/misc-7.3' into next 2026-08-19 14:08:24 -07:00
sys_regs.h KVM: arm64: Extract MPIDR computation into a shared header 2026-07-30 23:48:21 -07:00
trace_arm.h KVM: arm64: Replace ternary flags with str_on_off() helper 2025-05-06 09:38:37 +01:00
trace_handle_exit.h arm64: kvm: trace_handle_exit: use string choices helper 2025-07-23 23:36:55 -07:00
trace.h
trng.c
va_layout.c KVM: arm64: Calculate hyp VA size only once 2026-01-14 10:40:11 +00:00
vgic-sys-reg-v3.c KVM: arm64: vgic-v3: Kill kvm_vgic_global_state.ich_vtr_el2 2026-07-21 10:46:41 -07:00
vmid.c KVM: arm64: Ensure a VMID is allocated before programming VTTBR_EL2 2025-02-20 16:29:28 +00:00