diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2023-11-23 16:31:55 +0100 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:44:57 -0500 |
commit | 8c54ee8a8606a453a2c907989372aa6f004b7bec (patch) | |
tree | 8fc38e3e5a818b31e57d103c0e844674795ccaf7 /drivers/gpu/drm/xe/xe_uc.h | |
parent | 2475ac27df597679ca0426d358877d6f1483d50f (diff) | |
download | lwn-8c54ee8a8606a453a2c907989372aa6f004b7bec.tar.gz lwn-8c54ee8a8606a453a2c907989372aa6f004b7bec.zip |
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/xe_uc.h')
0 files changed, 0 insertions, 0 deletions