drm/amdgpu: validate userq buffer virtual address and size

[ Upstream commit 9e46b8bb05 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Prike Liang 2025-06-23 16:29:38 +08:00 • committed by Greg Kroah-Hartman
commit 5a577de86c
3 changed files with 58 additions and 0 deletions