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

2023-09-07 Thread Thomas Hellström
Hi, Maxime, On 9/6/23 12:08, Maxime Ripard wrote: On Tue, Sep 05, 2023 at 02:43:00PM +0200, Thomas Hellström wrote: Hi maxime, On 9/5/23 14:06, Maxime Ripard wrote: On Tue, Sep 05, 2023 at 10:58:30AM +0200, Thomas Hellström wrote: when using __drm_kunit_helper_alloc_drm_device() the driver

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

2023-09-06 Thread Maxime Ripard
On Tue, Sep 05, 2023 at 02:43:00PM +0200, Thomas Hellström wrote: > Hi maxime, > > On 9/5/23 14:06, Maxime Ripard wrote: > > 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

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

2023-09-05 Thread Thomas Hellström
Hi maxime, On 9/5/23 14:06, Maxime Ripard wrote: 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

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

2023-09-05 Thread Maxime Ripard
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