diff options
| author | Lizhi Hou <lizhi.hou@amd.com> | 2026-06-10 22:51:49 -0700 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2026-06-29 10:34:48 -0700 |
| commit | 5c72124186d6983e90b7c44229fcb768e3ff769a (patch) | |
| tree | 437be167848fac981915315c4277a98831eadf78 /rust/kernel/drm/gpuvm/git@git.tavy.me:linux-stable.git | |
| parent | 1dbbc7f98cde1e2433c1b1617053ae2ffab00086 (diff) | |
accel/amdxdna: Fix notifier_wq lifetime race during device removal
amdxdna_remove() destroys notifier_wq. If amdxdna_gem_obj_free() is
called after device removal, it may attempt to flush notifier_wq,
resulting in a use-after-free.
Fix the race by allocating notifier_wq with
drmm_alloc_ordered_workqueue(), so its lifetime is managed by DRM and
remains valid until all managed resources are released.
Fixes: e486147c912f ("accel/amdxdna: Add BO import and export")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260611055150.3070216-2-lizhi.hou@amd.com
Diffstat (limited to 'rust/kernel/drm/gpuvm/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
