linux/drivers/iommu/amd
Gavrilov Ilia b6b26d86c6 iommu/amd: Add a length limitation for the ivrs_acpihid command-line parameter
The 'acpiid' buffer in the parse_ivrs_acpihid function may overflow,
because the string specifier in the format string sscanf()
has no width limitation.

Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.

Fixes: ca3bf5d47c ("iommu/amd: Introduces ivrs_acpihid kernel parameter")
Cc: stable@vger.kernel.org
Signed-off-by: Ilia.Gavrilov <Ilia.Gavrilov@infotecs.ru>
Reviewed-by: Kim Phillips <kim.phillips@amd.com>
Link: https://lore.kernel.org/r/20230202082719.1513849-1-Ilia.Gavrilov@infotecs.ru
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2023-02-03 11:00:44 +01:00
..
amd_iommu.h iommu/amd: Clean up bus_set_iommu() 2022-09-07 14:26:12 +02:00
amd_iommu_types.h iommu/amd: Switch to MSI base domains 2022-12-05 22:22:33 +01:00
debugfs.c
init.c iommu/amd: Add a length limitation for the ivrs_acpihid command-line parameter 2023-02-03 11:00:44 +01:00
io_pgtable.c iommu/amd/io-pgtable: Implement unmap_pages io_pgtable_ops callback 2022-09-07 16:12:33 +02:00
io_pgtable_v2.c iommu/amd: Initial support for AMD IOMMU v2 page table 2022-09-07 16:12:35 +02:00
iommu.c iommu/amd: Do not clear event/ppr log buffer when snp is enabled 2023-01-20 10:41:57 +01:00
iommu_v2.c iommu/amd: Check return value of mmu_notifier_register() 2022-11-19 11:00:41 +01:00
Kconfig iommu/dma: Clean up Kconfig 2022-09-07 14:46:59 +02:00
Makefile iommu/amd: Initial support for AMD IOMMU v2 page table 2022-09-07 16:12:35 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00