-
- Downloads
drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer
commit c86ad391 upstream. Pass pointer reference to amdgpu_bo_unref to clear the correct pointer, otherwise amdgpu_bo_unref clear the local variable, the original pointer not set to NULL, this could cause use-after-free bug. Signed-off-by:Philip Yang <Philip.Yang@amd.com> Reviewed-by:
Felix Kuehling <felix.kuehling@amd.com> Acked-by:
Christian König <christian.koenig@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Vamsi Krishna Brahmajosyula <vamsi-krishna.brahmajosyula@broadcom.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 7 additions, 7 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_chardev.c
- drivers/gpu/drm/amd/amdkfd/kfd_device.c 2 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_device.c
- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_process.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_process.c
- drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 2 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
Loading
Please register or sign in to comment