[Intel-xe] [PATCH v3 1/2] drm/tests: helpers: Avoid a driver uaf

Maxime Ripard mripard at kernel.org
Thu Sep 7 14:50:36 UTC 2023


On Thu, 7 Sep 2023 15:53:38 +0200, Thomas Hellström wrote:
> when using __drm_kunit_helper_alloc_drm_device() the driver may be
> dereferenced by device-managed resources up until the device is
> freed, which is typically later than the kunit-managed resource code
> frees it. Fix this by simply make the driver device-managed as well.
> 
> 
> [ ... ]

Acked-by: Maxime Ripard <mripard at kernel.org>

Thanks!
Maxime


More information about the Intel-xe mailing list