Warning: Permanently added '10.128.0.183' (ED25519) to the list of known hosts. executing program [ 52.915462][ T3488] loop0: detected capacity change from 0 to 4096 [ 52.937708][ T3488] ntfs: volume version 3.1. [ 53.106448][ T3488] syz-executor208 (3488): drop_caches: 1 [ 53.187964][ T3488] syz-executor208 (3488): drop_caches: 1 [ 53.210388][ T1223] [ 53.212737][ T1223] ====================================================== [ 53.219745][ T1223] WARNING: possible circular locking dependency detected [ 53.226765][ T1223] 5.15.125-syzkaller #0 Not tainted [ 53.231952][ T1223] ------------------------------------------------------ [ 53.239019][ T1223] kworker/u4:4/1223 is trying to acquire lock: [ 53.245421][ T1223] ffff8880710e0940 (&rl->lock){++++}-{3:3}, at: ntfs_readpage+0x123e/0x2210 [ 53.254303][ T1223] [ 53.254303][ T1223] but task is already holding lock: [ 53.261655][ T1223] ffff8880710e3310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x850 [ 53.270608][ T1223] [ 53.270608][ T1223] which lock already depends on the new lock. [ 53.270608][ T1223] [ 53.281085][ T1223] [ 53.281085][ T1223] the existing dependency chain (in reverse order) is: [ 53.290096][ T1223] [ 53.290096][ T1223] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 53.297646][ T1223] lock_acquire+0x1db/0x4f0 [ 53.302672][ T1223] __mutex_lock_common+0x1da/0x25a0 [ 53.308385][ T1223] mutex_lock_nested+0x17/0x20 [ 53.313851][ T1223] map_mft_record+0x4a/0x850 [ 53.318979][ T1223] ntfs_truncate+0x263/0x2860 [ 53.324167][ T1223] ntfs_setattr+0x2c7/0x3a0 [ 53.329312][ T1223] notify_change+0xd4d/0x1000 [ 53.334512][ T1223] do_truncate+0x21c/0x300 [ 53.339538][ T1223] path_openat+0x28a0/0x2f20 [ 53.344766][ T1223] do_filp_open+0x21c/0x460 [ 53.349816][ T1223] do_sys_openat2+0x13b/0x500 [ 53.355006][ T1223] __x64_sys_openat+0x243/0x290 [ 53.360380][ T1223] do_syscall_64+0x3d/0xb0 [ 53.365319][ T1223] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 53.371826][ T1223] [ 53.371826][ T1223] -> #0 (&rl->lock){++++}-{3:3}: [ 53.379046][ T1223] validate_chain+0x1646/0x58b0 [ 53.384410][ T1223] __lock_acquire+0x1295/0x1ff0 [ 53.389772][ T1223] lock_acquire+0x1db/0x4f0 [ 53.394878][ T1223] down_read+0x45/0x2e0 [ 53.399582][ T1223] ntfs_readpage+0x123e/0x2210 [ 53.404891][ T1223] do_read_cache_page+0x752/0x1040 [ 53.410975][ T1223] ntfs_map_page+0x25/0x390 [ 53.416148][ T1223] ntfs_sync_mft_mirror+0x253/0x19e0 [ 53.422050][ T1223] write_mft_record_nolock+0x1164/0x16c0 [ 53.428304][ T1223] __ntfs_write_inode+0x7b4/0xdd0 [ 53.433882][ T1223] __writeback_single_inode+0x644/0xe30 [ 53.439940][ T1223] writeback_sb_inodes+0xbf0/0x1a50 [ 53.445683][ T1223] wb_writeback+0x451/0xc50 [ 53.450708][ T1223] wb_workfn+0x46c/0x1130 [ 53.455554][ T1223] process_one_work+0x8a1/0x10c0 [ 53.461090][ T1223] worker_thread+0xaca/0x1280 [ 53.466274][ T1223] kthread+0x3f6/0x4f0 [ 53.470861][ T1223] ret_from_fork+0x1f/0x30 [ 53.475792][ T1223] [ 53.475792][ T1223] other info that might help us debug this: [ 53.475792][ T1223] [ 53.486004][ T1223] Possible unsafe locking scenario: [ 53.486004][ T1223] [ 53.493613][ T1223] CPU0 CPU1 [ 53.498964][ T1223] ---- ---- [ 53.504312][ T1223] lock(&ni->mrec_lock); [ 53.508630][ T1223] lock(&rl->lock); [ 53.515034][ T1223] lock(&ni->mrec_lock); [ 53.521877][ T1223] lock(&rl->lock); [ 53.525761][ T1223] [ 53.525761][ T1223] *** DEADLOCK *** [ 53.525761][ T1223] [ 53.533893][ T1223] 3 locks held by kworker/u4:4/1223: [ 53.539164][ T1223] #0: ffff888142bd4938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 53.549775][ T1223] #1: ffffc90004ec7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 53.561602][ T1223] #2: ffff8880710e3310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x850 [ 53.571016][ T1223] [ 53.571016][ T1223] stack backtrace: [ 53.576896][ T1223] CPU: 1 PID: 1223 Comm: kworker/u4:4 Not tainted 5.15.125-syzkaller #0 [ 53.585243][ T1223] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 53.595289][ T1223] Workqueue: writeback wb_workfn (flush-7:0) [ 53.602049][ T1223] Call Trace: [ 53.605316][ T1223] [ 53.608236][ T1223] dump_stack_lvl+0x1e3/0x2cb [ 53.612994][ T1223] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 53.618716][ T1223] ? print_circular_bug+0x12b/0x1a0 [ 53.623904][ T1223] check_noncircular+0x2f8/0x3b0 [ 53.628839][ T1223] ? add_chain_block+0x850/0x850 [ 53.633860][ T1223] ? lockdep_lock+0x11f/0x2a0 [ 53.638533][ T1223] ? preempt_count_add+0x8f/0x180 [ 53.643550][ T1223] validate_chain+0x1646/0x58b0 [ 53.648399][ T1223] ? stack_trace_save+0x113/0x1c0 [ 53.653413][ T1223] ? reacquire_held_locks+0x660/0x660 [ 53.658791][ T1223] ? stack_trace_snprint+0xe0/0xe0 [ 53.663928][ T1223] ? lockdep_lock+0x11f/0x2a0 [ 53.668612][ T1223] ? lockdep_unlock+0x166/0x300 [ 53.673466][ T1223] ? lockdep_lock+0x2a0/0x2a0 [ 53.678136][ T1223] ? mark_lock+0x29b/0x340 [ 53.682546][ T1223] __lock_acquire+0x1295/0x1ff0 [ 53.688612][ T1223] lock_acquire+0x1db/0x4f0 [ 53.693121][ T1223] ? ntfs_readpage+0x123e/0x2210 [ 53.698053][ T1223] ? read_lock_is_recursive+0x10/0x10 [ 53.703422][ T1223] ? __might_sleep+0xc0/0xc0 [ 53.708179][ T1223] ? _raw_read_unlock_irqrestore+0x8b/0x130 [ 53.714069][ T1223] ? lockdep_hardirqs_on+0x94/0x130 [ 53.719258][ T1223] ? _raw_read_unlock_irqrestore+0xd9/0x130 [ 53.725166][ T1223] ? _raw_read_unlock+0x40/0x40 [ 53.730011][ T1223] down_read+0x45/0x2e0 [ 53.734243][ T1223] ? ntfs_readpage+0x123e/0x2210 [ 53.739172][ T1223] ntfs_readpage+0x123e/0x2210 [ 53.743936][ T1223] ? ntfs_writepage+0x12c0/0x12c0 [ 53.748967][ T1223] ? submit_bio_noacct+0xa83/0xb30 [ 53.754087][ T1223] ? ntfs_writepage+0x12c0/0x12c0 [ 53.759203][ T1223] do_read_cache_page+0x752/0x1040 [ 53.764313][ T1223] ntfs_map_page+0x25/0x390 [ 53.768900][ T1223] ? ntfs_sync_mft_mirror+0x241/0x19e0 [ 53.774353][ T1223] ntfs_sync_mft_mirror+0x253/0x19e0 [ 53.779629][ T1223] ? __bio_add_page+0x30f/0x510 [ 53.784496][ T1223] ? bio_add_page+0x2b3/0x450 [ 53.789257][ T1223] ? submit_bio+0x2dd/0x560 [ 53.793845][ T1223] ? __mark_mft_record_dirty+0x170/0x170 [ 53.799564][ T1223] write_mft_record_nolock+0x1164/0x16c0 [ 53.805199][ T1223] ? ntfs_unmap_page+0x1e0/0x1e0 [ 53.810124][ T1223] ? slab_free_freelist_hook+0xdd/0x160 [ 53.815827][ T1223] ? kmem_cache_free+0x146/0x1f0 [ 53.820793][ T1223] __ntfs_write_inode+0x7b4/0xdd0 [ 53.825819][ T1223] __writeback_single_inode+0x644/0xe30 [ 53.831359][ T1223] writeback_sb_inodes+0xbf0/0x1a50 [ 53.836557][ T1223] ? queue_io+0x560/0x560 [ 53.840899][ T1223] ? __writeback_inodes_wb+0x400/0x400 [ 53.847884][ T1223] ? queue_io+0x3d3/0x560 [ 53.852229][ T1223] wb_writeback+0x451/0xc50 [ 53.856771][ T1223] ? rcu_lock_release+0x20/0x20 [ 53.861712][ T1223] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 53.867790][ T1223] ? do_raw_spin_unlock+0x137/0x8b0 [ 53.873159][ T1223] wb_workfn+0x46c/0x1130 [ 53.877569][ T1223] ? mark_lock+0x98/0x340 [ 53.881896][ T1223] ? inode_wait_for_writeback+0x280/0x280 [ 53.887612][ T1223] ? read_lock_is_recursive+0x10/0x10 [ 53.892979][ T1223] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 53.899128][ T1223] ? print_irqtrace_events+0x210/0x210 [ 53.904597][ T1223] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 53.910515][ T1223] ? do_raw_spin_unlock+0x137/0x8b0 [ 53.915987][ T1223] process_one_work+0x8a1/0x10c0 [ 53.920958][ T1223] ? worker_detach_from_pool+0x260/0x260 [ 53.926587][ T1223] ? _raw_spin_lock_irqsave+0x120/0x120 [ 53.932139][ T1223] ? kthread_data+0x4e/0xc0 [ 53.936639][ T1223] ? wq_worker_running+0x97/0x170 [ 53.942271][ T1223] worker_thread+0xaca/0x1280 [ 53.946976][ T1223] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 53.952871][ T1223] kthread+0x3f6/0x4f0 [ 53.956931][ T1223] ? rcu_lock_release+0x20/0x20 [ 53.961979][ T1223] ? kthread_blkcg+0xd0/0xd0 [ 53.966598][ T1223] ret_from_fork+0x1f/0x30 [ 53.971016][ T1223]