Warning: Permanently added '10.128.0.124' (ED25519) to the list of known hosts. executing program [ 42.941822][ T4221] loop0: detected capacity change from 0 to 4096 [ 42.945421][ T4221] 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. [ 42.951935][ T4221] ntfs: (device loop0): read_ntfs_boot_sector(): Primary boot sector is invalid. [ 42.954665][ T4221] ntfs: (device loop0): read_ntfs_boot_sector(): Hot-fix: Recovering invalid primary boot sector from backup copy. [ 42.960478][ T4221] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 42.963006][ T4221] 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). [ 42.968416][ T4221] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 42.970873][ T4221] 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). [ 42.976289][ T4221] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 42.978582][ T4221] 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). [ 42.983849][ T4221] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 42.987392][ T4221] ntfs: volume version 3.1. [ 43.251839][ T4221] syz-executor295 (4221): drop_caches: 1 [ 43.304120][ T4221] syz-executor295 (4221): drop_caches: 1 [ 43.310703][ T424] [ 43.311381][ T424] ====================================================== [ 43.313269][ T424] WARNING: possible circular locking dependency detected [ 43.315137][ T424] 6.1.63-syzkaller #0 Not tainted [ 43.316503][ T424] ------------------------------------------------------ [ 43.318382][ T424] kworker/u4:4/424 is trying to acquire lock: [ 43.319984][ T424] ffff0000e2438940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0xf40/0x1d70 [ 43.322466][ T424] [ 43.322466][ T424] but task is already holding lock: [ 43.324500][ T424] ffff0000e243b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 43.326926][ T424] [ 43.326926][ T424] which lock already depends on the new lock. [ 43.326926][ T424] [ 43.329704][ T424] [ 43.329704][ T424] the existing dependency chain (in reverse order) is: [ 43.332158][ T424] [ 43.332158][ T424] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 43.334207][ T424] __mutex_lock_common+0x190/0x21a0 [ 43.335749][ T424] mutex_lock_nested+0x38/0x44 [ 43.337198][ T424] map_mft_record+0x64/0x7b4 [ 43.338566][ T424] ntfs_attr_extend_allocation+0x458/0x3470 [ 43.340307][ T424] ntfs_file_write_iter+0x2c8/0x17b0 [ 43.341918][ T424] vfs_write+0x610/0x914 [ 43.343235][ T424] ksys_write+0x15c/0x26c [ 43.344543][ T424] __arm64_sys_write+0x7c/0x90 [ 43.345949][ T424] invoke_syscall+0x98/0x2c0 [ 43.347384][ T424] el0_svc_common+0x138/0x258 [ 43.348780][ T424] do_el0_svc+0x64/0x218 [ 43.350036][ T424] el0_svc+0x58/0x168 [ 43.351212][ T424] el0t_64_sync_handler+0x84/0xf0 [ 43.352686][ T424] el0t_64_sync+0x18c/0x190 [ 43.354078][ T424] [ 43.354078][ T424] -> #0 (&rl->lock){++++}-{3:3}: [ 43.355971][ T424] __lock_acquire+0x3338/0x764c [ 43.357356][ T424] lock_acquire+0x26c/0x7cc [ 43.358768][ T424] down_read+0x64/0x308 [ 43.360051][ T424] ntfs_read_folio+0xf40/0x1d70 [ 43.361554][ T424] filemap_read_folio+0x14c/0x39c [ 43.363054][ T424] do_read_cache_folio+0x24c/0x544 [ 43.364604][ T424] read_cache_page+0x6c/0x180 [ 43.366017][ T424] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 43.367636][ T424] write_mft_record_nolock+0x100c/0x1630 [ 43.369327][ T424] write_mft_record+0x144/0x1bc [ 43.370757][ T424] __ntfs_write_inode+0x5cc/0xa78 [ 43.372307][ T424] ntfs_write_inode+0x68/0x90 [ 43.373708][ T424] __writeback_single_inode+0x614/0x1770 [ 43.375335][ T424] writeback_sb_inodes+0x978/0x1718 [ 43.376943][ T424] wb_writeback+0x414/0x1130 [ 43.378314][ T424] wb_workfn+0x3a8/0x1034 [ 43.379634][ T424] process_one_work+0x7ac/0x1404 [ 43.381099][ T424] worker_thread+0x8e4/0xfec [ 43.382490][ T424] kthread+0x250/0x2d8 [ 43.383766][ T424] ret_from_fork+0x10/0x20 [ 43.385097][ T424] [ 43.385097][ T424] other info that might help us debug this: [ 43.385097][ T424] [ 43.387916][ T424] Possible unsafe locking scenario: [ 43.387916][ T424] [ 43.390012][ T424] CPU0 CPU1 [ 43.391483][ T424] ---- ---- [ 43.392941][ T424] lock(&ni->mrec_lock); [ 43.394060][ T424] lock(&rl->lock); [ 43.395759][ T424] lock(&ni->mrec_lock); [ 43.397688][ T424] lock(&rl->lock); [ 43.398738][ T424] [ 43.398738][ T424] *** DEADLOCK *** [ 43.398738][ T424] [ 43.401009][ T424] 3 locks held by kworker/u4:4/424: [ 43.402433][ T424] #0: ffff0000c2e3d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 [ 43.405347][ T424] #1: ffff80001eb07c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 [ 43.408630][ T424] #2: ffff0000e243b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 43.411189][ T424] [ 43.411189][ T424] stack backtrace: [ 43.412781][ T424] CPU: 1 PID: 424 Comm: kworker/u4:4 Not tainted 6.1.63-syzkaller #0 [ 43.414949][ T424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 43.417694][ T424] Workqueue: writeback wb_workfn (flush-7:0) [ 43.419377][ T424] Call trace: [ 43.420212][ T424] dump_backtrace+0x1c8/0x1f4 [ 43.421449][ T424] show_stack+0x2c/0x3c [ 43.422565][ T424] dump_stack_lvl+0x108/0x170 [ 43.423813][ T424] dump_stack+0x1c/0x58 [ 43.424968][ T424] print_circular_bug+0x150/0x1b8 [ 43.426331][ T424] check_noncircular+0x2cc/0x378 [ 43.427674][ T424] __lock_acquire+0x3338/0x764c [ 43.429048][ T424] lock_acquire+0x26c/0x7cc [ 43.430228][ T424] down_read+0x64/0x308 [ 43.431380][ T424] ntfs_read_folio+0xf40/0x1d70 [ 43.432722][ T424] filemap_read_folio+0x14c/0x39c [ 43.434096][ T424] do_read_cache_folio+0x24c/0x544 [ 43.435430][ T424] read_cache_page+0x6c/0x180 [ 43.436642][ T424] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 43.438076][ T424] write_mft_record_nolock+0x100c/0x1630 [ 43.439577][ T424] write_mft_record+0x144/0x1bc [ 43.440923][ T424] __ntfs_write_inode+0x5cc/0xa78 [ 43.442322][ T424] ntfs_write_inode+0x68/0x90 [ 43.443555][ T424] __writeback_single_inode+0x614/0x1770 [ 43.445090][ T424] writeback_sb_inodes+0x978/0x1718 [ 43.446531][ T424] wb_writeback+0x414/0x1130 [ 43.447716][ T424] wb_workfn+0x3a8/0x1034 [ 43.448879][ T424] process_one_work+0x7ac/0x1404 [ 43.450200][ T424] worker_thread+0x8e4/0xfec [ 43.451426][ T424] kthread+0x250/0x2d8 [ 43.452496][ T424] ret_from_fork+0x10/0x20