PT-2026-163716

CVE-2026-139675

·

تاريخ النشر

2026-11-30

·

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

2026-11-30

الوصف من

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

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

In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: reserve eviction-fence slot at WPTR caller
Root cause analysis showed that the previous workaround was fixing the symptom in the wrong layer.
Problem: kernel BUG at drivers/dma-buf/dma-resv.c:319! BUG ON(fobj->num fences >= fobj->max fences) Workqueue: events amdgpu userq restore worker
  • amdgpu evf mgr attach fence() had been temporarily taught to reserve/add fence bookkeeping internally as a workaround.
  • This hid the real contract violation and made reservation policy implicit inside a helper.
Review clarification:
  • The helper-side dma resv add fence-related workaround was only an intended proposal sent for review discussion, not the final direction.
  • Final fix keeps fence-slot reservation explicit in callers and leaves the helper free of policy decisions.
Findings from investigation:
  • drm exec prepare obj() both locks and reserves fence slots.
  • drm exec lock obj() only locks and does not reserve slots.
  • Existing attach fence callers in the GEM/userq restore flows already reserve TTM NUM MOVE FENCES + 1 before adding the bookkeeping eviction fence.
  • The WPTR mapping path in mes userq create wptr mapping() used drm exec lock obj() and then called amdgpu evf mgr attach fence(), so this specific path could add a fence without pre-reserved space.
Fix:
  • Switch the WPTR mapping path to drm exec prepare obj(..., TTM NUM MOVE FENCES + 1), restoring the caller-side reservation contract.
  • Remove the helper-side reservation workaround from amdgpu evf mgr attach fence().
Why this is the right layer:
  • Reservation policy stays explicit at call sites that define how many fences may be added in that execution context.
  • The helper only performs validate + add fence when called with a properly prepared reservation object, matching the existing drm exec model.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾