[Intel-gfx] [PATCH] drm/i915: Fix use-after-free of context during free_contexts

Matthew Auld matthew.william.auld at gmail.com
Fri Jun 30 23:42:35 UTC 2017


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>


More information about the Intel-gfx mailing list