OSDN Git Service

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)
commitb65709a92156b850840edba9f9932e10c235d44e
treec5ce9c458424f5061d3fc603344b516f1adcaaf5
parent061468c405fdf3b518d03bebbeafa0a9dc7300c2
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