Re: [PATCH v1 01/16] iommufd/viommu: Add IOMMUFD_OBJ_VIOMMU and IOMMU_VIOMMU_ALLOC ioctl

Jason Gunthorpe
2024-08-15T23:37:48Z

On Thu, Aug 15, 2024 at 11:20:35AM -0700, Nicolin Chen wrote:

> > I don't have an easy solution in mind though later as surely we will
> > need this when we start to create more iommu bound objects. I'm pretty
> > sure syzkaller would eventually find such a UAF using the iommufd
> > selftest framework.
>
> Would adding a user count in struct iommu_device help?

Yeah, maybe something like that. It is a real corner case though.

Jason