diff options
| author | Dan Carpenter <[email protected]> | 2020-11-03 10:16:23 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2020-11-03 13:55:51 +0000 |
| commit | 4dd6ce478003525df8618750d30f0b90380047a7 (patch) | |
| tree | f436e88e80c3a0ff7a07d6abb4a98f5b96ef41bd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | iommu/vt-d: Fix a bug for PDP check in prq_event_thread (diff) | |
| download | kernel-4dd6ce478003525df8618750d30f0b90380047a7.tar.gz kernel-4dd6ce478003525df8618750d30f0b90380047a7.zip | |
iommu: Fix a check in iommu_check_bind_data()
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 <[email protected]>
Link: https://lore.kernel.org/r/20201103101623.GA1127762@mwanda
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
