Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix potential deadlock in BO open and close callbacks In amdxdna_gem_obj_open(), abo->lock is held when calling amdxdna_gem_add_bo_usage(), which then acquires client->mm_lock. However, the heap update path may acquire these locks in the reverse order, creating a potential deadlock. Fix this by saving the client pointer locally before acquiring abo->lock, and releasing abo->lock before calling amdxdna_gem_add_bo_usage(). Apply the same change to amdxdna_gem_obj_close().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1f513a3ec3a945efb30c963681ac32ac7b99928b to < d2d4408e6d980ceddd2c801d85ca60dbac4e6835affected1f513a3ec3a945efb30c963681ac32ac7b99928b to < 1bc13a9d9366d68ebf7aa12137b362d539b4f0d0affected
Linux Linux
Default version status: affected
7.1affected0 to < 7.1unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected