Re: [PATCH v3 1/5] iommufd: Add iommufd_object_tombstone_user() helper
From: Nicolin Chen
Date: Mon Jun 30 2025 - 15:51:41 EST
On Fri, Jun 27, 2025 at 11:38:05AM +0800, Xu Yilun wrote:
> Add the iommufd_object_tombstone_user() helper, which allows the caller
> to destroy an iommufd object created by userspace.
Should we describe it "partially destroy"?
> This is useful on some destroy paths when the kernel caller finds the
> object should have been removed by userspace but is still alive. With
> this helper, the caller destroys the object but leave the object ID
> reserved (so called tombstone). The tombstone prevents repurposing the
> object ID without awareness of the original user.
>
> Since this happens for abnomal userspace behavior, for simplicity, the
s/abnomal/abnormal
Nicolin