linux/drivers/iommu/amd
Pengpeng Hou fb80117fdd iommu/amd: Bound the early ACPI HID map
The ivrs_acpihid command-line parser appends entries to a fixed
four-element early_acpihid_map array. Unlike the sibling IOAPIC and HPET
parsers, it does not reject a fifth entry before incrementing the map size.

Check the capacity at the common found label before parsing the HID and
UID or writing the entry.

Fixes: ca3bf5d47c ("iommu/amd: Introduces ivrs_acpihid kernel parameter")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Ankit Soni <Ankit.Soni@amd.com>
Signed-off-by: Will Deacon <will@kernel.org>
2026-07-21 11:34:46 +00:00
..
amd_iommu_types.h Merge branches 'apple/dart', 'arm/smmu/updates', 'arm/smmu/bindings', 'rockchip', 'verisilicon', 'riscv', 'intel/vt-d', 'amd/amd-vi' and 'core' into next 2026-06-12 14:57:23 +02:00
amd_iommu.h Merge branches 'apple/dart', 'arm/smmu/updates', 'arm/smmu/bindings', 'rockchip', 'verisilicon', 'riscv', 'intel/vt-d', 'amd/amd-vi' and 'core' into next 2026-06-12 14:57:23 +02:00
debugfs.c iommu/amd: Remove latent out-of-bounds access in IOMMU debugfs 2026-05-11 09:52:54 +02:00
init.c iommu/amd: Bound the early ACPI HID map 2026-07-21 11:34:46 +00:00
iommu.c iommu/amd: Wait for completion instead of returning early in iommu_completion_wait() 2026-07-21 10:57:12 +00:00
iommufd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
iommufd.h iommu/amd: Fix type of type parameter to amd_iommufd_hw_info() 2026-01-28 15:13:01 +01:00
Kconfig iommu/amd: Add support for hw_info for iommu capability query 2026-01-18 10:56:09 +01:00
Makefile iommu/amd: Add support for nested domain allocation 2026-01-18 10:56:13 +01:00
nested.c iommu/amd: Fix nested domain leak 2026-07-15 12:28:04 +01:00
pasid.c iommu/amd: Pass last in through to build_inv_address() 2026-06-12 09:18:59 +02:00
ppr.c iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19 2026-04-27 13:49:36 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00