CVE-2026-138831: mm/shmem: report RCU-tasks quiescent states while undoing a range
In the Linux kernel, the following vulnerability has been resolved:
mm/shmem: report RCU-tasks quiescent states while undoing a range
This shows up in the Meta fleet on ftruncate() of large tmpfs files:
INFO: rcutasks detected stalls on tasks: 00000000752fd185: .. nvcsw: 59455/59455 holdout: 1 idlecpu: -1/0 task:rocksdb:bottom state:R running task foliosplit findgetentry findgetentries truncateinodepartialfolio shmemundorange shmemsetattr notifychange doftruncate x64sysftruncate dosyscall64
shmemundorange() walks the whole of the requested range in foliobatch sized steps, twice, and its two condresched() calls are the only reschedule points in that walk.
condresched() is not an RCU-tasks quiescent state. Use condreschedtasksrcuqs() at both points so the walk reports an RCU-tasks quiescent state as it proceeds.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mm/shmem's shmem_undo_range(), replace both cond_resched() calls with cond_resched_tasks_rcu_qs() so the range walk reports RCU-tasks quiescent states.