Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy
@ 2024-09-27 16:13 Zhanjun Dong
  2024-09-27 16:13 ` [PATCH v4 1/1] " Zhanjun Dong
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Zhanjun Dong @ 2024-09-27 16:13 UTC (permalink / raw)
  To: intel-xe; +Cc: Zhanjun Dong, Thomas Hellström

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.")
Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-10-01 21:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 16:13 [PATCH v4 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy Zhanjun Dong
2024-09-27 16:13 ` [PATCH v4 1/1] " Zhanjun Dong
2024-09-27 16:34   ` Matthew Auld
2024-09-27 16:43     ` Thomas Hellström
2024-09-30  7:46       ` Matthew Auld
2024-09-30 13:31         ` Dong, Zhanjun
2024-09-27 18:54 ` ✓ CI.Patch_applied: success for drm/xe: Prevent null pointer access in xe_migrate_copy (rev3) Patchwork
2024-09-27 18:55 ` ✓ CI.checkpatch: " Patchwork
2024-09-27 18:56 ` ✓ CI.KUnit: " Patchwork
2024-09-27 19:10 ` ✓ CI.Build: " Patchwork
2024-09-27 19:12 ` ✓ CI.Hooks: " Patchwork
2024-09-27 19:15 ` ✓ CI.checksparse: " Patchwork
2024-09-27 19:33 ` ✓ CI.BAT: " Patchwork
2024-09-30 23:35 ` ✗ CI.FULL: failure " Patchwork
2024-10-01  0:14   ` Dong, Zhanjun
2024-10-01 21:30     ` Matt Roper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox