]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/vm: Add missing pad and extensions check
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Tue, 31 Mar 2026 18:12:17 +0000 (18:12 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 1 Apr 2026 15:49:53 +0000 (16:49 +0100)
Add missing pad and extensions check to xe_vm_get_property_ioctl

v2:
- Combine with other check (Auld)

Fixes: 50c577eab051 ("drm/xe/xe_vm: Implement xe_vm_get_property_ioctl")
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260331181216.37775-2-jonathan.cavitt@intel.com
drivers/gpu/drm/xe/xe_vm.c

index 72559bd33946e15970e7a1cdd2a76117e2b6857e..2408b547ca3dd31f1e8f42ae849623d0802fdd11 100644 (file)
@@ -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);