CVE-2024-57920 Information
Description
In the Linux kernel the following vulnerability has been resolved:
drm/amdkfd: wq_release signals dma_fence only when available
kfd_process_wq_release() signals eviction fence by dma_fence_signal() which wanrs if dma_fence is NULL.
kfd_process->ef is initialized by kfd_process_device_init_vm() through ioctl. That means the fence is NULL for a new created kfd_process and close a kfd_process right after open it will trigger the warning.
This commit conditionally signals the eviction fence in kfd_process_wq_release() only when it is available.
[ 503.660882] WARNING: CPU: 0 PID: 9 at drivers/dma-buf/dma-fence.c:467 dma_fence_signal+0x74/0xa0
[ 503.782940] Workqueue: kfd_process_wq kfd_process_wq_release [amdgpu]
[ 503.789640] RIP: 0010:dma_fence_signal+0x74/0xa0
[ 503.877620] Call Trace:
[ 503.880066]
(cherry picked from commit 2774ef7625adb5fb9e9265c26a59dca7b8fd171e)
Reference
https://git.kernel.org/stable/c/a993d319aebb7cce8a10c6e685344b7c2ad5c4c2 https://git.kernel.org/stable/c/c8243def299793ac6c85fdc1086089c800c1051a
Share on: