[Intel-gfx] [PATCH] drm/i915: Fix use-after-free of context during free_contexts
Chris Wilson
chris at chris-wilson.co.uk
Tue Jul 4 10:57:21 UTC 2017
Quoting Matthew Auld (2017-07-01 00:42:35)
> On 1 July 2017 at 00:05, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > When iterating the list of contexts to free, we need to use a safe
> > iterator as we are freeing the link as we go. Pass an extra thick brown
> > paper bag.
> >
> > Fixes: 5f09a9c8ab6b ("drm/i915: Allow contexts to be unreferenced locklessly")
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> > Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> > Cc: Matthew Auld <matthew.auld at intel.com>
> Reviewed-by: Matthew Auld <matthew.auld at intel.com>
Thanks for the review, pushed.
-Chris
More information about the Intel-gfx
mailing list