jbd2: check need_resched() when skipping busy checkpoint buffers
- CVE-2026-89566
- GHSA-p6jx-2fv3-6j26
- EUVD-2026-76477
Description
In the Linux kernel, the following vulnerability has been resolved: jbd2: check need_resched() when skipping busy checkpoint buffers journal_shrink_one_cp_list() skips busy checkpoint buffers when called with JBD2_SHRINK_BUSY_SKIP. The continue statement on this path also skips the need_resched() check at the end of the loop body. Consequently, when a checkpoint list contains mostly busy buffers, the shrinker can walk the entire list while holding journal->j_list_lock, even when a reschedule has been requested. Large checkpoint lists under memory pressure can therefore cause long lock hold times and leave other CPUs spinning on j_list_lock, resulting in soft lockups or RCU stalls. Route the busy-buffer path through the need_resched() check so that the shrinker can release j_list_lock and reschedule promptly, restoring parity with the clean-buffer path, which already checks need_resched(). This does not change which checkpoint buffers are eligible for removal.
Text from the CVE.org record.
Affected
Linux
- from 6.1.50 to before 6.1.193
- from 5.15.129 to before 5.16
- from 6.4.13 to before 6.5
- 6.5
- before 6.5: not affected
- from 6.1.193 up to 6.1.*: not affected
- from 6.6.160 up to 6.6.*: not affected
- from 6.12.109 up to 6.12.*: not affected
- and 3 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.