Re: [BUG] ntfs: mrec_lock ABBA deadlock between writeback/fsync and rename

From: Peiyang He

Date: Mon Jun 29 2026 - 05:41:07 EST


On 2026/6/29 13:18, Namjae Jeon wrote:
> On Mon, Jun 29, 2026 at 1:25 PM Peiyang He <peiyang_he@xxxxxxxxxxxxxxxx> wrote:
>>
>> Hello Linux kernel developers and maintainers,
> Hello Peiyang,
>
>>
>> We found two task hungs in the new NTFS when fuzzing with Syzkaller.
>> After our digging, we believe both hangs are caused by the SAME AB-BA type DEADLOCK issue,
>> so we report them together here.
>>
>> Title of task hung #1: INFO: task hung in __ntfs_write_inode
>> Title of task hung #2: INFO: task hung in ntfs_inode_sync_filename
>>
>> Kernel version: commit 8cd9520d35a6c38db6567e97dd93b1f11f185dc6 (tag v7.1).
>> And we believe the bug is also possible in the current mainline.
>> Note that the code line numbers in the following analysis are also based on this kernel version.
>>
>> Relevant kernel config: (the complete config is included in the attachments)
> Do you have a suggested patch you can get credit for?
Hi Namjae,
Thanks for your reply. Yes, I'm working on the patch, and hopefully I can get it done very soon.

> Thanks.
>