]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommufd: Destroy the pages content after detaching from dmabuf
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Jun 2026 00:20:25 +0000 (21:20 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Jun 2026 00:20:25 +0000 (21:20 -0300)
commitf2d70dbd3dcefa8e3c380beff9c31f5f033a4221
tree63c6dc7c81a915e3711f365ad63f2edc174a5557
parente745cd2c749e557c14a15ac931761c3f58c24489
iommufd: Destroy the pages content after detaching from dmabuf

Sashiko points out this has gotten out of order, the mutex could still be
in use through the dmabuf invalidation callbacks. Don't destroy any of the
pages content until the dmabuf is fully detached.

Fixes: 71db84a092c3 ("iommufd: Add DMABUF to iopt_pages")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/pages.c