Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix user-after-free during driver unbind
@ 2025-10-13  8:09 Balasubramani Vivekanandan
  2025-10-13  8:09 ` [PATCH 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Balasubramani Vivekanandan @ 2025-10-13  8:09 UTC (permalink / raw)
  To: intel-xe
  Cc: Lucas De Marchi, Rodrigo Vivi, John Harrison,
	Balasubramani Vivekanandan

There are a couple of worker threads in the driver which could be
running while unbinding the driver. Ensure those threads are stopped
before unbinding the driver to avoid any user-after-free from those
workers.

Balasubramani Vivekanandan (2):
  drm/xe/gt: Synchronize GT reset with device unbind
  drm/xe/guc: Synchronize Dead CT worker with unbind

 drivers/gpu/drm/xe/xe_device.c | 6 ++++++
 drivers/gpu/drm/xe/xe_gt.c     | 5 +++++
 drivers/gpu/drm/xe/xe_gt.h     | 1 +
 drivers/gpu/drm/xe/xe_guc_ct.c | 3 +++
 4 files changed, 15 insertions(+)

-- 
2.43.0


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

end of thread, other threads:[~2025-10-13 14:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13  8:09 [PATCH 0/2] Fix user-after-free during driver unbind Balasubramani Vivekanandan
2025-10-13  8:09 ` [PATCH 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
2025-10-13 14:12   ` Lucas De Marchi
2025-10-13  8:09 ` [PATCH 2/2] drm/xe/guc: Synchronize Dead CT worker with unbind Balasubramani Vivekanandan
2025-10-13  9:50   ` Vivekanandan, Balasubramani
2025-10-13  8:17 ` ✓ CI.KUnit: success for Fix user-after-free during driver unbind Patchwork
2025-10-13  8:59 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-13  9:26 ` ✓ Xe.CI.Full: " Patchwork

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