]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: reserve the root PD while freeing PASIDs
authorChristian König <christian.koenig@amd.com>
Wed, 17 Jul 2019 07:58:47 +0000 (09:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:42:55 +0000 (10:42 -0500)
commit1aa967db9aa0fb0456bb84a6541024eacceb84bf
treec5ce9c458424f5061d3fc603344b516f1adcaaf5
parentbaeda4d8d2b5ba790f16ca54a650803f474c1080
drm/amdgpu: reserve the root PD while freeing PASIDs

Free the pasid only while the root PD is reserved. This prevents use after
free in the page fault handling.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c