diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-08 08:51:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-08 11:30:00 +0000 |
commit | 11a18f631959fd1ca10856c836a827683536770c (patch) | |
tree | 5abe5c673fdc4f3d8415e70c30a68d9b6ee33d8a /drivers/gpu/drm/i915/i915_gem.c | |
parent | 253a281727d552200c4cddb0cc08cb2e95939603 (diff) | |
download | linux-11a18f631959fd1ca10856c836a827683536770c.tar.bz2 |
drm/i915: Avoid truncation before clamping userspace's priority value
Userspace provides a 64b value for the priority, we need to be careful
to preserve the full range before validation to prevent truncation (and
letting an illegal value pass).
Reported-by: Antonio Argenziano <antonio.argenziano@intel.com>
Fixes: ac14fbd460d0 ("drm/i915/scheduler: Support user-defined priorities")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180208085151.11480-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
0 files changed, 0 insertions, 0 deletions