[Intel-xe] [PATCH 1/3] drm/kunit: Avoid a driver uaf

Maxime Ripard mripard at kernel.org
Tue Sep 5 12:06:22 UTC 2023


On Tue, Sep 05, 2023 at 10:58:30AM +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.

I'd like to have a bit more context on how a driver can end up in that
situation?

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230905/7484ca1b/attachment.sig>


More information about the dri-devel mailing list