Re: [PATCH v4 02/18] PCI/P2PDMA: Wait for RCU readers before freeing state
Jason Gunthorpe <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,dev.linux.lists.iommu,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <178761377034.3197084.18004935510651805366.b4-review@b4> |
On Fri, 21 Aug 2026 22:38:33 +0300, Leon Romanovsky <[email protected]> wrote: > pci_p2pmem_find_many() scans all PCI devices without locking or > protection against driver unbind, including devices with poolless > P2PDMA state. pci_has_p2pmem() may observe pdev->p2pdma just before > driver unbind clears it, while pci_p2pdma_release() skips the grace > period when no pool is present. This allows devres to free the object > while it is still in use. > > [...] Reviewed-by: Jason Gunthorpe <[email protected]> -- Jason