diff options
| author | Chia-I Wu <olvaffe@gmail.com> | 2023-06-01 15:44:12 -0700 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 12:37:56 -0400 |
| commit | 9f0bcf49e9895cb005d78b33a5eebfa11711b425 (patch) | |
| tree | f149d322ba104fa093901609a73e987cf6860bfb /tools/perf/scripts/python/task-analyzer.py | |
| parent | drm/amdgpu: fix debug wait on idle for gfx9.4.1 (diff) | |
| download | linux-9f0bcf49e9895cb005d78b33a5eebfa11711b425.tar.gz linux-9f0bcf49e9895cb005d78b33a5eebfa11711b425.zip | |
amdgpu: validate offset_in_bo of drm_amdgpu_gem_va
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: 9f7eb5367d00 ("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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
