PT-2026-162948

CVE-2026-99981

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: wait for pending page table updates before switching a VM to CPU updates
amdgpu vm make compute() switches a VM from SDMA to CPU page table updates when a KFD process acquires it. It syncs "with the last SDMA update/clear" through amdgpu bo sync wait() on the root PD, but that walks the reservation with DMA RESV USAGE READ, and the clears of the VM's page tables (the root PD from amdgpu vm init(), and the PDs/PTs the seq64 mapping allocates at the render node's open) are added there by amdgpu vm sdma commit() with DMA RESV USAGE BOOKKEEP only: amdgpu vm pt clear() commits them with a NULL fence, so they do not reach vm->last update. The CPU path's own waits (amdgpu vm cpu update(), amdgpu bo kmap()) use DMA RESV USAGE KERNEL. None of them waits for a clear that is still queued.
When one is, the CPU writes the first entries of the new compute VM (the KFD trap handler's TBA/TMA page at AMDGPU VA RESERVED TRAP START, mapped during ACQUIRE VM) into a page directory the SDMA then clears. The entries are gone, the handler's page is unmapped, and the first wave save of any queue of the process faults in the SQC instruction fetch at the handler's address (GCVM L2 PROTECTION FAULT STATUS 0x008012B1, PERMISSION FAULTS 0xb). The MES then fails REMOVE QUEUE and SUSPEND, and the device takes a MODE1 reset with VRAM lost on 7.2.9; on 7.3-rc6 the queue is reset instead.
The window is the time between the render node's open and ACQUIRE VM. ROCr spends milliseconds there and is practically never hit; a minimal KFD client that opens the render node and acquires the VM at once is hit most of the time. On a Radeon AI PRO R9700 (gfx1201, Resizable BAR, so vm update mode defaults to CPU updates for compute VMs), a wave reading the trap handler's page right after queue creation found it unmapped in 8 of 12 runs; a 5 ms sleep between the open and ACQUIRE VM made that 0 of 9, and the same sleep after queue creation instead 3 of 3.
The wait covered these jobs until commit 926c79ad6ecd ("drm/amdgpu: promote the implicit sync to the dependent read fences") narrowed amdgpu sync resv() from DMA RESV USAGE BOOKKEEP to DMA RESV USAGE READ; the VM's page table jobs have been added with BOOKKEEP since commit 4247084057cf ("drm/amdgpu: use DMA RESV USAGE BOOKKEEP v2"), so from v6.16 on the sync in amdgpu vm make compute() waits for nothing of them.
Record the clears in vm->last update, as amdgpu vm update pdes() does with its updates, and wait for it, uninterruptibly, before switching the update functions. The clears all go through vm->delayed, so the last one covers the earlier ones; immediate clears are not recorded, as before.
With this, on 7.3-rc6 and on 7.2.9, the same client reads the handler 10 of 10 times, 8 busy queues on the 4 compute slots complete in 5 of 5 runs on 7.3-rc6 and 3 of 3 on 7.2.9 (1 of 6 before), 16 and 32 queues complete on 7.3-rc6, and two processes with 8 queues each complete together on both, with no fault.
(cherry picked from commit 9ec91b35baba45209c3fcd00f086224a158dd512)
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾