Warning: Permanently added '10.128.0.95' (ED25519) to the list of known hosts. executing program [ 35.110930][ T6083] syz-executor603[6083]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 35.138584][ T6083] loop0: detected capacity change from 0 to 4096 [ 35.142112][ T6083] 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. [ 35.154974][ T6083] ntfs: volume version 3.1. [ 35.694100][ T6083] syz-executor603 (6083): drop_caches: 3 [ 35.754750][ T6083] syz-executor603 (6083): drop_caches: 3 [ 35.764196][ T217] [ 35.764855][ T217] ====================================================== [ 35.766702][ T217] WARNING: possible circular locking dependency detected [ 35.768546][ T217] 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Not tainted [ 35.770317][ T217] ------------------------------------------------------ [ 35.772209][ T217] kworker/u4:5/217 is trying to acquire lock: [ 35.773791][ T217] ffff0000df808940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0xf70/0x1fd8 [ 35.776218][ T217] [ 35.776218][ T217] but task is already holding lock: [ 35.778138][ T217] ffff0000df80b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 35.780573][ T217] [ 35.780573][ T217] which lock already depends on the new lock. [ 35.780573][ T217] [ 35.783416][ T217] [ 35.783416][ T217] the existing dependency chain (in reverse order) is: [ 35.785788][ T217] [ 35.785788][ T217] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 35.787866][ T217] __mutex_lock_common+0x190/0x21a0 [ 35.789418][ T217] mutex_lock_nested+0x2c/0x38 [ 35.790893][ T217] map_mft_record+0x64/0x7b4 [ 35.792257][ T217] ntfs_attr_extend_allocation+0x458/0x3470 [ 35.794079][ T217] ntfs_file_write_iter+0x298/0x1738 [ 35.795694][ T217] do_iter_write+0x65c/0xaa8 [ 35.797083][ T217] do_pwritev+0x1ec/0x334 [ 35.798352][ T217] __arm64_sys_pwritev+0xa0/0xb8 [ 35.799840][ T217] invoke_syscall+0x98/0x2b8 [ 35.801191][ T217] el0_svc_common+0x130/0x23c [ 35.802594][ T217] do_el0_svc+0x48/0x58 [ 35.803919][ T217] el0_svc+0x54/0x158 [ 35.805115][ T217] el0t_64_sync_handler+0x84/0xfc [ 35.806596][ T217] el0t_64_sync+0x190/0x194 [ 35.807926][ T217] [ 35.807926][ T217] -> #0 (&rl->lock){++++}-{3:3}: [ 35.809822][ T217] __lock_acquire+0x3370/0x75e8 [ 35.811180][ T217] lock_acquire+0x23c/0x71c [ 35.812550][ T217] down_read+0x58/0x2fc [ 35.813779][ T217] ntfs_read_folio+0xf70/0x1fd8 [ 35.815189][ T217] filemap_read_folio+0x14c/0x39c [ 35.816692][ T217] do_read_cache_folio+0x114/0x548 [ 35.818178][ T217] do_read_cache_page+0x4c/0x260 [ 35.819615][ T217] read_cache_page+0x68/0x84 [ 35.820994][ T217] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 35.822528][ T217] write_mft_record_nolock+0x100c/0x1630 [ 35.824215][ T217] write_mft_record+0x144/0x1bc [ 35.825654][ T217] __ntfs_write_inode+0x5cc/0xa78 [ 35.827157][ T217] ntfs_write_inode+0x68/0x90 [ 35.828541][ T217] __writeback_single_inode+0x5a8/0x146c [ 35.830265][ T217] writeback_sb_inodes+0x718/0x1010 [ 35.831867][ T217] wb_writeback+0x3f4/0xfc0 [ 35.833178][ T217] wb_workfn+0x37c/0xf9c [ 35.834451][ T217] process_one_work+0x694/0x1204 [ 35.835921][ T217] worker_thread+0x938/0xef4 [ 35.837259][ T217] kthread+0x288/0x310 [ 35.838473][ T217] ret_from_fork+0x10/0x20 [ 35.839782][ T217] [ 35.839782][ T217] other info that might help us debug this: [ 35.839782][ T217] [ 35.842464][ T217] Possible unsafe locking scenario: [ 35.842464][ T217] [ 35.844484][ T217] CPU0 CPU1 [ 35.845903][ T217] ---- ---- [ 35.847363][ T217] lock(&ni->mrec_lock); [ 35.848506][ T217] lock(&rl->lock); [ 35.850176][ T217] lock(&ni->mrec_lock); [ 35.852037][ T217] rlock(&rl->lock); [ 35.853086][ T217] [ 35.853086][ T217] *** DEADLOCK *** [ 35.853086][ T217] [ 35.855279][ T217] 3 locks held by kworker/u4:5/217: [ 35.856660][ T217] #0: ffff0000c1c0e138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 [ 35.859441][ T217] #1: ffff800094ff7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 [ 35.862607][ T217] #2: ffff0000df80b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 35.865156][ T217] [ 35.865156][ T217] stack backtrace: [ 35.866697][ T217] CPU: 0 PID: 217 Comm: kworker/u4:5 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 [ 35.869232][ T217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 35.871897][ T217] Workqueue: writeback wb_workfn (flush-7:0) [ 35.873479][ T217] Call trace: [ 35.874354][ T217] dump_backtrace+0x1b8/0x1e4 [ 35.875572][ T217] show_stack+0x2c/0x44 [ 35.876653][ T217] dump_stack_lvl+0xd0/0x124 [ 35.877897][ T217] dump_stack+0x1c/0x28 [ 35.878970][ T217] print_circular_bug+0x150/0x1b8 [ 35.880239][ T217] check_noncircular+0x310/0x404 [ 35.881527][ T217] __lock_acquire+0x3370/0x75e8 [ 35.882805][ T217] lock_acquire+0x23c/0x71c [ 35.884053][ T217] down_read+0x58/0x2fc [ 35.885141][ T217] ntfs_read_folio+0xf70/0x1fd8 [ 35.886441][ T217] filemap_read_folio+0x14c/0x39c [ 35.887814][ T217] do_read_cache_folio+0x114/0x548 [ 35.889212][ T217] do_read_cache_page+0x4c/0x260 [ 35.890517][ T217] read_cache_page+0x68/0x84 [ 35.891808][ T217] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 35.893246][ T217] write_mft_record_nolock+0x100c/0x1630 [ 35.894777][ T217] write_mft_record+0x144/0x1bc [ 35.896051][ T217] __ntfs_write_inode+0x5cc/0xa78 [ 35.897447][ T217] ntfs_write_inode+0x68/0x90 [ 35.898711][ T217] __writeback_single_inode+0x5a8/0x146c [ 35.900279][ T217] writeback_sb_inodes+0x718/0x1010 [ 35.901731][ T217] wb_writeback+0x3f4/0xfc0 [ 35.902953][ T217] wb_workfn+0x37c/0xf9c [ 35.904051][ T217] process_one_work+0x694/0x1204 [ 35.905387][ T217] worker_thread+0x938/0xef4 [ 35.906590][ T217] kthread+0x288/0x310 [ 35.907653][ T217] ret_from_fork+0x10/0x20