]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: validate userq buffer virtual address and size
authorPrike Liang <Prike.Liang@amd.com>
Mon, 23 Jun 2025 08:29:38 +0000 (16:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:52:15 +0000 (16:52 -0400)
commit9e46b8bb0539d7bc9a9e7b3072fa4f6082490392
tree93d78c794a13d33285ddabed11f67bada7815813
parent4ba48fc3dac4c1dd4b54269afc40e43297f9e073
drm/amdgpu: validate userq buffer virtual address and size

It needs to validate the userq object virtual address to
determine whether it is residented in a valid vm mapping.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c