Re: [BUG] ntfs: recursive mrec_lock in buffered write to a resident file mmap'd as the write() source (possible deadlock)

From: Namjae Jeon

Date: Thu Dec 03 2026 - 07:41:20 EST


On Thu, Dec 3, 2026 at 3:09 PM Guikun Yang <yangguikun19@xxxxxx> wrote:
>
> Hi Namjae, Hyunchul,
>
> We found a lockdep-detectable recursive acquisition of
> ntfs_inode::mrec_lock on a normal NTFS image. It needs no crafted
> metadata beyond a resident file, and the trigger is a plain buffered
> write whose source buffer is the same file's page cache.
I will check and share the patch with you.
Thanks.