CyberRota Analysis
AI-GeneratedA deadlock vulnerability exists in the Linux kernel related to the AMD XDNA hardware context synchronization, where improper locking during power management resume operations can lead to system hangs. This issue arises when the `amdxdna_hwctx_sync_debug_bo()` function calls a power management routine while holding a device lock, potentially blocking critical operations. Organizations utilizing affected Linux kernel versions with AMD XDNA hardware should prioritize patching to prevent potential system stability issues.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Prevent PM resume deadlock in hwctx_sync_debug_bo() amdxdna_hwctx_sync_debug_bo() invokes the hardware hwctx_sync_debug_bo() callback while holding xdna->dev_lock. The callback may call amdxdna_cmd_submit(), which in turn calls amdxdna_pm_resume_get(). If the device is suspended, amdxdna_pm_resume_get() may synchronously execute amdxdna_pm_resume(), which also acquires xdna->dev_lock, resulting in a deadlock. Avoid the deadlock by calling amdxdna_pm_resume_get() before holding xdna->dev_lock in both amdxdna_hwctx_sync_debug_bo() and amdxdna_drm_config_hwctx_ioctl()