Skip to content

drm/xe: Prevent null pointer access in xe_migrate_copy

Zhanjun Dong intel-xe 3 versions – Applied

Status from this message: Applied to drm-xe-next. Thanks for the patch and review.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 6 repliesApplied
  2. v31 patch 4 repliesSuperseded
  3. v21 patch 4 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/1drm/xe: Prevent null pointer access in xe_migrate_copydrivers/gpu/drm/xe/xe_bo.c+2 -24 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas Hellström
SeriesR-b
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

xe_migrate_copy designed to copy content of TTM resources. When source resource is null, it will trigger a NULL pointer dereference in xe_migrate_copy. To avoid this situation, update lacks source flag to true for this case, the flag will trigger xe_migrate_clear rather than xe_migrate_copy.

Fixes 266c85885263 ("drm/xe/xe2: Handle flat ccs move for igfx.")

Changes from prior revs:
v4:- Limit commit message within 75 characters per line
Minor commit message changes
v3:- Update commit message to include Fixes and issue stack trace v2:- Drop changes in xe_migrate_copy
Update condition expression as suggested

Zhanjun Dong (1):
drm/xe: Prevent null pointer access in xe_migrate_copy

 drivers/gpu/drm/xe/xe_bo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1