[PATCH] drm/i915/gt: Delete sysfs entries for engines on driver unload

Andi Shyti andi.shyti at linux.intel.com
Fri Aug 2 08:15:41 UTC 2024


Hi Krzysztof,

On Thu, Aug 01, 2024 at 05:40:48PM +0200, Krzysztof Niemiec wrote:
> While the sysfs entries for engines are added in intel_engines_init()
> during driver load, the corresponding function intel_engines_release()
> does not correctly get rid of them. This can lead to a UAF if, after
> failed initialization (for example when gt is set wedged on init), we
> try to access the engines.
> 
> Empty the engines llist in intel_engines_release().
> 
> Suggested-by: Chris Wilson <chris.p.wilson at linux.intel.com>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec at intel.com>

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>

Thanks,
Andi


More information about the Intel-gfx mailing list