Re: [PATCH 1/2] drm/amdgpu: fix use after free during BO move

2021-09-07 Thread Michel Dänzer
On 2021-09-07 10:14, Christian König wrote: > The memory backing old_mem is already freed at that point, move the > check a bit more up. > > Signed-off-by: Christian König > Fixes: bfa3357ef9ab ("drm/ttm: allocate resource object instead of embedding > it v2") > Bug: https://gitlab.freedesktop.o

Re: [PATCH 1/2] drm/amdgpu: fix use after free during BO move

2021-09-07 Thread Das, Nirmoy
 Acked-by: Nirmoy Das for the 1st patch and second patch is Reviewed-by: Nirmoy Das On 9/7/2021 10:14 AM, Christian König wrote: The memory backing old_mem is already freed at that point, move the check a bit more up. Signed-off-by: Christian König Fixes: bfa3357ef9ab ("drm/ttm: allocate

[PATCH 1/2] drm/amdgpu: fix use after free during BO move

2021-09-07 Thread Christian König
The memory backing old_mem is already freed at that point, move the check a bit more up. Signed-off-by: Christian König Fixes: bfa3357ef9ab ("drm/ttm: allocate resource object instead of embedding it v2") Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1699 --- drivers/gpu/drm/amd/amdgpu/a