[PATCH 8/9] drm/amdgpu: reserve the root PD while freeing PASIDs

2019-09-10 Thread Christian König
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 Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --g

[PATCH 8/9] drm/amdgpu: reserve the root PD while freeing PASIDs

2019-09-04 Thread Christian König
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 --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdg