Re: [PATCH] iommu: fix a check in iommu_check_bind_data()

2020-11-03 Thread Joerg Roedel
On Tue, Nov 03, 2020 at 01:16:23PM +0300, Dan Carpenter wrote: > The "data->flags" variable is a u64 so if one of the high 32 bits is > set the original code will allow it, but it should be rejected. The > fix is to declare "mask" as a u64 instead of a u32. > > Fixes: d90573812eea ("iommu/uapi: H

[PATCH] iommu: fix a check in iommu_check_bind_data()

2020-11-03 Thread Dan Carpenter
The "data->flags" variable is a u64 so if one of the high 32 bits is set the original code will allow it, but it should be rejected. The fix is to declare "mask" as a u64 instead of a u32. Fixes: d90573812eea ("iommu/uapi: Handle data and argsz filled by users") Signed-off-by: Dan Carpenter ---