linux/drivers/iommu/iommufd
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
..
device.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
double_span.h
driver.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
eventq.c iommu/iommufd: Fix IOPF group ownership UAF 2026-07-26 13:16:21 -03:00
hw_pagetable.c iommufd: Support a HWPT without an iommu driver for noiommu 2026-07-14 11:11:00 -03:00
hwpt_noiommu.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
io_pagetable.c iommufd: Add an ioctl to query PA from IOVA for noiommu mode 2026-07-14 12:05:01 -03:00
io_pagetable.h types: reuse common phys_vec type instead of DMABUF open‑coded variant 2026-01-19 10:13:29 -07:00
ioas.c iommufd v7.3 merge window pull request 2026-08-19 12:42:58 -07:00
iommufd_private.h iommufd: Add an ioctl to query PA from IOVA for noiommu mode 2026-07-14 12:05:01 -03:00
iommufd_test.h iommufd/selftest: Remove MOCK_IOMMUPT_AMDV1 format 2026-03-31 13:13:08 -03:00
iova_bitmap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig iommufd: Support a HWPT without an iommu driver for noiommu 2026-07-14 11:11:00 -03:00
main.c iommufd: Add an ioctl to query PA from IOVA for noiommu mode 2026-07-14 12:05:01 -03:00
Makefile iommufd: Support a HWPT without an iommu driver for noiommu 2026-07-14 11:11:00 -03:00
pages.c iommufd: Reject DMABUF pages from the access pin path 2026-07-13 14:27:44 -03:00
selftest.c iommufd: Fix UAF in selftest IOPF reporting 2026-08-13 14:30:55 -03:00
vfio_compat.c iommufd: vfio compatibility extension check for noiommu mode 2026-03-02 20:29:01 -04:00
viommu.c iommufd v7.3 merge window pull request 2026-08-19 12:42:58 -07:00