PT-2026-167099
CVE-2026-143241
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
btrfs: zoned: don't wait for ordered extents in do zone finish()
do zone finish() calls btrfs wait ordered roots(), which holds
fs info->ordered operations mutex while waiting for writeback. It can be
reached from writeback itself:
cow file range()
-> btrfs reserve extent() -> find free extent()
-> btrfs zone finish one bg() -> do zone finish()If another task holds the mutex and waits for that writeback, this
deadlocks.
In general, we want to ensure all writes in the block group to
complete before finishing the zone, as relocation does. However, the
current callers do not need the wait (or cannot wait) in do zone finish():
- Relocation already waits for reservations and ordered extents itself before calling btrfs zone finish().
- btrfs delete unused bgs() checks that ->reserved is zero and sets the block group read-only while holding groups sem, so there can be no in-flight data write.
- btrfs zone finish one bg() is called from the allocation path and cannot wait.
Dropping the wait is still safe. Once the block group is read-only,
->reserved can only drop, and for data it only drops after the ordered
extent's I/O has completed. So if ->reserved is zero, no data write is
left in flight. If it is non-zero, do zone finish() returns -EAGAIN,
which all callers handle.
This makes btrfs zone finish one bg() fail with -EAGAIN when it races
with an allocation in the selected block group.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾