[Intel-gfx] [PATCH v2] drm/i915: Fix pid leak with banned clients

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 17 17:11:46 UTC 2019


Quoting Tvrtko Ursulin (2019-12-17 17:09:33)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Get_pid_task() needs to be paired with a put_pid or we leak a pid
> reference every time a banned client tries to create a context.
> 
> v2:
>  * task_pid_nr helper exists! (Chris)
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Fixes: b083a0870c79 ("drm/i915: Add per client max context ban limit")
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala at intel.com>

As used by others, so must be safe!
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list