Re: [PATCH] drm/i915: Avoid truncation before clamping userspace's priority value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Joonas Lahtinen (2018-02-08 11:25:38)
> Quoting Chris Wilson (2018-02-08 10:51:51)
> > 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@xxxxxxxxx>
> > Fixes: ac14fbd460d0 ("drm/i915/scheduler: Support user-defined priorities")
> > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> > Cc: Antonio Argenziano <antonio.argenziano@xxxxxxxxx>
> > Cc: Michal Winiarski <michal.winiarski@xxxxxxxxx>
> > Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxx>
> > Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
> 
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>

Pushed with a s/int64_t/s64/ to appease checkpatch.
Thanks, I was hoping to get Antonio's new gem_ctx_param checks in first,
oh well.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux