Files
linux/drivers
Chia-I Wu 4300a47e40 amdgpu: validate offset_in_bo of drm_amdgpu_gem_va
[ Upstream commit 9f0bcf49e9 ]

This is motivated by OOB access in amdgpu_vm_update_range when
offset_in_bo+map_size overflows.

v2: keep the validations in amdgpu_vm_bo_map
v3: add the validations to amdgpu_vm_bo_map/amdgpu_vm_bo_replace_map
    rather than to amdgpu_gem_va_ioctl

Fixes: 9f7eb5367d ("drm/amdgpu: actually use the VM map parameters")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-23 13:47:06 +02:00
..
2023-06-14 11:13:08 +02:00
2021-11-18 19:16:08 +01:00
2023-02-22 12:57:03 +01:00
2023-07-23 13:46:46 +02:00
2023-04-05 11:24:55 +02:00
2023-07-23 13:47:04 +02:00
2023-03-10 09:40:13 +01:00
2022-08-25 11:40:33 +02:00
2021-12-22 09:32:39 +01:00