Warning: Permanently added '10.128.1.144' (ED25519) to the list of known hosts. executing program syzkaller login: [ 37.758033][ T4220] loop0: detected capacity change from 0 to 4096 [ 37.770435][ T4220] ntfs: volume version 3.1. [ 37.864776][ T4220] syz-executor279 (4220): drop_caches: 1 [ 37.916928][ T4220] syz-executor279 (4220): drop_caches: 1 [ 37.923155][ T9] [ 37.923862][ T9] ====================================================== [ 37.925582][ T9] WARNING: possible circular locking dependency detected [ 37.927359][ T9] 6.1.62-syzkaller #0 Not tainted [ 37.928670][ T9] ------------------------------------------------------ [ 37.930461][ T9] kworker/u4:0/9 is trying to acquire lock: [ 37.931962][ T9] ffff0000e2830940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0xf40/0x1d70 [ 37.934255][ T9] [ 37.934255][ T9] but task is already holding lock: [ 37.936172][ T9] ffff0000e2833310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 37.938464][ T9] [ 37.938464][ T9] which lock already depends on the new lock. [ 37.938464][ T9] [ 37.941046][ T9] [ 37.941046][ T9] the existing dependency chain (in reverse order) is: [ 37.943321][ T9] [ 37.943321][ T9] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 37.945402][ T9] __mutex_lock_common+0x190/0x21a0 [ 37.946905][ T9] mutex_lock_nested+0x38/0x44 [ 37.948362][ T9] map_mft_record+0x64/0x7b4 [ 37.949650][ T9] ntfs_truncate+0x1d4/0x2118 [ 37.951031][ T9] ntfs_setattr+0x260/0x320 [ 37.952355][ T9] notify_change+0xb58/0xe1c [ 37.953656][ T9] do_truncate+0x1c0/0x28c [ 37.954891][ T9] path_openat+0x1fa0/0x2548 [ 37.956168][ T9] do_filp_open+0x1bc/0x3cc [ 37.957501][ T9] do_sys_openat2+0x128/0x3d8 [ 37.958841][ T9] __arm64_sys_openat+0x1f0/0x240 [ 37.960340][ T9] invoke_syscall+0x98/0x2c0 [ 37.961711][ T9] el0_svc_common+0x138/0x258 [ 37.963102][ T9] do_el0_svc+0x64/0x218 [ 37.964377][ T9] el0_svc+0x58/0x168 [ 37.965551][ T9] el0t_64_sync_handler+0x84/0xf0 [ 37.966959][ T9] el0t_64_sync+0x18c/0x190 [ 37.968192][ T9] [ 37.968192][ T9] -> #0 (&rl->lock){++++}-{3:3}: [ 37.970077][ T9] __lock_acquire+0x3338/0x764c [ 37.971480][ T9] lock_acquire+0x26c/0x7cc [ 37.972758][ T9] down_read+0x64/0x308 [ 37.974025][ T9] ntfs_read_folio+0xf40/0x1d70 [ 37.975318][ T9] filemap_read_folio+0x14c/0x39c [ 37.976834][ T9] do_read_cache_folio+0x24c/0x544 [ 37.978386][ T9] read_cache_page+0x6c/0x180 [ 37.979840][ T9] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 37.981459][ T9] write_mft_record_nolock+0x100c/0x1630 [ 37.983062][ T9] write_mft_record+0x144/0x1bc [ 37.984518][ T9] __ntfs_write_inode+0x5cc/0xa78 [ 37.986037][ T9] ntfs_write_inode+0x68/0x90 [ 37.987480][ T9] __writeback_single_inode+0x614/0x1770 [ 37.989169][ T9] writeback_sb_inodes+0x978/0x1718 [ 37.990612][ T9] wb_writeback+0x414/0x1130 [ 37.991986][ T9] wb_workfn+0x3a8/0x1034 [ 37.993372][ T9] process_one_work+0x7ac/0x1404 [ 37.994733][ T9] worker_thread+0x8e4/0xfec [ 37.996063][ T9] kthread+0x250/0x2d8 [ 37.997326][ T9] ret_from_fork+0x10/0x20 [ 37.998573][ T9] [ 37.998573][ T9] other info that might help us debug this: [ 37.998573][ T9] [ 38.001225][ T9] Possible unsafe locking scenario: [ 38.001225][ T9] [ 38.003005][ T9] CPU0 CPU1 [ 38.004403][ T9] ---- ---- [ 38.005847][ T9] lock(&ni->mrec_lock); [ 38.006931][ T9] lock(&rl->lock); [ 38.008681][ T9] lock(&ni->mrec_lock); [ 38.010462][ T9] lock(&rl->lock); [ 38.011520][ T9] [ 38.011520][ T9] *** DEADLOCK *** [ 38.011520][ T9] [ 38.013675][ T9] 3 locks held by kworker/u4:0/9: [ 38.014980][ T9] #0: ffff0000c2e3d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 [ 38.017796][ T9] #1: ffff800019de7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 [ 38.020903][ T9] #2: ffff0000e2833310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x64/0x7b4 [ 38.023410][ T9] [ 38.023410][ T9] stack backtrace: [ 38.024998][ T9] CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 6.1.62-syzkaller #0 [ 38.027077][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 38.029641][ T9] Workqueue: writeback wb_workfn (flush-7:0) [ 38.031162][ T9] Call trace: [ 38.032009][ T9] dump_backtrace+0x1c8/0x1f4 [ 38.033287][ T9] show_stack+0x2c/0x3c [ 38.034334][ T9] dump_stack_lvl+0x108/0x170 [ 38.035599][ T9] dump_stack+0x1c/0x58 [ 38.036664][ T9] print_circular_bug+0x150/0x1b8 [ 38.038050][ T9] check_noncircular+0x2cc/0x378 [ 38.039346][ T9] __lock_acquire+0x3338/0x764c [ 38.040645][ T9] lock_acquire+0x26c/0x7cc [ 38.041724][ T9] down_read+0x64/0x308 [ 38.042732][ T9] ntfs_read_folio+0xf40/0x1d70 [ 38.043924][ T9] filemap_read_folio+0x14c/0x39c [ 38.045265][ T9] do_read_cache_folio+0x24c/0x544 [ 38.046589][ T9] read_cache_page+0x6c/0x180 [ 38.047755][ T9] ntfs_sync_mft_mirror+0x1cc/0x1890 [ 38.049023][ T9] write_mft_record_nolock+0x100c/0x1630 [ 38.050382][ T9] write_mft_record+0x144/0x1bc [ 38.051571][ T9] __ntfs_write_inode+0x5cc/0xa78 [ 38.052919][ T9] ntfs_write_inode+0x68/0x90 [ 38.054165][ T9] __writeback_single_inode+0x614/0x1770 [ 38.055631][ T9] writeback_sb_inodes+0x978/0x1718 [ 38.057035][ T9] wb_writeback+0x414/0x1130 [ 38.058325][ T9] wb_workfn+0x3a8/0x1034 [ 38.059455][ T9] process_one_work+0x7ac/0x1404 [ 38.060696][ T9] worker_thread+0x8e4/0xfec [ 38.061973][ T9] kthread+0x250/0x2d8 [ 38.063122][ T9] ret_from_fork+0x10/0x20