Re: [PATCH v3 4/5] iommu/uapi: Handle data and argsz filled by users

2020-06-25 Thread Lu Baolu
On 2020/6/25 1:07, Jacob Pan wrote: On Wed, 24 Jun 2020 14:54:49 +0800 Lu Baolu wrote: Hi Jacob, On 2020/6/24 1:03, Jacob Pan wrote: IOMMU UAPI data has a user filled argsz field which indicates the data length comes with the API call. User data is not trusted, argsz must be validated based

Re: [PATCH v3 4/5] iommu/uapi: Handle data and argsz filled by users

2020-06-24 Thread Jacob Pan
On Wed, 24 Jun 2020 14:54:49 +0800 Lu Baolu wrote: > Hi Jacob, > > On 2020/6/24 1:03, Jacob Pan wrote: > > IOMMU UAPI data has a user filled argsz field which indicates the > > data length comes with the API call. User data is not trusted, > > argsz must be validated based on the current kernel

Re: [PATCH v3 4/5] iommu/uapi: Handle data and argsz filled by users

2020-06-23 Thread Lu Baolu
Hi Jacob, On 2020/6/24 1:03, Jacob Pan wrote: IOMMU UAPI data has a user filled argsz field which indicates the data length comes with the API call. User data is not trusted, argsz must be validated based on the current kernel data size, mandatory data size, and feature flags. User data may als

[PATCH v3 4/5] iommu/uapi: Handle data and argsz filled by users

2020-06-23 Thread Jacob Pan
IOMMU UAPI data has a user filled argsz field which indicates the data length comes with the API call. User data is not trusted, argsz must be validated based on the current kernel data size, mandatory data size, and feature flags. User data may also be extended, results in possible argsz increase