linux/drivers/iommu
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
..
amd Merge branches 'arm/smmu/updates', 'arm/smmu/bindings', 'mediatek', 'qualcomm/msm', 'rockchip', 'ti/omap', 'riscv', 'intel/vt-d', 'amd/amd-vi', 'core' and 'typos' into next 2026-08-11 09:12:19 +02:00
arm treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
generic_pt iommupt: Return zero for invalid iova_to_phys() ranges 2026-08-10 09:51:52 +02:00
hyperv iommu/hyperv: Create hyperv subdirectory under drivers/iommu 2026-06-07 22:55:56 -07:00
intel Merge branches 'arm/smmu/updates', 'arm/smmu/bindings', 'mediatek', 'qualcomm/msm', 'rockchip', 'ti/omap', 'riscv', 'intel/vt-d', 'amd/amd-vi', 'core' and 'typos' into next 2026-08-11 09:12:19 +02:00
iommufd treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
riscv iommu/riscv: Drop superfluous zeros in pci_device_id array 2026-07-09 10:09:39 +02:00
apple-dart.c iommu/apple-dart: correct CONFIG_PCIE_APPLE macro name in comment 2026-06-11 15:42:23 +02:00
dma-iommu.c dma-mapping updates for Linux 7.3: 2026-08-24 11:35:46 -07:00
dma-iommu.h iommu: Tidy domain for iommu_setup_dma_ops() 2026-01-10 10:26:43 +01:00
exynos-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fsl_pamu_domain.c iommu: Pass in old domain to attach_dev callback functions 2025-10-27 13:55:35 +01:00
fsl_pamu_domain.h
fsl_pamu.c iommu/fsl: use platform_device_set_of_node() 2026-07-10 16:07:09 +02:00
fsl_pamu.h
io-pgfault.c iommu/iommufd: Fix IOPF group ownership UAF 2026-07-26 13:16:21 -03:00
io-pgtable-arm-selftests.c iommu/io-pgtable-arm-selftests: Use KUnit 2025-11-13 16:25:32 +01:00
io-pgtable-arm-v7s.c iommu, debugobjects: avoid gcc-16.1 section mismatch warnings 2026-05-28 09:07:12 +02:00
io-pgtable-arm.c iommu/io-pgtable-arm: Use address conversion consistently 2026-05-19 11:03:45 +02:00
io-pgtable-arm.h
io-pgtable-dart.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
io-pgtable.c iommu/amd: Remove AMD io_pgtable support 2025-11-05 09:08:57 +01:00
iommu-debug-pagealloc.c iommu: debug-pagealloc: Use page_ext_get_from_phys() 2026-01-21 12:51:49 +01:00
iommu-debugfs.c
iommu-pages.c iommu/pages: Add support for incoherent IOMMU page table walkers 2025-11-05 09:47:43 +01:00
iommu-pages.h iommu/pages: Fix iommu_pages_flush_incoherent() for non-x86 2026-04-27 13:59:36 +02:00
iommu-priv.h iommu: Add calls for IOMMU_DEBUG_PAGEALLOC 2026-01-10 10:52:26 +01:00
iommu-sva.c iommu/sva: Set handle->dev before the SVA handle is visible 2026-08-10 09:51:51 +02:00
iommu-sysfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
iommu-traces.c
iommu.c iommufd v7.3 merge window pull request 2026-08-19 12:42:58 -07:00
iova.c Merge branches 'arm/smmu/updates', 'arm/smmu/bindings', 'mediatek', 'qualcomm/msm', 'rockchip', 'ti/omap', 'riscv', 'intel/vt-d', 'amd/amd-vi', 'core' and 'typos' into next 2026-08-11 09:12:19 +02:00
ipmmu-vmsa.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
irq_remapping.c iommu/hyperv: Create hyperv subdirectory under drivers/iommu 2026-06-07 22:55:56 -07:00
irq_remapping.h
Kconfig hyperv-next for v7.2-rc1 2026-06-22 08:06:13 -07:00
Makefile hyperv-next for v7.2-rc1 2026-06-22 08:06:13 -07:00
msm_iommu_hw-8xxx.h
msm_iommu.c iommu/msm: Unwind probe state on registration failure 2026-07-24 13:05:53 +00:00
msm_iommu.h
mtk_iommu_v1.c iommu/mediatek-v1: Fix off-by-one in MT2701_LARB_NR_MAX 2026-07-09 10:13:26 +02:00
mtk_iommu.c iommu/mtk: Fix spelling of correspondence in comment 2026-07-22 12:28:59 +00:00
of_iommu.c of: Factor arguments passed to of_map_id() into a struct 2026-06-12 10:25:39 -05:00
omap-iommu-debug.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
omap-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
omap-iommu.h iommu/omap: fix device leaks on probe_device() 2025-11-17 09:49:44 +01:00
omap-iopgtable.h
rockchip-iommu.c iommu/rockchip: Clear stale page faults before enabling stall 2026-07-26 13:10:27 +00:00
s390-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sprd-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sun50i-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tegra-smmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio-iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vsi-iommu.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00