Warning: Permanently added '10.128.0.48' (ED25519) to the list of known hosts. executing program [ 45.709450][ T4023] loop0: detected capacity change from 0 to 4096 [ 45.802998][ T4023] 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. [ 45.809275][ T4023] ntfs: (device loop0): read_ntfs_boot_sector(): Primary boot sector is invalid. [ 45.811988][ T4023] ntfs: (device loop0): read_ntfs_boot_sector(): Hot-fix: Recovering invalid primary boot sector from backup copy. [ 45.818993][ T4023] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 45.821310][ T4023] 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). [ 45.827249][ T4023] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 45.829515][ T4023] 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). [ 45.835247][ T4023] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 45.837533][ T4023] 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). [ 45.843170][ T4023] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 45.847253][ T4023] ntfs: volume version 3.1. [ 45.976724][ T4023] syz-executor206 (4023): drop_caches: 1 [ 46.064721][ T4023] syz-executor206 (4023): drop_caches: 1 [ 46.072001][ T136] [ 46.072593][ T136] ====================================================== [ 46.074477][ T136] WARNING: possible circular locking dependency detected [ 46.076269][ T136] 5.15.167-syzkaller #0 Not tainted [ 46.077691][ T136] ------------------------------------------------------ [ 46.079474][ T136] kworker/u4:1/136 is trying to acquire lock: [ 46.081026][ T136] ffff0000e1d08940 (&rl->lock){++++}-{3:3}, at: ntfs_readpage+0xf3c/0x1e04 [ 46.083287][ T136] [ 46.083287][ T136] but task is already holding lock: [ 46.085163][ T136] ffff0000e1d0b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x6c/0x738 [ 46.087412][ T136] [ 46.087412][ T136] which lock already depends on the new lock. [ 46.087412][ T136] [ 46.090043][ T136] [ 46.090043][ T136] the existing dependency chain (in reverse order) is: [ 46.092315][ T136] [ 46.092315][ T136] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 46.094219][ T136] __mutex_lock_common+0x194/0x2154 [ 46.095638][ T136] mutex_lock_nested+0xa4/0xf8 [ 46.096973][ T136] map_mft_record+0x6c/0x738 [ 46.098248][ T136] ntfs_truncate+0x1e8/0x224c [ 46.099579][ T136] ntfs_setattr+0x260/0x320 [ 46.100840][ T136] notify_change+0xa34/0xcf8 [ 46.102108][ T136] do_truncate+0x1c0/0x28c [ 46.103336][ T136] do_sys_ftruncate+0x288/0x31c [ 46.104695][ T136] __arm64_sys_ftruncate+0x60/0x74 [ 46.106102][ T136] invoke_syscall+0x98/0x2b8 [ 46.107401][ T136] el0_svc_common+0x138/0x258 [ 46.108748][ T136] do_el0_svc+0x58/0x14c [ 46.109979][ T136] el0_svc+0x7c/0x1f0 [ 46.111107][ T136] el0t_64_sync_handler+0x84/0xe4 [ 46.112479][ T136] el0t_64_sync+0x1a0/0x1a4 [ 46.113743][ T136] [ 46.113743][ T136] -> #0 (&rl->lock){++++}-{3:3}: [ 46.115569][ T136] __lock_acquire+0x32d4/0x7638 [ 46.116890][ T136] lock_acquire+0x240/0x77c [ 46.118060][ T136] down_read+0xc0/0x398 [ 46.119176][ T136] ntfs_readpage+0xf3c/0x1e04 [ 46.120488][ T136] do_read_cache_page+0x60c/0x950 [ 46.121902][ T136] read_cache_page+0x68/0x84 [ 46.123192][ T136] ntfs_sync_mft_mirror+0x1e4/0x18f0 [ 46.124634][ T136] write_mft_record_nolock+0x104c/0x16ec [ 46.126196][ T136] __ntfs_write_inode+0x720/0xdc8 [ 46.127575][ T136] ntfs_write_inode+0x68/0x90 [ 46.128870][ T136] __writeback_single_inode+0x584/0x13a4 [ 46.130409][ T136] writeback_sb_inodes+0x94c/0x1654 [ 46.131845][ T136] wb_writeback+0x3fc/0xfc8 [ 46.133137][ T136] wb_workfn+0x3a4/0x1070 [ 46.134346][ T136] process_one_work+0x790/0x11b8 [ 46.135741][ T136] worker_thread+0x910/0x1034 [ 46.137048][ T136] kthread+0x37c/0x45c [ 46.138199][ T136] ret_from_fork+0x10/0x20 [ 46.139435][ T136] [ 46.139435][ T136] other info that might help us debug this: [ 46.139435][ T136] [ 46.142167][ T136] Possible unsafe locking scenario: [ 46.142167][ T136] [ 46.144082][ T136] CPU0 CPU1 [ 46.145502][ T136] ---- ---- [ 46.146832][ T136] lock(&ni->mrec_lock); [ 46.147969][ T136] lock(&rl->lock); [ 46.149572][ T136] lock(&ni->mrec_lock); [ 46.151318][ T136] lock(&rl->lock); [ 46.152265][ T136] [ 46.152265][ T136] *** DEADLOCK *** [ 46.152265][ T136] [ 46.154347][ T136] 3 locks held by kworker/u4:1/136: [ 46.155608][ T136] #0: ffff0000c21d8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 [ 46.158365][ T136] #1: ffff80001bfe7c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 [ 46.161327][ T136] #2: ffff0000e1d0b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x6c/0x738 [ 46.163700][ T136] [ 46.163700][ T136] stack backtrace: [ 46.165179][ T136] CPU: 0 PID: 136 Comm: kworker/u4:1 Not tainted 5.15.167-syzkaller #0 [ 46.167337][ T136] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 46.169927][ T136] Workqueue: writeback wb_workfn (flush-7:0) [ 46.171512][ T136] Call trace: [ 46.172340][ T136] dump_backtrace+0x0/0x530 [ 46.173492][ T136] show_stack+0x2c/0x3c [ 46.174525][ T136] dump_stack_lvl+0x108/0x170 [ 46.175705][ T136] dump_stack+0x1c/0x58 [ 46.176749][ T136] print_circular_bug+0x150/0x1b8 [ 46.178022][ T136] check_noncircular+0x2cc/0x378 [ 46.179287][ T136] __lock_acquire+0x32d4/0x7638 [ 46.180511][ T136] lock_acquire+0x240/0x77c [ 46.181640][ T136] down_read+0xc0/0x398 [ 46.182692][ T136] ntfs_readpage+0xf3c/0x1e04 [ 46.183873][ T136] do_read_cache_page+0x60c/0x950 [ 46.185144][ T136] read_cache_page+0x68/0x84 [ 46.186293][ T136] ntfs_sync_mft_mirror+0x1e4/0x18f0 [ 46.187617][ T136] write_mft_record_nolock+0x104c/0x16ec [ 46.189062][ T136] __ntfs_write_inode+0x720/0xdc8 [ 46.190341][ T136] ntfs_write_inode+0x68/0x90 [ 46.191500][ T136] __writeback_single_inode+0x584/0x13a4 [ 46.192924][ T136] writeback_sb_inodes+0x94c/0x1654 [ 46.194230][ T136] wb_writeback+0x3fc/0xfc8 [ 46.195311][ T136] wb_workfn+0x3a4/0x1070 [ 46.196411][ T136] process_one_work+0x790/0x11b8 [ 46.197674][ T136] worker_thread+0x910/0x1034 [ 46.198834][ T136] kthread+0x37c/0x45c [ 46.199893][ T136] ret_from_fork+0x10/0x20