]> 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)
commitf755efaf841da67c79e7297efadfbec57ec1aa4b
treec5ce9c458424f5061d3fc603344b516f1adcaaf5
parentf12b4290f3ecd096f6366e1b044d3b33d6388dca
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