summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/tests/xe_migrate.c
diff options
context:
space:
mode:
authorThomas Hellström <thomas.hellstrom@linux.intel.com>2023-11-23 18:31:55 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:44:57 +0300
commit8c54ee8a8606a453a2c907989372aa6f004b7bec (patch)
tree8fc38e3e5a818b31e57d103c0e844674795ccaf7 /drivers/gpu/drm/xe/tests/xe_migrate.c
parent2475ac27df597679ca0426d358877d6f1483d50f (diff)
downloadlinux-8c54ee8a8606a453a2c907989372aa6f004b7bec.tar.xz
drm/xe: Ensure that we don't access the placements array out-of-bounds
Ensure, using xe_assert that the various try_add_<placement> functions don't access the bo placements array out-of-bounds. v2: - Remove the places argument to make sure the xe_assert operates on the array we're actually populating. (Matthew Auld) Suggested-by: Ohad Sharabi <osharabi@habana.ai> Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/946 Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Ohad Sharabi <osharabi@habana.ai> #v1 Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231123153158.12779-2-thomas.hellstrom@linux.intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/tests/xe_migrate.c')
0 files changed, 0 insertions, 0 deletions