drm/amdgpu/userq: fix access to stale wptr mapping
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 4 May 2026 12:51:17 +0000 (18:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2026 13:56:53 +0000 (09:56 -0400)
commit1fc6c8ab45dbee096469c08c13f6099d57a52d6c
treed18d74a7e073bbf8977b4542a4393a995a4c6fd2
parentea3ffb7f4b79dfce5de131d18bfe276c8a9700aa
drm/amdgpu/userq: fix access to stale wptr mapping

Use drm_exec to take both locks i.e vm root bo and
wptr_obj bo to access the mapping data properly.

This fixes the security issue of unmap the wptr_obj while
a queue creation is in progress and passing other
bo at same address.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c