linux/arch/riscv/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
..
aia_aplic.c RISC-V: KVM: Account VM-scoped allocations to the VM cgroup 2026-08-01 14:14:06 +05:30
aia_device.c RISC-V: KVM: Reject overlapping AIA IMSIC address fields 2026-08-07 20:48:39 +05:30
aia_imsic.c RISC-V: KVM: Account VM-scoped allocations to the VM cgroup 2026-08-01 14:14:06 +05:30
aia.c KVM: RISC-V: Add CPU PM notifier for non-retention idle states 2026-08-12 22:07:07 +05:30
gstage.c RISC-V: KVM: Improve dirty log clearing by skipping zero bits in mask 2026-08-07 18:44:46 +05:30
isa.c Arm: 2026-08-25 11:48:04 -07:00
Kconfig KVM: remove CONFIG_KVM_GENERIC_MMU_NOTIFIER 2026-02-28 15:31:35 +01:00
main.c Arm: 2026-08-25 11:48:04 -07:00
Makefile RISC-V: KVM: Factor-out VCPU config into separate sources 2026-04-03 17:48:40 +05:30
mmu.c RISC-V: KVM: Allow memslots ending at the GPA limit 2026-08-07 20:30:34 +05:30
nacl.c KVM: riscv: Fix infinite loop in NACL hfence entry allocation 2026-08-01 14:27:36 +05:30
tlb.c RISC-V: KVM: Guard HFENCE range loops against overflow 2026-08-08 11:29:41 +05:30
trace.h RISC-V: KVM: Add more arch-specific tracepoints 2026-07-30 13:13:05 +05:30
vcpu_config.c RISC-V: KVM: Add SBI extension validate callback 2026-07-30 11:38:58 +05:30
vcpu_exit.c RISC-V: KVM: Add more arch-specific tracepoints 2026-07-30 13:13:05 +05:30
vcpu_fp.c riscv: Standardize extension capitalization 2026-08-07 19:24:33 -06:00
vcpu_insn.c RISC-V: KVM: Add more arch-specific tracepoints 2026-07-30 13:13:05 +05:30
vcpu_onereg.c Arm: 2026-08-25 11:48:04 -07:00
vcpu_pmu.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
vcpu_sbi_base.c RISC-V: KVM: Add separate source for forwarded SBI extensions 2025-11-24 09:55:36 +05:30
vcpu_sbi_forward.c RISC-V: KVM: Add SBI MPXY extension support for Guest 2025-11-24 09:55:36 +05:30
vcpu_sbi_fwft.c RISC-V: KVM: Account VM-scoped allocations to the VM cgroup 2026-08-01 14:14:06 +05:30
vcpu_sbi_hsm.c KVM: RISC-V: refactor sbi reset request 2025-05-21 09:34:49 +05:30
vcpu_sbi_pmu.c RISC-V: KVM: Implement get event info function 2025-09-16 11:49:31 +05:30
vcpu_sbi_replace.c RISC-V: KVM: Add separate source for forwarded SBI extensions 2025-11-24 09:55:36 +05:30
vcpu_sbi_sta.c RISC-V: KVM: Fix invalid HVA warning in steal-time recording 2026-05-18 10:19:18 +05:30
vcpu_sbi_system.c RISC-V: KVM: Document a TOCTOU race in SBI system suspend handler 2026-06-04 11:12:40 +05:30
vcpu_sbi_v01.c RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts 2026-08-08 11:40:39 +05:30
vcpu_sbi.c RISC-V: KVM: Reset the SBI extension when disable it 2026-07-30 11:38:58 +05:30
vcpu_switch.S RISC-V: KVM: Use SBI sync SRET call when available 2024-10-28 16:44:03 +05:30
vcpu_timer.c RISC-V: KVM: Fix timer state restore 2026-06-04 12:18:43 +05:30
vcpu_vector.c Arm: 2026-08-25 11:48:04 -07:00
vcpu.c RISC-V: KVM: fix vcpu vector context handling for kernel-mode vector 2026-08-13 13:20:02 +05:30
vm.c RISC-V: KVM: Reuse KVM_CAP_VM_GPA_BITS to select HGATP.MODE 2026-04-04 13:48:21 +05:30
vmid.c RISC-V: KVM: Support runtime configuration for per-VM's HGATP mode 2026-04-04 13:21:21 +05:30