Warning: Permanently added '10.128.1.1' (ECDSA) to the list of known hosts. [ 33.488858] IPVS: ftp: loaded support on port[0] = 21 executing program [ 33.623683] ntfs: volume version 3.1. [ 33.730979] syz-executor293 (8100): drop_caches: 1 [ 33.780469] syz-executor293 (8100): drop_caches: 1 [ 33.792097] [ 33.793728] ====================================================== [ 33.800021] WARNING: possible circular locking dependency detected [ 33.806314] 4.19.211-syzkaller #0 Not tainted [ 33.810784] ------------------------------------------------------ [ 33.817081] kworker/u4:0/7 is trying to acquire lock: [ 33.822252] 00000000e1f3a370 (&rl->lock){++++}, at: ntfs_readpage+0x1909/0x21b0 [ 33.829698] [ 33.829698] but task is already holding lock: [ 33.835661] 0000000010cc17e8 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 [ 33.843349] [ 33.843349] which lock already depends on the new lock. [ 33.843349] [ 33.851640] [ 33.851640] the existing dependency chain (in reverse order) is: [ 33.859250] [ 33.859250] -> #1 (&ni->mrec_lock){+.+.}: [ 33.864865] map_mft_record+0x3c/0xc70 [ 33.869252] ntfs_truncate+0x202/0x2820 [ 33.873725] ntfs_setattr+0x1b6/0x620 [ 33.878024] notify_change+0x70b/0xfc0 [ 33.882407] do_truncate+0x134/0x1f0 [ 33.886621] path_openat+0x2308/0x2df0 [ 33.891005] do_filp_open+0x18c/0x3f0 [ 33.895304] do_sys_open+0x3b3/0x520 [ 33.899519] do_syscall_64+0xf9/0x620 [ 33.903820] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.909502] [ 33.909502] -> #0 (&rl->lock){++++}: [ 33.914673] down_read+0x36/0x80 [ 33.918536] ntfs_readpage+0x1909/0x21b0 [ 33.923095] do_read_cache_page+0x533/0x1170 [ 33.927999] ntfs_sync_mft_mirror+0x24f/0x1d00 [ 33.933079] write_mft_record_nolock+0x13d2/0x16c0 [ 33.938504] __ntfs_write_inode+0x609/0xe10 [ 33.943327] __writeback_single_inode+0x733/0x11d0 [ 33.948754] writeback_sb_inodes+0x537/0xef0 [ 33.953749] wb_writeback+0x28d/0xcc0 [ 33.958048] wb_workfn+0x29b/0x1250 [ 33.962176] process_one_work+0x864/0x1570 [ 33.966916] worker_thread+0x64c/0x1130 [ 33.971385] kthread+0x33f/0x460 [ 33.975253] ret_from_fork+0x24/0x30 [ 33.979458] [ 33.979458] other info that might help us debug this: [ 33.979458] [ 33.987575] Possible unsafe locking scenario: [ 33.987575] [ 33.993611] CPU0 CPU1 [ 33.998252] ---- ---- [ 34.002892] lock(&ni->mrec_lock); [ 34.006492] lock(&rl->lock); [ 34.012182] lock(&ni->mrec_lock); [ 34.018303] lock(&rl->lock); [ 34.021469] [ 34.021469] *** DEADLOCK *** [ 34.021469] [ 34.027505] 3 locks held by kworker/u4:0/7: [ 34.031797] #0: 000000003630507b ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 [ 34.041313] #1: 000000008354c08c ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 [ 34.051878] #2: 0000000010cc17e8 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 [ 34.060003] [ 34.060003] stack backtrace: [ 34.064478] CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0 [ 34.072160] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.081496] Workqueue: writeback wb_workfn (flush-7:0) [ 34.086747] Call Trace: [ 34.089315] dump_stack+0x1fc/0x2ef [ 34.092945] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 34.098720] __lock_acquire+0x30c9/0x3ff0 [ 34.102846] ? mark_held_locks+0xf0/0xf0 [ 34.106887] ? alloc_buffer_head+0x20/0x130 [ 34.111204] ? ntfs_readpage+0xe0b/0x21b0 [ 34.115334] lock_acquire+0x170/0x3c0 [ 34.119114] ? ntfs_readpage+0x1909/0x21b0 [ 34.123330] down_read+0x36/0x80 [ 34.126671] ? ntfs_readpage+0x1909/0x21b0 [ 34.130882] ntfs_readpage+0x1909/0x21b0 [ 34.134921] ? ntfs_end_buffer_async_read+0x1210/0x1210 [ 34.140265] ? add_to_page_cache_lru+0x259/0x680 [ 34.144998] ? add_to_page_cache_locked+0x40/0x40 [ 34.149820] do_read_cache_page+0x533/0x1170 [ 34.154207] ? ntfs_end_buffer_async_read+0x1210/0x1210 [ 34.159547] ntfs_sync_mft_mirror+0x24f/0x1d00 [ 34.164107] ? submit_bio+0xb1/0x430 [ 34.167799] ? generic_make_request+0xdf0/0xdf0 [ 34.172446] ? ntfs_mft_bitmap_extend_allocation_nolock+0x2600/0x2600 [ 34.179002] ? guard_bio_eod+0x2a0/0x650 [ 34.183043] ? submit_bh_wbc+0x5a7/0x760 [ 34.187084] write_mft_record_nolock+0x13d2/0x16c0 [ 34.191994] ? ntfs_sync_mft_mirror+0x1d00/0x1d00 [ 34.196816] ? debug_check_no_obj_freed+0x201/0x490 [ 34.201895] ? check_preemption_disabled+0x41/0x280 [ 34.206889] __ntfs_write_inode+0x609/0xe10 [ 34.211192] __writeback_single_inode+0x733/0x11d0 [ 34.216100] writeback_sb_inodes+0x537/0xef0 [ 34.220510] ? wbc_detach_inode+0x840/0x840 [ 34.224811] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 34.229806] ? queue_io+0x448/0x590 [ 34.233413] wb_writeback+0x28d/0xcc0 [ 34.237195] ? writeback_inodes_wb.constprop.0+0x1d0/0x1d0 [ 34.242796] wb_workfn+0x29b/0x1250 [ 34.246401] ? inode_wait_for_writeback+0x30/0x30 [ 34.251229] ? check_preemption_disabled+0x41/0x280 [ 34.256340] process_one_work+0x864/0x1570 [ 34.260646] ? pwq_dec_nr_in_flight+0x2d0/0x2d0 [ 34.265292] worker_thread+0x64c/0x1130 [ 34.269251] ? process_one_work+0x1570/0x1570 [ 34.273725] kthread+0x33f/0x460 [ 34.277067] ? kthread_park+0x180/0x180 [ 34.281019] ret_fr