CVE-2026-139684: md/raid10: fix missing wakeup in wait_barrier_nolock
In the Linux kernel, the following vulnerability has been resolved:
md/raid10: fix missing wakeup in waitbarriernolock
Fuzz testing triggered a hung raid10d thread:
INFO: task md0raid10 blocked for more than 120 seconds. Call Trace: raid10d mdthread kthread
waitbarriernolock() speculatively increments nrpending. If a concurrent writer changes resynclock's sequence, it rolls the count back with atomicdecandtest(). The rollback currently wakes waitbarrier only when nrpending reaches zero.
freezearray() can be waiting for nrpending == nrqueued + extra while arrayfreezepending is set. If the rollback changes nrpending from 2 to 1, the condition becomes true but no wakeup is sent, leaving raid10d blocked indefinitely.
Also wake waitbarrier when arrayfreezepending is set, matching allowbarrier().