Warning: Permanently added '10.128.0.219' (ED25519) to the list of known hosts. executing program syzkaller login: [ 42.344937][ T3960] loop0: detected capacity change from 0 to 4096 [ 42.429210][ T3960] 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.445319][ T3960] ntfs: volume version 3.1. [ 42.565158][ T3960] ODEBUG: Out of memory. ODEBUG disabled [ 42.980613][ T3960] syz-executor981 (3960): drop_caches: 3 [ 43.047273][ T3960] syz-executor981 (3960): drop_caches: 3 [ 43.054392][ T9] [ 43.054904][ T9] ====================================================== [ 43.056457][ T9] WARNING: possible circular locking dependency detected [ 43.058104][ T9] 5.15.156-syzkaller #0 Not tainted [ 43.059220][ T9] ------------------------------------------------------ [ 43.060665][ T9] kworker/u4:0/9 is trying to acquire lock: [ 43.062006][ T9] ffff0000dece0940 (&rl->lock){++++}-{3:3}, at: ntfs_readpage+0xf3c/0x1e04 [ 43.063954][ T9] [ 43.063954][ T9] but task is already holding lock: [ 43.065692][ T9] ffff0000dece3310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x6c/0x738 [ 43.067816][ T9] [ 43.067816][ T9] which lock already depends on the new lock. [ 43.067816][ T9] [ 43.070183][ T9] [ 43.070183][ T9] the existing dependency chain (in reverse order) is: [ 43.072285][ T9] [ 43.072285][ T9] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 43.074179][ T9] __mutex_lock_common+0x194/0x2154 [ 43.075451][ T9] mutex_lock_nested+0xa4/0xf8 [ 43.076619][ T9] map_mft_record+0x6c/0x738 [ 43.077795][ T9] ntfs_attr_extend_allocation+0x458/0x34b8 [ 43.079153][ T9] ntfs_file_write_iter+0x380/0x170c [ 43.080366][ T9] do_iter_readv_writev+0x420/0x5f8 [ 43.081722][ T9] do_iter_write+0x1b8/0x664 [ 43.082861][ T9] do_pwritev+0x1ec/0x334 [ 43.083947][ T9] __arm64_sys_pwritev+0xa0/0xb8 [ 43.085222][ T9] invoke_syscall+0x98/0x2b8 [ 43.086413][ T9] el0_svc_common+0x138/0x258 [ 43.087587][ T9] do_el0_svc+0x58/0x14c [ 43.088734][ T9] el0_svc+0x7c/0x1f0 [ 43.089748][ T9] el0t_64_sync_handler+0x84/0xe4 [ 43.090973][ T9] el0t_64_sync+0x1a0/0x1a4 [ 43.091988][ T9] [ 43.091988][ T9] -> #0 (&rl->lock){++++}-{3:3}: [ 43.093727][ T9] __lock_acquire+0x32d4/0x7638 [ 43.094912][ T9] lock_acquire+0x240/0x77c [ 43.096077][ T9] down_read+0xc0/0x398 [ 43.097132][ T9] ntfs_readpage+0xf3c/0x1e04 [ 43.098299][ T9] do_read_cache_page+0x60c/0x950 [ 43.099582][ T9] read_cache_page+0x68/0x84 [ 43.100762][ T9] ntfs_sync_mft_mirror+0x1e4/0x18f0 [ 43.102043][ T9] write_mft_record_nolock+0x104c/0x16ec [ 43.103487][ T9] __ntfs_write_inode+0x720/0xdc8 [ 43.104720][ T9] ntfs_write_inode+0x68/0x90 [ 43.105832][ T9] __writeback_single_inode+0x584/0x13a4 [ 43.107248][ T9] writeback_sb_inodes+0x94c/0x1654 [ 43.108460][ T9] wb_writeback+0x3fc/0xfc8 [ 43.109624][ T9] wb_workfn+0x3a4/0x1070 [ 43.110727][ T9] process_one_work+0x790/0x11b8 [ 43.111898][ T9] worker_thread+0x910/0x1034 [ 43.113086][ T9] kthread+0x37c/0x45c [ 43.114105][ T9] ret_from_fork+0x10/0x20 [ 43.115228][ T9] [ 43.115228][ T9] other info that might help us debug this: [ 43.115228][ T9] [ 43.117501][ T9] Possible unsafe locking scenario: [ 43.117501][ T9] [ 43.119207][ T9] CPU0 CPU1 [ 43.120421][ T9] ---- ---- [ 43.121655][ T9] lock(&ni->mrec_lock); [ 43.122594][ T9] lock(&rl->lock); [ 43.124029][ T9] lock(&ni->mrec_lock); [ 43.125489][ T9] lock(&rl->lock); [ 43.126330][ T9] [ 43.126330][ T9] *** DEADLOCK *** [ 43.126330][ T9] [ 43.128115][ T9] 3 locks held by kworker/u4:0/9: [ 43.129261][ T9] #0: ffff0000c21c8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 [ 43.131688][ T9] #1: ffff800018957c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 [ 43.134383][ T9] #2: ffff0000dece3310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x6c/0x738 [ 43.136583][ T9] [ 43.136583][ T9] stack backtrace: [ 43.137859][ T9] CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 5.15.156-syzkaller #0 [ 43.139655][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 43.141879][ T9] Workqueue: writeback wb_workfn (flush-7:0) [ 43.143171][ T9] Call trace: [ 43.143859][ T9] dump_backtrace+0x0/0x530 [ 43.144857][ T9] show_stack+0x2c/0x3c [ 43.145726][ T9] dump_stack_lvl+0x108/0x170 [ 43.146731][ T9] dump_stack+0x1c/0x58 [ 43.147707][ T9] print_circular_bug+0x150/0x1b8 [ 43.148886][ T9] check_noncircular+0x2cc/0x378 [ 43.150036][ T9] __lock_acquire+0x32d4/0x7638 [ 43.151134][ T9] lock_acquire+0x240/0x77c [ 43.152125][ T9] down_read+0xc0/0x398 [ 43.153014][ T9] ntfs_readpage+0xf3c/0x1e04 [ 43.154071][ T9] do_read_cache_page+0x60c/0x950 [ 43.155162][ T9] read_cache_page+0x68/0x84 [ 43.156144][ T9] ntfs_sync_mft_mirror+0x1e4/0x18f0 [ 43.157260][ T9] write_mft_record_nolock+0x104c/0x16ec [ 43.158546][ T9] __ntfs_write_inode+0x720/0xdc8 [ 43.159612][ T9] ntfs_write_inode+0x68/0x90 [ 43.160647][ T9] __writeback_single_inode+0x584/0x13a4 [ 43.161950][ T9] writeback_sb_inodes+0x94c/0x1654 [ 43.163257][ T9] wb_writeback+0x3fc/0xfc8 [ 43.164372][ T9] wb_workfn+0x3a4/0x1070 [ 43.165336][ T9] process_one_work+0x790/0x11b8 [ 43.166390][ T9] worker_thread+0x910/0x1034 [ 43.167349][ T9] kthread+0x37c/0x45c [ 43.168265][ T9] ret_from_fork+0x10/0x20