Re: [PATCH v2] drm/amdkfd: Fix potential deallocation of previously deallocated memory.

2023-05-11 Thread Felix Kuehling
On 2023-05-11 07:23, Daniil Dulov wrote: Pointer mqd_mem_obj can be deallocated in kfd_gtt_sa_allocate(). The function then returns non-zero value, which causes the second deallocation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: d1f8f0d17d40 ("drm/amdkfd: Move non-

[PATCH v2] drm/amdkfd: Fix potential deallocation of previously deallocated memory.

2023-05-11 Thread Daniil Dulov
Pointer mqd_mem_obj can be deallocated in kfd_gtt_sa_allocate(). The function then returns non-zero value, which causes the second deallocation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: d1f8f0d17d40 ("drm/amdkfd: Move non-sdma mqd allocation out of init_mqd") Signe