[Intel-xe] [PATCH v2 1/4] drm/xe: Ensure that we don't access the placements array out-of-bounds

Matthew Auld matthew.auld at intel.com
Thu Nov 23 15:34:54 UTC 2023


On 23/11/2023 15:31, Thomas Hellström wrote:
> 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 at habana.ai>
> Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/946
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-xe mailing list