Warning: Permanently added '10.128.0.219' (ED25519) to the list of known hosts. executing program [ 32.369599][ T6243] loop0: detected capacity change from 0 to 4096 [ 32.405747][ T6243] ntfs3: loop0: mft corrupted [ 32.407243][ T6243] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 32.415478][ T10] [ 32.416135][ T10] ====================================================== [ 32.417914][ T10] WARNING: possible circular locking dependency detected [ 32.419663][ T10] 6.9.0-rc7-syzkaller-gfda5695d692c #0 Not tainted [ 32.421285][ T10] ------------------------------------------------------ [ 32.423030][ T10] kworker/u8:0/10 is trying to acquire lock: [ 32.424603][ T10] ffff0000d5c1a128 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x48/0x270 [ 32.427047][ T10] [ 32.427047][ T10] but task is already holding lock: [ 32.428909][ T10] ffff0000e0553c00 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 32.431216][ T10] [ 32.431216][ T10] which lock already depends on the new lock. [ 32.431216][ T10] [ 32.433815][ T10] [ 32.433815][ T10] the existing dependency chain (in reverse order) is: [ 32.436285][ T10] [ 32.436285][ T10] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 32.438222][ T10] __mutex_lock_common+0x190/0x21a0 [ 32.439667][ T10] mutex_lock_nested+0x2c/0x38 [ 32.440998][ T10] ntfs_set_state+0x1a4/0x5c0 [ 32.442316][ T10] mi_read+0x3e0/0x4d8 [ 32.443493][ T10] mi_format_new+0x174/0x514 [ 32.444813][ T10] ni_add_subrecord+0xd0/0x3c4 [ 32.446229][ T10] ntfs_look_free_mft+0x4c8/0xd1c [ 32.447730][ T10] ni_create_attr_list+0x764/0xf54 [ 32.449232][ T10] ni_ins_attr_ext+0x300/0xa0c [ 32.450612][ T10] ni_add_name+0x658/0xc14 [ 32.451885][ T10] ni_rename+0xc8/0x1d8 [ 32.453050][ T10] ntfs_rename+0x610/0xae0 [ 32.454421][ T10] vfs_rename+0x9bc/0xc84 [ 32.455732][ T10] do_renameat2+0x9c8/0xe40 [ 32.457080][ T10] __arm64_sys_renameat2+0xe0/0xfc [ 32.458592][ T10] invoke_syscall+0x98/0x2b8 [ 32.459949][ T10] el0_svc_common+0x130/0x23c [ 32.461275][ T10] do_el0_svc+0x48/0x58 [ 32.462499][ T10] el0_svc+0x54/0x168 [ 32.463682][ T10] el0t_64_sync_handler+0x84/0xfc [ 32.465122][ T10] el0t_64_sync+0x190/0x194 [ 32.466435][ T10] [ 32.466435][ T10] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 32.468435][ T10] __lock_acquire+0x3384/0x763c [ 32.469821][ T10] lock_acquire+0x248/0x73c [ 32.471163][ T10] down_write_nested+0x58/0xcc [ 32.472550][ T10] ntfs_mark_rec_free+0x48/0x270 [ 32.474006][ T10] ni_write_inode+0xa28/0xda4 [ 32.475383][ T10] ntfs3_write_inode+0x70/0x98 [ 32.476809][ T10] __writeback_single_inode+0x5f0/0x1548 [ 32.478451][ T10] writeback_sb_inodes+0x700/0x101c [ 32.479968][ T10] wb_writeback+0x404/0x1048 [ 32.481288][ T10] wb_workfn+0x394/0x104c [ 32.482535][ T10] process_one_work+0x7b8/0x15d4 [ 32.483966][ T10] worker_thread+0x938/0xef4 [ 32.485305][ T10] kthread+0x288/0x310 [ 32.486519][ T10] ret_from_fork+0x10/0x20 [ 32.487874][ T10] [ 32.487874][ T10] other info that might help us debug this: [ 32.487874][ T10] [ 32.490649][ T10] Possible unsafe locking scenario: [ 32.490649][ T10] [ 32.492569][ T10] CPU0 CPU1 [ 32.493995][ T10] ---- ---- [ 32.495591][ T10] lock(&ni->ni_lock#3); [ 32.496811][ T10] lock(&wnd->rw_lock/1); [ 32.498683][ T10] lock(&ni->ni_lock#3); [ 32.500567][ T10] lock(&wnd->rw_lock/1); [ 32.501783][ T10] [ 32.501783][ T10] *** DEADLOCK *** [ 32.501783][ T10] [ 32.504110][ T10] 3 locks held by kworker/u8:0/10: [ 32.505519][ T10] #0: ffff0000c1ecc148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 [ 32.508485][ T10] #1: ffff800093c47c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 [ 32.511804][ T10] #2: ffff0000e0553c00 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x168/0xda4 [ 32.514410][ T10] [ 32.514410][ T10] stack backtrace: [ 32.515910][ T10] CPU: 1 PID: 10 Comm: kworker/u8:0 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 [ 32.518447][ T10] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 32.521247][ T10] Workqueue: writeback wb_workfn (flush-7:0) [ 32.522875][ T10] Call trace: [ 32.523801][ T10] dump_backtrace+0x1b8/0x1e4 [ 32.525029][ T10] show_stack+0x2c/0x3c [ 32.526147][ T10] dump_stack_lvl+0xe4/0x150 [ 32.527406][ T10] dump_stack+0x1c/0x28 [ 32.528510][ T10] print_circular_bug+0x150/0x1b8 [ 32.529898][ T10] check_noncircular+0x310/0x404 [ 32.531251][ T10] __lock_acquire+0x3384/0x763c [ 32.532547][ T10] lock_acquire+0x248/0x73c [ 32.533757][ T10] down_write_nested+0x58/0xcc [ 32.535047][ T10] ntfs_mark_rec_free+0x48/0x270 [ 32.536426][ T10] ni_write_inode+0xa28/0xda4 [ 32.537703][ T10] ntfs3_write_inode+0x70/0x98 [ 32.539004][ T10] __writeback_single_inode+0x5f0/0x1548 [ 32.540476][ T10] writeback_sb_inodes+0x700/0x101c [ 32.541900][ T10] wb_writeback+0x404/0x1048 [ 32.543083][ T10] wb_workfn+0x394/0x104c [ 32.544192][ T10] process_one_work+0x7b8/0x15d4 [ 32.545565][ T10] worker_thread+0x938/0xef4 [ 32.546822][ T10] kthread+0x288/0x310 [ 32.547893][ T10] ret_from_fork+0x10/0x20