Unverified Commit 2bc0cce2 authored by Jonathan Cavitt's avatar Jonathan Cavitt Committed by Rodrigo Vivi
Browse files

drm/xe/vm: Add missing pad and extensions check



Add missing pad and extensions check to xe_vm_get_property_ioctl

v2:
- Combine with other check (Auld)

Fixes: 50c577ea ("drm/xe/xe_vm: Implement xe_vm_get_property_ioctl")
Suggested-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260331181216.37775-2-jonathan.cavitt@intel.com


(cherry picked from commit 896070686b16cc45cca7854be2049923b2b303d3)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent a0fc362f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4156,7 +4156,8 @@ int xe_vm_get_property_ioctl(struct drm_device *drm, void *data,
	int ret = 0;

	if (XE_IOCTL_DBG(xe, (args->reserved[0] || args->reserved[1] ||
			      args->reserved[2])))
			      args->reserved[2] || args->extensions ||
			      args->pad)))
		return -EINVAL;

	vm = xe_vm_lookup(xef, args->vm_id);