linux-stable/drivers/iommu
Kim Phillips fbac2c5be9 iommu/amd: Fix ivrs_acpihid cmdline parsing code
commit 5f18e9f886 upstream.

The second (UID) strcmp in acpi_dev_hid_uid_match considers
"0" and "00" different, which can prevent device registration.

Have the AMD IOMMU driver's ivrs_acpihid parsing code remove
any leading zeroes to make the UID strcmp succeed.  Now users
can safely specify "AMDxxxxx:00" or "AMDxxxxx:0" and expect
the same behaviour.

Fixes: ca3bf5d47c ("iommu/amd: Introduces ivrs_acpihid kernel parameter")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Cc: stable@vger.kernel.org
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20220919155638.391481-1-kim.phillips@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-07 12:07:37 +01:00
..
Kconfig
Makefile
amd_iommu.c iommu/amd: Fix backport of 140456f994 2021-08-04 11:58:01 +02:00
amd_iommu_init.c iommu/amd: Fix ivrs_acpihid cmdline parsing code 2023-01-07 12:07:37 +01:00
amd_iommu_proto.h
amd_iommu_types.h iommu/amd: Increase interrupt remapping table limit to 512 entries 2020-11-18 18:26:27 +01:00
amd_iommu_v2.c
arm-smmu-v3.c iommu/arm-smmu-v3: fix event handling soft lockup 2022-04-20 09:06:42 +02:00
arm-smmu.c iommu/arm-smmu: Add support for qcom,smmu-v2 variant 2019-02-12 19:44:54 +01:00
dma-iommu.c iommu/dma: Handle SG length overflow better 2019-09-06 10:19:41 +02:00
dmar.c iommu/vt-d: Fix PCI device refcount leak in dmar_dev_scope_init() 2022-12-08 11:15:41 +01:00
exynos-iommu.c iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate() 2020-10-14 09:48:13 +02:00
fsl_pamu.c iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe() 2023-01-07 12:07:28 +01:00
fsl_pamu.h
fsl_pamu_domain.c
fsl_pamu_domain.h
intel-iommu.c iommu/vt-d: Do not use flush-queue when caching-mode is on 2021-02-10 09:09:27 +01:00
intel-svm.c iommu/vt-d: Fix NULL pointer dereference in prq_event_thread() 2018-12-13 09:20:25 +01:00
intel_irq_remapping.c iommu/intel: Fix memleak in intel_irq_remapping_alloc 2021-01-17 13:57:55 +01:00
io-pgtable-arm-v7s.c iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables 2019-04-05 22:29:09 +02:00
io-pgtable-arm.c
io-pgtable.c
io-pgtable.h
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Fix reference count leak in iommu_group_alloc. 2020-06-03 08:16:42 +02:00
iova.c iommu/iova: Don't BUG on invalid PFNs 2020-09-03 11:21:16 +02:00
ipmmu-vmsa.c iommu/ipmmu-vmsa: Fix crash on early domain free 2018-12-13 09:20:25 +01:00
irq_remapping.c
irq_remapping.h
msm_iommu.c iommu/msm: Fix an incorrect NULL check on list iterator 2022-06-14 16:52:35 +02:00
msm_iommu.h
msm_iommu_hw-8xxx.h
mtk_iommu.c
mtk_iommu.h
mtk_iommu_v1.c
of_iommu.c
omap-iommu-debug.c iommu/omap: Fix buffer overflow in debugfs 2022-10-26 13:15:44 +02:00
omap-iommu.c iommu/omap: Register driver before setting IOMMU ops 2018-03-24 11:00:12 +01:00
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c
s390-iommu.c
tegra-gart.c
tegra-smmu.c iommu/tegra-smmu: Fix page tables in > 4 GiB memory 2020-01-04 13:40:37 +01:00