linux/drivers/xen
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
..
events xen: Drop CONFIG_XEN_PVHVM 2026-08-06 13:18:31 +02:00
xen-pciback PCI: use generic driver_override infrastructure 2026-04-04 00:44:30 +02:00
xenbus xenbus: Unregister reboot notifier on init failure 2026-08-13 12:48:57 +02:00
xenfs convert xenfs 2025-11-16 01:35:02 -05:00
acpi.c ACPI: PCI: IRQ: Fix INTx GSIs signedness 2026-01-05 19:06:40 +01:00
arm-device.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
balloon.c x86/xen: fix init of balloon stats again 2026-08-05 14:06:58 +02:00
biomerge.c
cpu_hotplug.c xen/cpuhotplug: Fix initial CPU offlining for PV(H) guests 2020-05-21 13:01:45 -05:00
dbgp.c
efi.c efi: Apply allowlist to EFI configuration tables when running under Xen 2023-01-23 11:33:24 +01:00
evtchn.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
features.c x86/xen: Remove undefined behavior in setup_features() 2022-06-21 16:36:11 +02:00
gntalloc.c xen/gntalloc: validate grant count before allocation 2026-07-01 09:58:24 +02:00
gntdev-common.h xen/gntdev: remove struct gntdev_copy_batch from stack 2025-07-14 17:10:09 +02:00
gntdev-dmabuf.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
gntdev-dmabuf.h drivers/xen/gntdev: use xen_pv_domain() instead of cached value 2025-09-08 17:01:36 +02:00
gntdev.c xen/gntdev: fix error handling in ioctl 2026-07-01 09:51:09 +02:00
grant-dma-iommu.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
grant-dma-ops.c of: Factor arguments passed to of_map_id() into a struct 2026-06-12 10:25:39 -05:00
grant-table.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig xen: Drop CONFIG_XEN_AUTO_XLATE 2026-08-06 13:18:32 +02:00
Makefile xen: Drop CONFIG_XEN_AUTO_XLATE 2026-08-06 13:18:32 +02:00
manage.c xen/manage: unwind partial shutdown watcher setup on error 2026-04-10 11:04:02 +02:00
mcelog.c xen/mcelog: mark g_physinfo, ncpus and xen_mce_chrdev_device as __ro_after_init 2026-06-08 09:01:02 +02:00
mem-reservation.c x86/xen: remove 32-bit pv leftovers 2021-11-02 08:03:43 -05:00
pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pcpu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
platform-pci.c xen/platform-pci: Simplify initialization of pci_device_id array 2026-06-08 08:57:25 +02:00
privcmd-buf.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
privcmd.c xen: Drop CONFIG_XEN_AUTO_XLATE 2026-08-06 13:18:32 +02:00
privcmd.h
pvcalls-back.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pvcalls-front.c xen/pvcalls: bound backend response req_id before indexing rsp[] 2026-07-01 09:31:02 +02:00
pvcalls-front.h xen: update pvcalls_front_accept prototype 2025-01-22 16:32:08 +01:00
swiotlb-xen.c dma-direct: pass attrs to dma_capable() for DMA_ATTR_CC_SHARED checks 2026-07-31 08:40:59 +02:00
sys-hypervisor.c Buffer overflow in drivers/xen/sys-hypervisor.c 2026-04-23 15:32:51 +02:00
time.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
unpopulated-alloc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xen-acpi-pad.c ACPI: PAD: xen: Stop setting acpi_device_name/class() 2026-08-03 15:26:12 +02:00
xen-acpi-processor.c xen: branch for v7.0-rc3 2026-03-07 07:44:32 -08:00
xen-balloon.c xen: balloon: Replace sprintf() with sysfs_emit() 2026-06-08 09:01:49 +02:00
xen-front-pgdir-shbuf.c xen/front-pgdir-shbuf: free grant reference head on errors 2026-07-01 09:51:41 +02:00
xen-scsiback.c scsi: xen: scsiback: Free the command tag on the TMR submit-failure path 2026-06-15 21:52:39 -04:00
xlate_mmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00