Warning: Permanently added '10.128.0.158' (ED25519) to the list of known hosts. executing program [ 37.132161][ T5993] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5993 'syz-executor110' [ 37.158493][ T5993] loop0: detected capacity change from 0 to 4096 [ 37.161551][ T5993] 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. [ 37.167447][ T5993] ntfs: (device loop0): read_ntfs_boot_sector(): Primary boot sector is invalid. [ 37.169951][ T5993] ntfs: (device loop0): read_ntfs_boot_sector(): Hot-fix: Recovering invalid primary boot sector from backup copy. [ 37.176199][ T5993] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 37.178419][ T5993] 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). [ 37.183160][ T5993] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 37.185522][ T5993] 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). [ 37.190639][ T5993] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 37.192843][ T5993] 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). [ 37.197934][ T5993] ntfs: (device loop0): ntfs_mapping_pairs_decompress(): Corrupt attribute. [ 37.201404][ T5993] ntfs: volume version 3.1. [ 37.452316][ T5993] syz-executor110 (5993): drop_caches: 1 [ 37.503594][ T5993] syz-executor110 (5993): drop_caches: 1 [ 37.509309][ T530] [ 37.509963][ T530] ====================================================== [ 37.511754][ T530] WARNING: possible circular locking dependency detected [ 37.513447][ T530] 6.5.0-rc7-syzkaller-gfe4469582053 #0 Not tainted [ 37.515169][ T530] ------------------------------------------------------ [ 37.516994][ T530] kworker/u4:5/530 is trying to acquire lock: [ 37.518542][ T530] ffff0000dfea0100 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0xf70/0x200c [ 37.520829][ T530] [ 37.520829][ T530] but task is already holding lock: [ 37.522748][ T530] ffff0000dfea2ad0 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 37.525034][ T530] [ 37.525034][ T530] which lock already depends on the new lock. [ 37.525034][ T530] [ 37.527785][ T530] [ 37.527785][ T530] the existing dependency chain (in reverse order) is: [ 37.530050][ T530] [ 37.530050][ T530] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 37.532045][ T530] __mutex_lock_common+0x190/0x21a0 [ 37.533508][ T530] mutex_lock_nested+0x2c/0x38 [ 37.534866][ T530] map_mft_record+0x64/0x7b4 [ 37.536243][ T530] ntfs_attr_extend_allocation+0x458/0x3470 [ 37.537900][ T530] ntfs_file_write_iter+0x298/0x1738 [ 37.539358][ T530] vfs_write+0x628/0x93c [ 37.540595][ T530] ksys_write+0x15c/0x26c [ 37.541866][ T530] __arm64_sys_write+0x7c/0x90 [ 37.543276][ T530] invoke_syscall+0x98/0x2b8 [ 37.544604][ T530] el0_svc_common+0x130/0x23c [ 37.545985][ T530] do_el0_svc+0x48/0x58 [ 37.547202][ T530] el0_svc+0x58/0x16c [ 37.548387][ T530] el0t_64_sync_handler+0x84/0xfc [ 37.549862][ T530] el0t_64_sync+0x190/0x194 [ 37.551107][ T530] [ 37.551107][ T530] -> #0 (&rl->lock){++++}-{3:3}: [ 37.552881][ T530] __lock_acquire+0x3370/0x75e8 [ 37.554264][ T530] lock_acquire+0x23c/0x71c [ 37.555545][ T530] down_read+0x58/0x2fc [ 37.556774][ T530] ntfs_read_folio+0xf70/0x200c [ 37.558204][ T530] filemap_read_folio+0x14c/0x39c [ 37.559566][ T530] do_read_cache_folio+0x114/0x548 [ 37.561042][ T530] read_cache_page+0x6c/0x170 [ 37.562411][ T530] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 37.563922][ T530] write_mft_record_nolock+0x100c/0x1630 [ 37.565443][ T530] write_mft_record+0x144/0x1bc [ 37.566828][ T530] __ntfs_write_inode+0x5cc/0xa78 [ 37.568229][ T530] ntfs_write_inode+0x68/0x90 [ 37.569535][ T530] __writeback_single_inode+0x5a8/0x146c [ 37.571149][ T530] writeback_sb_inodes+0x720/0xff0 [ 37.572538][ T530] wb_writeback+0x3f4/0xfc0 [ 37.573812][ T530] wb_workfn+0x37c/0xf9c [ 37.574988][ T530] process_one_work+0x800/0x1480 [ 37.576347][ T530] worker_thread+0x8e0/0xfe8 [ 37.577663][ T530] kthread+0x288/0x310 [ 37.578953][ T530] ret_from_fork+0x10/0x20 [ 37.580236][ T530] [ 37.580236][ T530] other info that might help us debug this: [ 37.580236][ T530] [ 37.582844][ T530] Possible unsafe locking scenario: [ 37.582844][ T530] [ 37.584772][ T530] CPU0 CPU1 [ 37.586203][ T530] ---- ---- [ 37.587524][ T530] lock(&ni->mrec_lock); [ 37.588625][ T530] lock(&rl->lock); [ 37.590350][ T530] lock(&ni->mrec_lock); [ 37.592189][ T530] rlock(&rl->lock); [ 37.593229][ T530] [ 37.593229][ T530] *** DEADLOCK *** [ 37.593229][ T530] [ 37.595335][ T530] 3 locks held by kworker/u4:5/530: [ 37.596608][ T530] #0: ffff0000c1e1e938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x6b4/0x1480 [ 37.599337][ T530] #1: ffff8000971f7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6f0/0x1480 [ 37.602367][ T530] #2: ffff0000dfea2ad0 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 37.604777][ T530] [ 37.604777][ T530] stack backtrace: [ 37.606243][ T530] CPU: 0 PID: 530 Comm: kworker/u4:5 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0 [ 37.608579][ T530] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 37.611177][ T530] Workqueue: writeback wb_workfn (flush-7:0) [ 37.612760][ T530] Call trace: [ 37.613574][ T530] dump_backtrace+0x1b8/0x1e4 [ 37.614803][ T530] show_stack+0x2c/0x44 [ 37.615930][ T530] dump_stack_lvl+0xd0/0x124 [ 37.617128][ T530] dump_stack+0x1c/0x28 [ 37.618152][ T530] print_circular_bug+0x150/0x1b8 [ 37.619466][ T530] check_noncircular+0x310/0x404 [ 37.620682][ T530] __lock_acquire+0x3370/0x75e8 [ 37.621927][ T530] lock_acquire+0x23c/0x71c [ 37.623080][ T530] down_read+0x58/0x2fc [ 37.624103][ T530] ntfs_read_folio+0xf70/0x200c [ 37.625378][ T530] filemap_read_folio+0x14c/0x39c [ 37.626677][ T530] do_read_cache_folio+0x114/0x548 [ 37.628008][ T530] read_cache_page+0x6c/0x170 [ 37.629241][ T530] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 37.630565][ T530] write_mft_record_nolock+0x100c/0x1630 [ 37.632020][ T530] write_mft_record+0x144/0x1bc [ 37.633203][ T530] __ntfs_write_inode+0x5cc/0xa78 [ 37.634513][ T530] ntfs_write_inode+0x68/0x90 [ 37.635731][ T530] __writeback_single_inode+0x5a8/0x146c [ 37.637108][ T530] writeback_sb_inodes+0x720/0xff0 [ 37.638425][ T530] wb_writeback+0x3f4/0xfc0 [ 37.639612][ T530] wb_workfn+0x37c/0xf9c [ 37.640696][ T530] process_one_work+0x800/0x1480 [ 37.641946][ T530] worker_thread+0x8e0/0xfe8 [ 37.643106][ T530] kthread+0x288/0x310 [ 37.644087][ T530] ret_from_fork+0x10/0x20