Warning: Permanently added '10.128.1.8' (ED25519) to the list of known hosts. executing program [ 66.666088][ T3546] loop0: detected capacity change from 0 to 4096 [ 66.698732][ T3546] ntfs: volume version 3.1. [ 66.871938][ T3546] syz-executor336 (3546): drop_caches: 1 [ 66.967404][ T3546] syz-executor336 (3546): drop_caches: 1 [ 66.985688][ T46] [ 66.988073][ T46] ====================================================== [ 66.995104][ T46] WARNING: possible circular locking dependency detected [ 67.002132][ T46] 6.1.87-syzkaller #0 Not tainted [ 67.007155][ T46] ------------------------------------------------------ [ 67.014195][ T46] kworker/u4:3/46 is trying to acquire lock: [ 67.020165][ T46] ffff888073200940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x14c9/0x29d0 [ 67.029164][ T46] [ 67.029164][ T46] but task is already holding lock: [ 67.036607][ T46] ffff888073203310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x48/0x630 [ 67.045593][ T46] [ 67.045593][ T46] which lock already depends on the new lock. [ 67.045593][ T46] [ 67.056017][ T46] [ 67.056017][ T46] the existing dependency chain (in reverse order) is: [ 67.065258][ T46] [ 67.065258][ T46] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 67.073029][ T46] lock_acquire+0x1f8/0x5a0 [ 67.078073][ T46] __mutex_lock+0x132/0xd80 [ 67.083131][ T46] map_mft_record+0x48/0x630 [ 67.088240][ T46] ntfs_truncate+0x263/0x2860 [ 67.093478][ T46] ntfs_setattr+0x2c7/0x3a0 [ 67.098710][ T46] notify_change+0xce3/0xfc0 [ 67.103852][ T46] do_truncate+0x21c/0x300 [ 67.108822][ T46] path_openat+0x27e2/0x2e60 [ 67.114306][ T46] do_filp_open+0x230/0x480 [ 67.119358][ T46] do_sys_openat2+0x13b/0x500 [ 67.124571][ T46] __x64_sys_openat+0x243/0x290 [ 67.130277][ T46] do_syscall_64+0x3b/0xb0 [ 67.135333][ T46] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 67.141772][ T46] [ 67.141772][ T46] -> #0 (&rl->lock){++++}-{3:3}: [ 67.148927][ T46] validate_chain+0x1661/0x5950 [ 67.154340][ T46] __lock_acquire+0x125b/0x1f80 [ 67.159735][ T46] lock_acquire+0x1f8/0x5a0 [ 67.164782][ T46] down_read+0xad/0xa30 [ 67.169471][ T46] ntfs_read_folio+0x14c9/0x29d0 [ 67.174959][ T46] filemap_read_folio+0x199/0x780 [ 67.180827][ T46] do_read_cache_folio+0x2ee/0x810 [ 67.186588][ T46] do_read_cache_page+0x32/0x220 [ 67.192070][ T46] ntfs_sync_mft_mirror+0x25b/0x1ad0 [ 67.197905][ T46] write_mft_record_nolock+0x1151/0x18d0 [ 67.204075][ T46] write_mft_record+0x149/0x310 [ 67.209490][ T46] __ntfs_write_inode+0x6ff/0xbb0 [ 67.215073][ T46] __writeback_single_inode+0x67d/0x11e0 [ 67.221240][ T46] writeback_sb_inodes+0xc2b/0x1b20 [ 67.226986][ T46] wb_writeback+0x49d/0xe10 [ 67.232016][ T46] wb_workfn+0x427/0x1020 [ 67.237132][ T46] process_one_work+0x8a9/0x11d0 [ 67.242624][ T46] worker_thread+0xa47/0x1200 [ 67.247847][ T46] kthread+0x28d/0x320 [ 67.252471][ T46] ret_from_fork+0x1f/0x30 [ 67.257809][ T46] [ 67.257809][ T46] other info that might help us debug this: [ 67.257809][ T46] [ 67.269713][ T46] Possible unsafe locking scenario: [ 67.269713][ T46] [ 67.277271][ T46] CPU0 CPU1 [ 67.282681][ T46] ---- ---- [ 67.288312][ T46] lock(&ni->mrec_lock); [ 67.292925][ T46] lock(&rl->lock); [ 67.299721][ T46] lock(&ni->mrec_lock); [ 67.307118][ T46] lock(&rl->lock); [ 67.311676][ T46] [ 67.311676][ T46] *** DEADLOCK *** [ 67.311676][ T46] [ 67.320177][ T46] 3 locks held by kworker/u4:3/46: [ 67.326041][ T46] #0: ffff888143ec6938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 67.336903][ T46] #1: ffffc90000b77d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 67.348844][ T46] #2: ffff888073203310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x48/0x630 [ 67.358389][ T46] [ 67.358389][ T46] stack backtrace: [ 67.364410][ T46] CPU: 1 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.87-syzkaller #0 [ 67.373225][ T46] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 67.383498][ T46] Workqueue: writeback wb_workfn (flush-7:0) [ 67.390156][ T46] Call Trace: [ 67.393456][ T46] [ 67.396394][ T46] dump_stack_lvl+0x1e3/0x2cb [ 67.401121][ T46] ? nf_tcp_handle_invalid+0x642/0x642 [ 67.406696][ T46] ? print_circular_bug+0x12b/0x1a0 [ 67.411935][ T46] check_noncircular+0x2fa/0x3b0 [ 67.416919][ T46] ? deref_stack_reg+0x17c/0x210 [ 67.422247][ T46] ? noop_count+0x30/0x30 [ 67.426596][ T46] ? add_chain_block+0x850/0x850 [ 67.431541][ T46] ? lockdep_lock+0x11f/0x2a0 [ 67.436255][ T46] ? unwind_next_frame+0x111a/0x2220 [ 67.441573][ T46] ? _find_first_zero_bit+0xd0/0x100 [ 67.446887][ T46] validate_chain+0x1661/0x5950 [ 67.451752][ T46] ? ret_from_fork+0x1f/0x30 [ 67.456365][ T46] ? stack_trace_save+0x113/0x1c0 [ 67.461395][ T46] ? reacquire_held_locks+0x660/0x660 [ 67.466808][ T46] ? stack_trace_snprint+0xe0/0xe0 [ 67.471946][ T46] ? queued_spin_lock_slowpath+0x42/0x50 [ 67.477588][ T46] ? lockdep_lock+0x1a7/0x2a0 [ 67.482276][ T46] ? lockdep_unlock+0x165/0x300 [ 67.487143][ T46] ? lockdep_lock+0x2a0/0x2a0 [ 67.491834][ T46] ? mark_lock+0x29d/0x340 [ 67.496279][ T46] __lock_acquire+0x125b/0x1f80 [ 67.501235][ T46] lock_acquire+0x1f8/0x5a0 [ 67.505760][ T46] ? ntfs_read_folio+0x14c9/0x29d0 [ 67.510892][ T46] ? read_lock_is_recursive+0x10/0x10 [ 67.516354][ T46] ? __might_sleep+0xb0/0xb0 [ 67.520946][ T46] ? mark_lock+0x9a/0x340 [ 67.525299][ T46] down_read+0xad/0xa30 [ 67.529970][ T46] ? ntfs_read_folio+0x14c9/0x29d0 [ 67.535106][ T46] ? print_irqtrace_events+0x210/0x210 [ 67.540586][ T46] ? __down_common+0x8b0/0x8b0 [ 67.545360][ T46] ? _raw_read_unlock_irqrestore+0x8b/0x130 [ 67.551352][ T46] ? lockdep_hardirqs_on+0x94/0x130 [ 67.556679][ T46] ? _raw_read_unlock_irqrestore+0xd9/0x130 [ 67.562684][ T46] ? _raw_read_unlock+0x40/0x40 [ 67.567611][ T46] ? do_raw_spin_unlock+0x137/0x8a0 [ 67.572824][ T46] ntfs_read_folio+0x14c9/0x29d0 [ 67.577815][ T46] ? ntfs_writepage+0x1ac0/0x1ac0 [ 67.582875][ T46] ? folio_add_lru+0xd70/0xd70 [ 67.587804][ T46] ? folio_add_lru+0x34d/0xd70 [ 67.592586][ T46] ? folio_add_lru+0x584/0xd70 [ 67.597535][ T46] filemap_read_folio+0x199/0x780 [ 67.602775][ T46] ? filemap_add_folio+0x570/0x570 [ 67.608032][ T46] ? ntfs_writepage+0x1ac0/0x1ac0 [ 67.613715][ T46] ? maybe_unlock_mmap_for_io+0x130/0x130 [ 67.619704][ T46] ? ktime_get+0x7f/0x270 [ 67.624142][ T46] ? lockdep_hardirqs_on+0x94/0x130 [ 67.629526][ T46] ? seqcount_lockdep_reader_access+0x1d3/0x220 [ 67.636149][ T46] do_read_cache_folio+0x2ee/0x810 [ 67.641290][ T46] ? ntfs_writepage+0x1ac0/0x1ac0 [ 67.646359][ T46] do_read_cache_page+0x32/0x220 [ 67.651310][ T46] ntfs_sync_mft_mirror+0x25b/0x1ad0 [ 67.656772][ T46] ? submit_bio_noacct_nocheck+0xa88/0xd10 [ 67.662593][ T46] ? should_fail_request+0x70/0x70 [ 67.667812][ T46] ? __mark_mft_record_dirty+0x170/0x170 [ 67.673466][ T46] ? submit_bh_wbc+0x437/0x4e0 [ 67.678244][ T46] write_mft_record_nolock+0x1151/0x18d0 [ 67.683912][ T46] ? ntfs_unmap_page+0x250/0x250 [ 67.688871][ T46] ? lockdep_hardirqs_on+0x94/0x130 [ 67.694071][ T46] write_mft_record+0x149/0x310 [ 67.698956][ T46] __ntfs_write_inode+0x6ff/0xbb0 [ 67.703998][ T46] __writeback_single_inode+0x67d/0x11e0 [ 67.709687][ T46] writeback_sb_inodes+0xc2b/0x1b20 [ 67.714906][ T46] ? move_expired_inodes+0x375/0x810 [ 67.720394][ T46] ? mark_lock+0x9a/0x340 [ 67.724761][ T46] ? queue_io+0x630/0x630 [ 67.729101][ T46] ? __writeback_inodes_wb+0x400/0x400 [ 67.734580][ T46] ? queue_io+0x42a/0x630 [ 67.739001][ T46] wb_writeback+0x49d/0xe10 [ 67.743510][ T46] ? percpu_ref_tryget+0x260/0x260 [ 67.748710][ T46] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 67.754718][ T46] ? do_raw_spin_unlock+0x137/0x8a0 [ 67.759953][ T46] wb_workfn+0x427/0x1020 [ 67.764307][ T46] ? inode_wait_for_writeback+0x280/0x280 [ 67.770306][ T46] ? read_lock_is_recursive+0x10/0x10 [ 67.775818][ T46] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 67.781822][ T46] ? print_irqtrace_events+0x210/0x210 [ 67.787318][ T46] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 67.793937][ T46] ? do_raw_spin_unlock+0x137/0x8a0 [ 67.799143][ T46] ? process_one_work+0x7a9/0x11d0 [ 67.804450][ T46] process_one_work+0x8a9/0x11d0 [ 67.809616][ T46] ? worker_detach_from_pool+0x260/0x260 [ 67.815379][ T46] ? _raw_spin_lock_irqsave+0x120/0x120 [ 6