Warning: Permanently added '10.128.1.173' (ECDSA) to the list of known hosts. executing program [ 34.652797] IPVS: ftp: loaded support on port[0] = 21 [ 34.715458] ntfs: volume version 3.1. [ 34.793869] syz-executor387 (7975): drop_caches: 1 [ 34.829626] syz-executor387 (7975): drop_caches: 1 [ 34.844863] [ 34.846517] ====================================================== [ 34.852804] WARNING: possible circular locking dependency detected [ 34.859115] 4.14.300-syzkaller #0 Not tainted [ 34.863584] ------------------------------------------------------ [ 34.869882] kworker/u4:4/3534 is trying to acquire lock: [ 34.875311] (&rl->lock){++++}, at: [] ntfs_readpage+0x1396/0x1ad0 [ 34.883184] [ 34.883184] but task is already holding lock: [ 34.889133] (&ni->mrec_lock){+.+.}, at: [] map_mft_record+0x2b/0xbe0 [ 34.897262] [ 34.897262] which lock already depends on the new lock. [ 34.897262] [ 34.905552] [ 34.905552] the existing dependency chain (in reverse order) is: [ 34.913144] [ 34.913144] -> #1 (&ni->mrec_lock){+.+.}: [ 34.919012] __mutex_lock+0xc4/0x1310 [ 34.923310] map_mft_record+0x2b/0xbe0 [ 34.927693] ntfs_truncate+0x1a6/0x22d0 [ 34.932181] ntfs_setattr+0x148/0x580 [ 34.936478] notify_change+0x56b/0xd10 [ 34.940865] do_truncate+0xff/0x1a0 [ 34.944986] path_openat+0x1dcc/0x2970 [ 34.949453] do_filp_open+0x179/0x3c0 [ 34.953749] do_sys_open+0x296/0x410 [ 34.957959] do_syscall_64+0x1d5/0x640 [ 34.962430] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 34.968131] [ 34.968131] -> #0 (&rl->lock){++++}: [ 34.973304] lock_acquire+0x170/0x3f0 [ 34.977601] down_read+0x36/0x80 [ 34.981470] ntfs_readpage+0x1396/0x1ad0 [ 34.986036] do_read_cache_page+0x38e/0xc10 [ 34.990853] ntfs_sync_mft_mirror+0x1f4/0x1560 [ 34.995929] write_mft_record_nolock+0xece/0x1240 [ 35.001267] __ntfs_write_inode+0x58d/0xcc0 [ 35.006084] __writeback_single_inode+0x6a4/0x1010 [ 35.011510] writeback_sb_inodes+0x48b/0xd30 [ 35.016414] wb_writeback+0x243/0xb80 [ 35.020717] wb_workfn+0x2bd/0xf50 [ 35.024753] process_one_work+0x793/0x14a0 [ 35.029482] worker_thread+0x5cc/0xff0 [ 35.033864] kthread+0x30d/0x420 [ 35.037726] ret_from_fork+0x24/0x30 [ 35.041932] [ 35.041932] other info that might help us debug this: [ 35.041932] [ 35.050054] Possible unsafe locking scenario: [ 35.050054] [ 35.056086] CPU0 CPU1 [ 35.060728] ---- ---- [ 35.065368] lock(&ni->mrec_lock); [ 35.068971] lock(&rl->lock); [ 35.074657] lock(&ni->mrec_lock); [ 35.080774] lock(&rl->lock); [ 35.083965] [ 35.083965] *** DEADLOCK *** [ 35.083965] [ 35.090000] 3 locks held by kworker/u4:4/3534: [ 35.094554] #0: ("writeback"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 [ 35.103200] #1: ((&(&wb->dwork)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 [ 35.112712] #2: (&ni->mrec_lock){+.+.}, at: [] map_mft_record+0x2b/0xbe0 [ 35.121269] [ 35.121269] stack backtrace: [ 35.125744] CPU: 0 PID: 3534 Comm: kworker/u4:4 Not tainted 4.14.300-syzkaller #0 [ 35.133336] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.142674] Workqueue: writeback wb_workfn (flush-7:0) [ 35.147949] Call Trace: [ 35.150538] dump_stack+0x1b2/0x281 [ 35.154147] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 35.159928] __lock_acquire+0x2e0e/0x3f20 [ 35.164228] ? lock_downgrade+0x740/0x740 [ 35.168351] ? trace_hardirqs_on+0x10/0x10 [ 35.172563] ? alloc_buffer_head+0x20/0x110 [ 35.176860] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 35.182291] ? ntfs_readpage+0xba8/0x1ad0 [ 35.186415] lock_acquire+0x170/0x3f0 [ 35.190201] ? ntfs_readpage+0x1396/0x1ad0 [ 35.194419] down_read+0x36/0x80 [ 35.197760] ? ntfs_readpage+0x1396/0x1ad0 [ 35.201971] ntfs_readpage+0x1396/0x1ad0 [ 35.206012] ? __lru_cache_add+0x178/0x250 [ 35.210224] ? ntfs_end_buffer_async_read+0x10a0/0x10a0 [ 35.215582] ? add_to_page_cache_lru+0x136/0x2b0 [ 35.220313] ? add_to_page_cache_locked+0x40/0x40 [ 35.225130] ? alloc_pages_current+0x15d/0x260 [ 35.229698] do_read_cache_page+0x38e/0xc10 [ 35.234000] ? ntfs_end_buffer_async_read+0x10a0/0x10a0 [ 35.239340] ntfs_sync_mft_mirror+0x1f4/0x1560 [ 35.243992] ? ntfs_sync_mft_mirror+0x2b/0x1560 [ 35.248639] ? generic_make_request+0x850/0x850 [ 35.253285] ? guard_bio_eod+0x1ba/0x520 [ 35.258039] write_mft_record_nolock+0xece/0x1240 [ 35.262860] __ntfs_write_inode+0x58d/0xcc0 [ 35.267157] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 35.272587] __writeback_single_inode+0x6a4/0x1010 [ 35.277493] writeback_sb_inodes+0x48b/0xd30 [ 35.281883] ? wbc_detach_inode+0x780/0x780 [ 35.286183] ? queue_io+0x400/0x5a0 [ 35.289786] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 35.295210] wb_writeback+0x243/0xb80 [ 35.298995] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 35.304688] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 35.310114] wb_workfn+0x2bd/0xf50 [ 35.313635] ? process_one_work+0x6c4/0x14a0 [ 35.318018] ? inode_wait_for_writeback+0x30/0x30 [ 35.322839] ? lock_acquire+0x170/0x3f0 [ 35.326799] ? rcu_lockdep_current_cpu_online+0xed/0x140