Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix user-after-free during driver unbind
@ 2025-10-30 15:11 Balasubramani Vivekanandan
  2025-10-30 15:11 ` [PATCH v2 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Balasubramani Vivekanandan @ 2025-10-30 15:11 UTC (permalink / raw)
  To: intel-xe; +Cc: 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_gt.c     | 2 ++
 drivers/gpu/drm/xe/xe_guc_ct.c | 3 +++
 2 files changed, 5 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 16+ messages in thread
* [PATCH v2 0/2] Fix user-after-free during driver unbind
@ 2025-10-30  8:26 Balasubramani Vivekanandan
  2025-10-30  8:26 ` [PATCH v2 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
  0 siblings, 1 reply; 16+ messages in thread
From: Balasubramani Vivekanandan @ 2025-10-30  8:26 UTC (permalink / raw)
  To: intel-xe; +Cc: 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_gt.c     | 2 ++
 drivers/gpu/drm/xe/xe_guc_ct.c | 3 +++
 2 files changed, 5 insertions(+)

-- 
2.43.0


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

end of thread, other threads:[~2025-10-31 16:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-30 15:11 [PATCH v2 0/2] Fix user-after-free during driver unbind Balasubramani Vivekanandan
2025-10-30 15:11 ` [PATCH v2 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
2025-10-30 17:37   ` Summers, Stuart
2025-10-31 14:44     ` Vivekanandan, Balasubramani
2025-10-31 15:39   ` Matthew Brost
2025-10-31 16:17     ` Lucas De Marchi
2025-10-31 16:32       ` Matthew Brost
2025-10-30 15:11 ` [PATCH v2 2/2] drm/xe/guc: Synchronize Dead CT worker with unbind Balasubramani Vivekanandan
2025-10-30 17:38   ` Summers, Stuart
2025-10-31 14:53     ` Vivekanandan, Balasubramani
2025-10-31 16:10       ` Summers, Stuart
2025-10-30 16:25 ` ✓ CI.KUnit: success for Fix user-after-free during driver unbind (rev2) Patchwork
2025-10-30 17:03 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-30 19:44 ` ✓ Xe.CI.Full: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-10-30  8:26 [PATCH v2 0/2] Fix user-after-free during driver unbind Balasubramani Vivekanandan
2025-10-30  8:26 ` [PATCH v2 1/2] drm/xe/gt: Synchronize GT reset with device unbind Balasubramani Vivekanandan
2025-10-30 21:21   ` Lucas De Marchi

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