On 20/09/23 03:40, Maxime Ripard wrote: > Hi, > > On Wed, Sep 20, 2023 at 03:11:38AM -0300, Arthur Grillo wrote: >> In __drm_kunit_helper_alloc_drm_device_with_driver(), a drm_driver is >> allocated with kunit_kzalloc. If the dev argument was allocated by >> drm_kunit_helper_alloc_device, its deferred actions would access the >> already deallocated drm_driver. > > We already have a fix for that in drm-misc-fixes, could you give it a try? Oh! I didn't see that. I just ran it, it worked! Great fix :) Best Regards, ~Arthur Grillo > > Thanks! > Maxime
- [PATCH 0/3] Fix a couble of bugs in drm_kunit_helpers.c Arthur Grillo
- [PATCH 1/3] drm/tests: Fix kunit_release_action ctx arg... Arthur Grillo
- Re: [PATCH 1/3] drm/tests: Fix kunit_release_action... Maxime Ripard
- Re: [PATCH 1/3] drm/tests: Fix kunit_release_action... Maira Canal
- Re: [PATCH 1/3] drm/tests: Fix kunit_release_ac... Arthur Grillo
- [PATCH 2/3] kunit: Add kunit_move_action_to_top_or_rese... Arthur Grillo
- [PATCH 3/3] drm/tests: Fix a use-after-free bug in __dr... Arthur Grillo
- Re: [PATCH 3/3] drm/tests: Fix a use-after-free bug... Maxime Ripard
- Re: [PATCH 3/3] drm/tests: Fix a use-after-free... Arthur Grillo