Re: [PATCH v4 3/5] iommu/uapi: Use named union for user data

2020-07-08 Thread Jacob Pan
On Wed, 8 Jul 2020 10:17:57 +0800 Lu Baolu wrote: > Hi Jacob, > > On 7/8/20 7:43 AM, Jacob Pan wrote: > > IOMMU UAPI data size is filled by the user space which must be > > validated by ther kernel. To ensure backward compatibility, user > > data can only be extended by either re-purpose

Re: [PATCH v4 3/5] iommu/uapi: Use named union for user data

2020-07-07 Thread Lu Baolu
Hi Jacob, On 7/8/20 7:43 AM, Jacob Pan wrote: IOMMU UAPI data size is filled by the user space which must be validated by ther kernel. To ensure backward compatibility, user data can only be extended by either re-purpose padding bytes or extend the variable sized union at the end. No size

[PATCH v4 3/5] iommu/uapi: Use named union for user data

2020-07-07 Thread Jacob Pan
IOMMU UAPI data size is filled by the user space which must be validated by ther kernel. To ensure backward compatibility, user data can only be extended by either re-purpose padding bytes or extend the variable sized union at the end. No size change is allowed before the union. Therefore, the