CVE-2026-100011: ntfs: avoid truncate and writeback deadlock
In the Linux kernel, the following vulnerability has been resolved:
ntfs: avoid truncate and writeback deadlock
ntfsnonresidentattrshrink() drops page-cache folios after freeing clusters and truncating the runlist. The VFS truncate path calls it with mreclock held. A folio writeback can need the same lock to resolve its iomap mapping, so truncate can wait for writeback while writeback waits for mreclock.
A hung-task call stack:
truncate: mreclock -> truncateinodepages() -> folio lock/writeback
writeback: folio lock/writeback -> ntfswriteiomapbegin() -> mreclock
ntfssetattrsize() already calls truncatesetsize() before ntfstruncatevfs() acquires mreclock. Reuse that page-cache truncation in the VFS path and skip the duplicate truncation under mreclock. Keep the cleanup for internal attribute callers, which do not call truncatesetsize(). This avoids synchronously flushing the whole discarded tail while preserving page-cache correctness.