Warning: Permanently added '10.128.0.145' (ED25519) to the list of known hosts. executing program [ 32.339831][ T6243] loop0: detected capacity change from 0 to 4096 [ 32.373186][ T6243] ntfs3: loop0: mft corrupted [ 32.374644][ T6243] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 32.383313][ T595] [ 32.383923][ T595] ====================================================== [ 32.385659][ T595] WARNING: possible circular locking dependency detected [ 32.387460][ T595] 6.9.0-rc7-syzkaller-gfda5695d692c #0 Not tainted [ 32.389155][ T595] ------------------------------------------------------ [ 32.390993][ T595] kworker/u8:11/595 is trying to acquire lock: [ 32.392613][ T595] ffff0000cfb4c128 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x48/0x270 [ 32.395239][ T595] [ 32.395239][ T595] but task is already holding lock: [ 32.397208][ T595] ffff0000dfd24ac0 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 32.399614][ T595] [ 32.399614][ T595] which lock already depends on the new lock. [ 32.399614][ T595] [ 32.402417][ T595] [ 32.402417][ T595] the existing dependency chain (in reverse order) is: [ 32.404790][ T595] [ 32.404790][ T595] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 32.406797][ T595] __mutex_lock_common+0x190/0x21a0 [ 32.408331][ T595] mutex_lock_nested+0x2c/0x38 [ 32.409722][ T595] ntfs_set_state+0x1a4/0x5c0 [ 32.411065][ T595] mi_read+0x3e0/0x4d8 [ 32.412344][ T595] mi_format_new+0x174/0x514 [ 32.413801][ T595] ni_add_subrecord+0xd0/0x3c4 [ 32.415173][ T595] ntfs_look_free_mft+0x4c8/0xd1c [ 32.416692][ T595] ni_create_attr_list+0x764/0xf54 [ 32.418250][ T595] ni_ins_attr_ext+0x300/0xa0c [ 32.419665][ T595] ni_add_name+0x658/0xc14 [ 32.421020][ T595] ni_rename+0xc8/0x1d8 [ 32.422366][ T595] ntfs_rename+0x610/0xae0 [ 32.423717][ T595] vfs_rename+0x9bc/0xc84 [ 32.424984][ T595] do_renameat2+0x9c8/0xe40 [ 32.426371][ T595] __arm64_sys_renameat2+0xe0/0xfc [ 32.427878][ T595] invoke_syscall+0x98/0x2b8 [ 32.429363][ T595] el0_svc_common+0x130/0x23c [ 32.430710][ T595] do_el0_svc+0x48/0x58 [ 32.431986][ T595] el0_svc+0x54/0x168 [ 32.433235][ T595] el0t_64_sync_handler+0x84/0xfc [ 32.434704][ T595] el0t_64_sync+0x190/0x194 [ 32.436123][ T595] [ 32.436123][ T595] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 32.438261][ T595] __lock_acquire+0x3384/0x763c [ 32.439753][ T595] lock_acquire+0x248/0x73c [ 32.441312][ T595] down_write_nested+0x58/0xcc [ 32.442737][ T595] ntfs_mark_rec_free+0x48/0x270 [ 32.444337][ T595] ni_write_inode+0xa28/0xda4 [ 32.445736][ T595] ntfs3_write_inode+0x70/0x98 [ 32.447151][ T595] __writeback_single_inode+0x5f0/0x1548 [ 32.448897][ T595] writeback_sb_inodes+0x700/0x101c [ 32.450402][ T595] wb_writeback+0x404/0x1048 [ 32.451729][ T595] wb_workfn+0x394/0x104c [ 32.453110][ T595] process_one_work+0x7b8/0x15d4 [ 32.454655][ T595] worker_thread+0x938/0xef4 [ 32.456118][ T595] kthread+0x288/0x310 [ 32.457440][ T595] ret_from_fork+0x10/0x20 [ 32.458813][ T595] [ 32.458813][ T595] other info that might help us debug this: [ 32.458813][ T595] [ 32.461610][ T595] Possible unsafe locking scenario: [ 32.461610][ T595] [ 32.463629][ T595] CPU0 CPU1 [ 32.465087][ T595] ---- ---- [ 32.466586][ T595] lock(&ni->ni_lock#3); [ 32.467796][ T595] lock(&wnd->rw_lock/1); [ 32.469768][ T595] lock(&ni->ni_lock#3); [ 32.471666][ T595] lock(&wnd->rw_lock/1); [ 32.472823][ T595] [ 32.472823][ T595] *** DEADLOCK *** [ 32.472823][ T595] [ 32.475074][ T595] 3 locks held by kworker/u8:11/595: [ 32.476526][ T595] #0: ffff0000c20c6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 [ 32.479528][ T595] #1: ffff8000988d7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 [ 32.482812][ T595] #2: ffff0000dfd24ac0 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 32.485410][ T595] [ 32.485410][ T595] stack backtrace: [ 32.487109][ T595] CPU: 0 PID: 595 Comm: kworker/u8:11 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 [ 32.489756][ T595] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 32.492598][ T595] Workqueue: writeback wb_workfn (flush-7:0) [ 32.494279][ T595] Call trace: [ 32.495128][ T595] dump_backtrace+0x1b8/0x1e4 [ 32.496466][ T595] show_stack+0x2c/0x3c [ 32.497576][ T595] dump_stack_lvl+0xe4/0x150 [ 32.498835][ T595] dump_stack+0x1c/0x28 [ 32.499958][ T595] print_circular_bug+0x150/0x1b8 [ 32.501300][ T595] check_noncircular+0x310/0x404 [ 32.502660][ T595] __lock_acquire+0x3384/0x763c [ 32.504032][ T595] lock_acquire+0x248/0x73c [ 32.505318][ T595] down_write_nested+0x58/0xcc [ 32.506646][ T595] ntfs_mark_rec_free+0x48/0x270 [ 32.508030][ T595] ni_write_inode+0xa28/0xda4 [ 32.509354][ T595] ntfs3_write_inode+0x70/0x98 [ 32.510690][ T595] __writeback_single_inode+0x5f0/0x1548 [ 32.512255][ T595] writeback_sb_inodes+0x700/0x101c [ 32.513602][ T595] wb_writeback+0x404/0x1048 [ 32.514906][ T595] wb_workfn+0x394/0x104c [ 32.516083][ T595] process_one_work+0x7b8/0x15d4 [ 32.517475][ T595] worker_thread+0x938/0xef4 [ 32.518712][ T595] kthread+0x288/0x310 [ 32.519838][ T595] ret_from_fork+0x10/0x20