accel/amdxdna: Fix dead lock for suspend and resume
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.19.77.0In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix dead lock for suspend and resume
When an application issues a query IOCTL while auto suspend is running, a deadlock can occur. The query path holds dev_lock and then calls pm_runtime_resume_and_get(), which waits for the ongoing suspend to complete. Meanwhile, the suspend callback attempts to acquire dev_lock and blocks, resulting in a deadlock.
Fix this by releasing dev_lock before calling pm_runtime_resume_and_get() and reacquiring it after the call completes. Also acquire dev_lock in the resume callback to keep the locking consistent.
From the CVE record · Linux
The Linux kernel’s accel/amdxdna driver can deadlock when a local application issues a query IOCTL while automatic suspend is running. The query and suspend paths can each wait for a lock held by the other, leaving the operation stuck.
Engineers running Linux kernels with the accel/amdxdna driver should check their systems; affected versions were not specified.