Re: [PATCH] iommu/amd: Fix PCI device reference leak in PPR handling
From: Vasant Hegde
Date: Sat Aug 22 2026 - 10:10:15 EST
On 8/14/2026 7:09 PM, Ruoyu Wang wrote:
> [You don't often get email from ruoyuw560@xxxxxxxxx. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> pci_get_domain_bus_and_slot() takes a reference on the returned PCI
> device. iommu_call_iopf_notifier() fails to release it after either
> reporting a valid PPR fault or completing a rejected request. Each
> handled request therefore leaks a reference and can prevent the PCI
> device from being released.
>
> Call pci_dev_put() after the final use of the lookup reference on both
> paths.
This was recently fixed by commit af3b69b16383.
-Vasant