]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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 14:22:13 +0000 (10:22 -0400)
commit6da7b1242da4455b11c24ce667d1cab1a348c8ea
tree6623c4ad1ff40ce49d1d0e64722f783f14f30ebf
parent81665e35f143d93adef654f3be1360def9196e72
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>
(cherry picked from commit 1fc6c8ab45dbee096469c08c13f6099d57a52d6c)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c