Warning: Permanently added '10.128.0.184' (ED25519) to the list of known hosts. executing program [ 36.586613][ T4221] loop0: detected capacity change from 0 to 4096 [ 36.590287][ T4221] ntfs: (device loop0): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel. [ 36.605488][ T4221] ntfs: volume version 3.1. [ 36.697735][ T4221] syz-executor434 (4221): drop_caches: 1 [ 36.704051][ T9] [ 36.704764][ T9] ====================================================== [ 36.706511][ T9] WARNING: possible circular locking dependency detected [ 36.708323][ T9] 6.1.83-syzkaller #0 Not tainted [ 36.709589][ T9] ------------------------------------------------------ [ 36.711314][ T9] kworker/u4:0/9 is trying to acquire lock: [ 36.712840][ T9] ffff0000e2090940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0xf40/0x1d70 [ 36.715028][ T9] [ 36.715028][ T9] but task is already holding lock: [ 36.716973][ T9] ffff0000e2093310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 36.719224][ T9] [ 36.719224][ T9] which lock already depends on the new lock. [ 36.719224][ T9] [ 36.721913][ T9] [ 36.721913][ T9] the existing dependency chain (in reverse order) is: [ 36.724247][ T9] [ 36.724247][ T9] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 36.726275][ T9] __mutex_lock_common+0x190/0x21a0 [ 36.727730][ T9] mutex_lock_nested+0x38/0x44 [ 36.729201][ T9] map_mft_record+0x64/0x7b4 [ 36.730556][ T9] ntfs_attr_extend_allocation+0x458/0x3470 [ 36.732246][ T9] ntfs_file_write_iter+0x2c8/0x17b0 [ 36.733770][ T9] do_iter_write+0x534/0x964 [ 36.735069][ T9] do_pwritev+0x1ec/0x334 [ 36.736296][ T9] __arm64_sys_pwritev2+0xd4/0x108 [ 36.737756][ T9] invoke_syscall+0x98/0x2c0 [ 36.739123][ T9] el0_svc_common+0x138/0x258 [ 36.740397][ T9] do_el0_svc+0x64/0x218 [ 36.741605][ T9] el0_svc+0x58/0x168 [ 36.742776][ T9] el0t_64_sync_handler+0x84/0xf0 [ 36.744237][ T9] el0t_64_sync+0x18c/0x190 [ 36.745503][ T9] [ 36.745503][ T9] -> #0 (&rl->lock){++++}-{3:3}: [ 36.747387][ T9] __lock_acquire+0x3338/0x7680 [ 36.748834][ T9] lock_acquire+0x26c/0x7cc [ 36.750148][ T9] down_read+0x64/0x308 [ 36.751359][ T9] ntfs_read_folio+0xf40/0x1d70 [ 36.752779][ T9] filemap_read_folio+0x14c/0x39c [ 36.754279][ T9] do_read_cache_folio+0x24c/0x544 [ 36.755654][ T9] read_cache_page+0x6c/0x180 [ 36.756961][ T9] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 36.758487][ T9] write_mft_record_nolock+0x100c/0x1630 [ 36.760133][ T9] write_mft_record+0x144/0x1bc [ 36.761575][ T9] __ntfs_write_inode+0x5cc/0xa78 [ 36.763012][ T9] ntfs_write_inode+0x68/0x90 [ 36.764307][ T9] __writeback_single_inode+0x614/0x1770 [ 36.765952][ T9] writeback_sb_inodes+0x978/0x1718 [ 36.767484][ T9] wb_writeback+0x414/0x1130 [ 36.768802][ T9] wb_workfn+0x3a8/0x1034 [ 36.770073][ T9] process_one_work+0x7ac/0x1404 [ 36.771554][ T9] worker_thread+0x8e4/0xfec [ 36.772865][ T9] kthread+0x250/0x2d8 [ 36.774005][ T9] ret_from_fork+0x10/0x20 [ 36.775308][ T9] [ 36.775308][ T9] other info that might help us debug this: [ 36.775308][ T9] [ 36.777896][ T9] Possible unsafe locking scenario: [ 36.777896][ T9] [ 36.779784][ T9] CPU0 CPU1 [ 36.781216][ T9] ---- ---- [ 36.782596][ T9] lock(&ni->mrec_lock); [ 36.783791][ T9] lock(&rl->lock); [ 36.785431][ T9] lock(&ni->mrec_lock); [ 36.787282][ T9] lock(&rl->lock); [ 36.788307][ T9] [ 36.788307][ T9] *** DEADLOCK *** [ 36.788307][ T9] [ 36.790472][ T9] 3 locks held by kworker/u4:0/9: [ 36.791783][ T9] #0: ffff0000c2e4d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 [ 36.794458][ T9] #1: ffff800019e17c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 [ 36.797534][ T9] #2: ffff0000e2093310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 36.799973][ T9] [ 36.799973][ T9] stack backtrace: [ 36.801468][ T9] CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 6.1.83-syzkaller #0 [ 36.803488][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 36.806143][ T9] Workqueue: writeback wb_workfn (flush-7:0) [ 36.807776][ T9] Call trace: [ 36.808685][ T9] dump_backtrace+0x1c8/0x1f4 [ 36.809918][ T9] show_stack+0x2c/0x3c [ 36.810992][ T9] dump_stack_lvl+0x108/0x170 [ 36.812230][ T9] dump_stack+0x1c/0x5c [ 36.813288][ T9] print_circular_bug+0x150/0x1b8 [ 36.814565][ T9] check_noncircular+0x2cc/0x378 [ 36.815854][ T9] __lock_acquire+0x3338/0x7680 [ 36.817192][ T9] lock_acquire+0x26c/0x7cc [ 36.818377][ T9] down_read+0x64/0x308 [ 36.819420][ T9] ntfs_read_folio+0xf40/0x1d70 [ 36.820662][ T9] filemap_read_folio+0x14c/0x39c [ 36.822133][ T9] do_read_cache_folio+0x24c/0x544 [ 36.823611][ T9] read_cache_page+0x6c/0x180 [ 36.824887][ T9] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 36.826291][ T9] write_mft_record_nolock+0x100c/0x1630 [ 36.827704][ T9] write_mft_record+0x144/0x1bc [ 36.828917][ T9] __ntfs_write_inode+0x5cc/0xa78 [ 36.830228][ T9] ntfs_write_inode+0x68/0x90 [ 36.831436][ T9] __writeback_single_inode+0x614/0x1770 [ 36.832946][ T9] writeback_sb_inodes+0x978/0x1718 [ 36.834350][ T9] wb_writeback+0x414/0x1130 [ 36.835487][ T9] wb_workfn+0x3a8/0x1034 [ 36.836610][ T9] process_one_work+0x7ac/0x1404 [ 36.837917][ T9] worker_thread+0x8e4/0xfec [ 36.839109][ T9] kthread+0x250/0x2d8 [ 36.840136][ T9] ret_from_fork+0x10/0x20