Warning: Permanently added '10.128.1.59' (ED25519) to the list of known hosts. executing program syzkaller login: [ 48.334584][ T3501] loop0: detected capacity change from 0 to 4096 [ 48.407619][ T3501] 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. [ 48.429607][ T3501] ntfs: (device loop0): read_ntfs_boot_sector(): Primary boot sector is invalid. [ 48.440964][ T3501] ntfs: (device loop0): read_ntfs_boot_sector(): Hot-fix: Recovering invalid primary boot sector from backup copy. [ 48.456443][ T3501] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 48.465260][ T3501] ntfs: (device loop0): ntfs_read_block(): Failed to read from inode 0xa, attribute type 0x80, vcn 0x0, offset 0x0 because its location on disk could not be determined even after retrying (error code -5). [ 48.486281][ T3501] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 48.494968][ T3501] ntfs: (device loop0): ntfs_read_block(): Failed to read from inode 0xa, attribute type 0x80, vcn 0x0, offset 0x200 because its location on disk could not be determined even after retrying (error code -5). [ 48.515790][ T3501] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 48.524759][ T3501] ntfs: (device loop0): ntfs_read_block(): Failed to read from inode 0xa, attribute type 0x80, vcn 0x1, offset 0x0 because its location on disk could not be determined even after retrying (error code -5). [ 48.544815][ T3501] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 48.555095][ T3501] ntfs: volume version 3.1. [ 48.679294][ T3501] syz-executor301 (3501): drop_caches: 1 [ 48.741711][ T3501] syz-executor301 (3501): drop_caches: 1 [ 48.766314][ T1498] [ 48.768696][ T1498] ====================================================== [ 48.775778][ T1498] WARNING: possible circular locking dependency detected [ 48.782900][ T1498] 5.15.153-syzkaller #0 Not tainted [ 48.788124][ T1498] ------------------------------------------------------ [ 48.795237][ T1498] kworker/u4:4/1498 is trying to acquire lock: [ 48.801454][ T1498] ffff888071938940 (&rl->lock){++++}-{3:3}, at: ntfs_readpage+0x123e/0x2210 [ 48.810147][ T1498] [ 48.810147][ T1498] but task is already holding lock: [ 48.817495][ T1498] ffff88807524a290 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x850 [ 48.826421][ T1498] [ 48.826421][ T1498] which lock already depends on the new lock. [ 48.826421][ T1498] [ 48.837316][ T1498] [ 48.837316][ T1498] the existing dependency chain (in reverse order) is: [ 48.846398][ T1498] [ 48.846398][ T1498] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 48.853959][ T1498] lock_acquire+0x1db/0x4f0 [ 48.859522][ T1498] __mutex_lock_common+0x1da/0x25a0 [ 48.865407][ T1498] mutex_lock_nested+0x17/0x20 [ 48.871296][ T1498] map_mft_record+0x4a/0x850 [ 48.876579][ T1498] ntfs_truncate+0x263/0x2860 [ 48.881767][ T1498] ntfs_setattr+0x2c7/0x3a0 [ 48.886999][ T1498] notify_change+0xc6d/0xf50 [ 48.892104][ T1498] do_truncate+0x21c/0x300 [ 48.897288][ T1498] do_sys_ftruncate+0x2eb/0x390 [ 48.902647][ T1498] do_syscall_64+0x3d/0xb0 [ 48.907586][ T1498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 48.914011][ T1498] [ 48.914011][ T1498] -> #0 (&rl->lock){++++}-{3:3}: [ 48.921119][ T1498] validate_chain+0x1649/0x5930 [ 48.926477][ T1498] __lock_acquire+0x1295/0x1ff0 [ 48.931825][ T1498] lock_acquire+0x1db/0x4f0 [ 48.936824][ T1498] down_read+0x45/0x2e0 [ 48.941576][ T1498] ntfs_readpage+0x123e/0x2210 [ 48.946833][ T1498] do_read_cache_page+0x752/0x1040 [ 48.952441][ T1498] ntfs_map_page+0x25/0x390 [ 48.957441][ T1498] ntfs_sync_mft_mirror+0x253/0x19e0 [ 48.963421][ T1498] write_mft_record_nolock+0x1164/0x16c0 [ 48.969548][ T1498] __ntfs_write_inode+0x7b4/0xdd0 [ 48.975068][ T1498] __writeback_single_inode+0x644/0xe30 [ 48.981126][ T1498] writeback_sb_inodes+0xbce/0x1a40 [ 48.986823][ T1498] wb_writeback+0x451/0xc50 [ 48.991916][ T1498] wb_workfn+0x46c/0x1130 [ 48.996856][ T1498] process_one_work+0x8a1/0x10c0 [ 49.002302][ T1498] worker_thread+0xaca/0x1280 [ 49.007699][ T1498] kthread+0x3f6/0x4f0 [ 49.012441][ T1498] ret_from_fork+0x1f/0x30 [ 49.017558][ T1498] [ 49.017558][ T1498] other info that might help us debug this: [ 49.017558][ T1498] [ 49.027761][ T1498] Possible unsafe locking scenario: [ 49.027761][ T1498] [ 49.035184][ T1498] CPU0 CPU1 [ 49.040532][ T1498] ---- ---- [ 49.045902][ T1498] lock(&ni->mrec_lock); [ 49.050207][ T1498] lock(&rl->lock); [ 49.056592][ T1498] lock(&ni->mrec_lock); [ 49.063514][ T1498] lock(&rl->lock); [ 49.067381][ T1498] [ 49.067381][ T1498] *** DEADLOCK *** [ 49.067381][ T1498] [ 49.075498][ T1498] 3 locks held by kworker/u4:4/1498: [ 49.081070][ T1498] #0: ffff888141fcc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 49.091941][ T1498] #1: ffffc900067ffd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 49.103891][ T1498] #2: ffff88807524a290 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x850 [ 49.113793][ T1498] [ 49.113793][ T1498] stack backtrace: [ 49.119786][ T1498] CPU: 0 PID: 1498 Comm: kworker/u4:4 Not tainted 5.15.153-syzkaller #0 [ 49.128271][ T1498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 49.138338][ T1498] Workqueue: writeback wb_workfn (flush-7:0) [ 49.144417][ T1498] Call Trace: [ 49.147687][ T1498] [ 49.150605][ T1498] dump_stack_lvl+0x1e3/0x2cb [ 49.155491][ T1498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 49.161125][ T1498] ? print_circular_bug+0x12b/0x1a0 [ 49.166421][ T1498] check_noncircular+0x2f8/0x3b0 [ 49.171419][ T1498] ? add_chain_block+0x850/0x850 [ 49.176350][ T1498] ? lockdep_lock+0x11f/0x2a0 [ 49.181203][ T1498] ? preempt_count_add+0x8f/0x180 [ 49.186392][ T1498] validate_chain+0x1649/0x5930 [ 49.191325][ T1498] ? stack_trace_save+0x1c0/0x1c0 [ 49.196424][ T1498] ? stack_trace_save+0x113/0x1c0 [ 49.202320][ T1498] ? reacquire_held_locks+0x660/0x660 [ 49.207779][ T1498] ? stack_trace_snprint+0xe0/0xe0 [ 49.213256][ T1498] ? lockdep_lock+0x11f/0x2a0 [ 49.217932][ T1498] ? lockdep_unlock+0x166/0x300 [ 49.222784][ T1498] ? lockdep_lock+0x2a0/0x2a0 [ 49.227458][ T1498] ? mark_lock+0x29b/0x340 [ 49.231930][ T1498] __lock_acquire+0x1295/0x1ff0 [ 49.236778][ T1498] lock_acquire+0x1db/0x4f0 [ 49.241459][ T1498] ? ntfs_readpage+0x123e/0x2210 [ 49.246474][ T1498] ? read_lock_is_recursive+0x10/0x10 [ 49.252224][ T1498] ? __might_sleep+0xc0/0xc0 [ 49.256830][ T1498] ? _raw_read_unlock_irqrestore+0x8b/0x130 [ 49.262903][ T1498] ? lockdep_hardirqs_on+0x94/0x130 [ 49.268184][ T1498] ? _raw_read_unlock_irqrestore+0xd9/0x130 [ 49.274442][ T1498] ? _raw_read_unlock+0x40/0x40 [ 49.279643][ T1498] down_read+0x45/0x2e0 [ 49.283791][ T1498] ? ntfs_readpage+0x123e/0x2210 [ 49.288838][ T1498] ntfs_readpage+0x123e/0x2210 [ 49.293889][ T1498] ? ntfs_writepage+0x12c0/0x12c0 [ 49.299015][ T1498] ? submit_bio_noacct+0xa83/0xb30 [ 49.304275][ T1498] ? ntfs_writepage+0x12c0/0x12c0 [ 49.309412][ T1498] do_read_cache_page+0x752/0x1040 [ 49.314517][ T1498] ntfs_map_page+0x25/0x390 [ 49.319438][ T1498] ? ntfs_sync_mft_mirror+0x241/0x19e0 [ 49.324891][ T1498] ntfs_sync_mft_mirror+0x253/0x19e0 [ 49.331364][ T1498] ? __bio_add_page+0x30f/0x510 [ 49.336213][ T1498] ? bio_add_page+0x2b3/0x450 [ 49.340975][ T1498] ? submit_bio+0x2dd/0x560 [ 49.345731][ T1498] ? __mark_mft_record_dirty+0x170/0x170 [ 49.351592][ T1498] write_mft_record_nolock+0x1164/0x16c0 [ 49.357407][ T1498] ? ntfs_unmap_page+0x1e0/0x1e0 [ 49.362795][ T1498] ? slab_free_freelist_hook+0xdd/0x160 [ 49.368347][ T1498] ? kmem_cache_free+0x146/0x1f0 [ 49.373789][ T1498] __ntfs_write_inode+0x7b4/0xdd0 [ 49.378925][ T1498] __writeback_single_inode+0x644/0xe30 [ 49.384661][ T1498] writeback_sb_inodes+0xbce/0x1a40 [ 49.390199][ T1498] ? queue_io+0x560/0x560 [ 49.394510][ T1498] ? __writeback_inodes_wb+0x400/0x400 [ 49.400256][ T1498] ? queue_io+0x3d3/0x560 [ 49.404591][ T1498] wb_writeback+0x451/0xc50 [ 49.409261][ T1498] ? rcu_lock_release+0x20/0x20 [ 49.414186][ T1498] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 49.420242][ T1498] ? do_raw_spin_unlock+0x137/0x8b0 [ 49.425858][ T1498] wb_workfn+0x46c/0x1130 [ 49.430339][ T1498] ? mark_lock+0x98/0x340 [ 49.434908][ T1498] ? inode_wait_for_writeback+0x280/0x280 [ 49.440833][ T1498] ? read_lock_is_recursive+0x10/0x10 [ 49.446534][ T1498] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 49.452497][ T1498] ? print_irqtrace_events+0x210/0x210 [ 49.457949][ T1498] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 49.463871][ T1498] ? do_raw_spin_unlock+0x137/0x8b0 [ 49.469090][ T1498] process_one_work+0x8a1/0x10c0 [ 49.474191][ T1498] ? worker_detach_from_pool+0x260/0x260 [ 49.479806][ T1498] ? _raw_spin_lock_irqsave+0x120/0x120 [ 49.485431][ T1498] ? kthread_data+0x4e/0xc0 [ 49.490281][ T1498] ? wq_worker_running+0x97/0x170