Warning: Permanently added '10.128.0.241' (ED25519) to the list of known hosts. executing program [ 42.246893][ T6244] loop0: detected capacity change from 0 to 4096 [ 42.282042][ T6244] ntfs3: loop0: mft corrupted [ 42.283597][ T6244] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 42.292122][ T539] [ 42.292738][ T539] ====================================================== [ 42.294622][ T539] WARNING: possible circular locking dependency detected [ 42.296443][ T539] 6.9.0-rc7-syzkaller-gfda5695d692c #0 Not tainted [ 42.298206][ T539] ------------------------------------------------------ [ 42.299954][ T539] kworker/u8:7/539 is trying to acquire lock: [ 42.301625][ T539] ffff0000d6cce128 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x48/0x270 [ 42.304193][ T539] [ 42.304193][ T539] but task is already holding lock: [ 42.306158][ T539] ffff0000df95d220 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 42.308644][ T539] [ 42.308644][ T539] which lock already depends on the new lock. [ 42.308644][ T539] [ 42.311336][ T539] [ 42.311336][ T539] the existing dependency chain (in reverse order) is: [ 42.313802][ T539] [ 42.313802][ T539] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 42.315768][ T539] __mutex_lock_common+0x190/0x21a0 [ 42.317240][ T539] mutex_lock_nested+0x2c/0x38 [ 42.318628][ T539] ntfs_set_state+0x1a4/0x5c0 [ 42.319971][ T539] mi_read+0x3e0/0x4d8 [ 42.321158][ T539] mi_format_new+0x174/0x514 [ 42.322477][ T539] ni_add_subrecord+0xd0/0x3c4 [ 42.323883][ T539] ntfs_look_free_mft+0x4c8/0xd1c [ 42.325380][ T539] ni_create_attr_list+0x764/0xf54 [ 42.326907][ T539] ni_ins_attr_ext+0x300/0xa0c [ 42.328291][ T539] ni_add_name+0x658/0xc14 [ 42.329598][ T539] ni_rename+0xc8/0x1d8 [ 42.330795][ T539] ntfs_rename+0x610/0xae0 [ 42.332091][ T539] vfs_rename+0x9bc/0xc84 [ 42.333361][ T539] do_renameat2+0x9c8/0xe40 [ 42.334723][ T539] __arm64_sys_renameat2+0xe0/0xfc [ 42.336187][ T539] invoke_syscall+0x98/0x2b8 [ 42.337613][ T539] el0_svc_common+0x130/0x23c [ 42.339006][ T539] do_el0_svc+0x48/0x58 [ 42.340164][ T539] el0_svc+0x54/0x168 [ 42.341325][ T539] el0t_64_sync_handler+0x84/0xfc [ 42.342805][ T539] el0t_64_sync+0x190/0x194 [ 42.344226][ T539] [ 42.344226][ T539] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 42.346298][ T539] __lock_acquire+0x3384/0x763c [ 42.347746][ T539] lock_acquire+0x248/0x73c [ 42.349076][ T539] down_write_nested+0x58/0xcc [ 42.350436][ T539] ntfs_mark_rec_free+0x48/0x270 [ 42.351822][ T539] ni_write_inode+0xa28/0xda4 [ 42.353178][ T539] ntfs3_write_inode+0x70/0x98 [ 42.354589][ T539] __writeback_single_inode+0x5f0/0x1548 [ 42.356221][ T539] writeback_sb_inodes+0x700/0x101c [ 42.357730][ T539] wb_writeback+0x404/0x1048 [ 42.359013][ T539] wb_workfn+0x394/0x104c [ 42.360255][ T539] process_one_work+0x7b8/0x15d4 [ 42.361707][ T539] worker_thread+0x938/0xef4 [ 42.363097][ T539] kthread+0x288/0x310 [ 42.364246][ T539] ret_from_fork+0x10/0x20 [ 42.365571][ T539] [ 42.365571][ T539] other info that might help us debug this: [ 42.365571][ T539] [ 42.368340][ T539] Possible unsafe locking scenario: [ 42.368340][ T539] [ 42.370304][ T539] CPU0 CPU1 [ 42.371718][ T539] ---- ---- [ 42.373020][ T539] lock(&ni->ni_lock#3); [ 42.374184][ T539] lock(&wnd->rw_lock/1); [ 42.375982][ T539] lock(&ni->ni_lock#3); [ 42.377984][ T539] lock(&wnd->rw_lock/1); [ 42.379177][ T539] [ 42.379177][ T539] *** DEADLOCK *** [ 42.379177][ T539] [ 42.381286][ T539] 3 locks held by kworker/u8:7/539: [ 42.382652][ T539] #0: ffff0000c1ecc148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 [ 42.385555][ T539] #1: ffff800098ec7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 [ 42.388751][ T539] #2: ffff0000df95d220 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 42.391214][ T539] [ 42.391214][ T539] stack backtrace: [ 42.392741][ T539] CPU: 1 PID: 539 Comm: kworker/u8:7 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 [ 42.395271][ T539] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 42.397875][ T539] Workqueue: writeback wb_workfn (flush-7:0) [ 42.399420][ T539] Call trace: [ 42.400242][ T539] dump_backtrace+0x1b8/0x1e4 [ 42.401464][ T539] show_stack+0x2c/0x3c [ 42.402589][ T539] dump_stack_lvl+0xe4/0x150 [ 42.403801][ T539] dump_stack+0x1c/0x28 [ 42.404936][ T539] print_circular_bug+0x150/0x1b8 [ 42.406295][ T539] check_noncircular+0x310/0x404 [ 42.407619][ T539] __lock_acquire+0x3384/0x763c [ 42.408883][ T539] lock_acquire+0x248/0x73c [ 42.410047][ T539] down_write_nested+0x58/0xcc [ 42.411361][ T539] ntfs_mark_rec_free+0x48/0x270 [ 42.412675][ T539] ni_write_inode+0xa28/0xda4 [ 42.413873][ T539] ntfs3_write_inode+0x70/0x98 [ 42.415110][ T539] __writeback_single_inode+0x5f0/0x1548 [ 42.416590][ T539] writeback_sb_inodes+0x700/0x101c [ 42.417928][ T539] wb_writeback+0x404/0x1048 [ 42.419097][ T539] wb_workfn+0x394/0x104c [ 42.420224][ T539] process_one_work+0x7b8/0x15d4 [ 42.421503][ T539] worker_thread+0x938/0xef4 [ 42.422733][ T539] kthread+0x288/0x310 [ 42.423789][ T539] ret_from_fork+0x10/0x20