]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommufd: Check the domain owner of the parent before creating a nesting domain
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 29 Aug 2024 13:19:59 +0000 (10:19 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 5 Sep 2024 14:25:40 +0000 (11:25 -0300)
commit73183ad6ea51029d04b098286dcee98d715015f1
tree4a360ea2d7b902327bf4be5720f8629a8baa2dc1
parent76889bbaabf5cab981a74ed69cb3816921edc5d4
iommufd: Check the domain owner of the parent before creating a nesting domain

This check was missed, before we can pass a struct iommu_domain to a
driver callback we need to validate that the domain was created by that
driver.

Fixes: bd529dbb661d ("iommufd: Add a nested HW pagetable object")
Link: https://patch.msgid.link/r/0-v1-c8770519edde+1a-iommufd_nesting_ops_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/hw_pagetable.c