drm/i915: Correctly reject invalid flags for wait_ioctl
Subsystems (2)
PATCH 1/1 drm/i915: Correctly reject invalid flags for wait_ioctl
Not having checks for this isn't good.
I've checked igt and libdrm and they all already clear flags properly. So we're lucky and should be able to sneak this ABI clarification in.
Testcase: igt/gem_wait/invalid-flags
--- drivers/gpu/drm/i915/i915_gem.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_gem.c +3 -0
@@ -2811,6 +2811,9 @@ i915_gem_wait_ioctl(struct drm_device *dev, void *data, struct drm_file *file)u32 seqno =0 ;int ret =0 ; +if (args->flags !=0 ) +return -EINVAL ; + ret =i915_mutex_lock_interruptible (dev);if (ret)return ret;
Signature · 1 line
1.9.3
Quoted 7 lines · Daniel Vetter
Not having checks for this isn't good.
I've checked igt and libdrm and they all already clear flags properly. So we're lucky and should be able to sneak this ABI clarification in.
Testcase: igt/gem_wait/invalid-flags
Signed-off-by Daniel Vetter <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85280
Some please review this little fix?
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Damien Lespiau
Reviewed-byQuoted 6 lines · Daniel Vetter
Quoted 5 lines · Daniel Vetter
Not having checks for this isn't good.
I've checked igt and libdrm and they all already clear flags properly. So we're lucky and should be able to sneak this ABI clarification in.
Quoted 6 lines
Quoted 2 lines
Testcase: igt/gem_wait/invalid-flags
Signed-off-by Daniel Vetter <[email protected]>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85280
Some please review this little fix?
Quoted 7 lines · Damien Lespiau
Quoted 6 lines · Daniel Vetter
Quoted 5 lines · Daniel Vetter
Not having checks for this isn't good.
I've checked igt and libdrm and they all already clear flags properly. So we're lucky and should be able to sneak this ABI clarification in.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Testcase: igt/gem_wait/invalid-flags
Signed-off-by Daniel Vetter <[email protected]>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85280
Some please review this little fix?
Reviewed-by Damien Lespiau <[email protected]>
Thanks for the mercy ;-) Patch merged to dinq now. -Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch