[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.104' (ECDSA) to the list of known hosts. syzkaller login: [ 27.861068] IPVS: ftp: loaded support on port[0] = 21 executing program [ 27.967031] ntfs: volume version 3.1. [ 28.033780] syz-executor967 (7969): drop_caches: 1 [ 28.066311] syz-executor967 (7969): drop_caches: 1 [ 28.075490] [ 28.077112] ====================================================== [ 28.083410] WARNING: possible circular locking dependency detected [ 28.089704] 4.14.295-syzkaller #0 Not tainted [ 28.094173] ------------------------------------------------------ [ 28.100472] kworker/u4:2/28 is trying to acquire lock: [ 28.105725] (&rl->lock){++++}, at: [] ntfs_readpage+0x1396/0x1ad0 [ 28.113594] [ 28.113594] but task is already holding lock: [ 28.119539] (&ni->mrec_lock){+.+.}, at: [] map_mft_record+0x2b/0xbe0 [ 28.127668] [ 28.127668] which lock already depends on the new lock. [ 28.127668] [ 28.135963] [ 28.135963] the existing dependency chain (in reverse order) is: [ 28.143564] [ 28.143564] -> #1 (&ni->mrec_lock){+.+.}: [ 28.149175] __mutex_lock+0xc4/0x1310 [ 28.153474] map_mft_record+0x2b/0xbe0 [ 28.157856] ntfs_truncate+0x1a6/0x22d0 [ 28.162326] ntfs_setattr+0x148/0x580 [ 28.166624] notify_change+0x56b/0xd10 [ 28.171005] do_truncate+0xff/0x1a0 [ 28.175127] vfs_truncate+0x456/0x680 [ 28.179426] do_sys_truncate.part.0+0xdc/0xf0 [ 28.184420] SyS_truncate+0x23/0x40 [ 28.188544] do_syscall_64+0x1d5/0x640 [ 28.192927] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.198609] [ 28.198609] -> #0 (&rl->lock){++++}: [ 28.203779] lock_acquire+0x170/0x3f0 [ 28.208077] down_read+0x36/0x80 [ 28.211939] ntfs_readpage+0x1396/0x1ad0 [ 28.216499] do_read_cache_page+0x38e/0xc10 [ 28.221319] ntfs_sync_mft_mirror+0x1f4/0x1560 [ 28.226401] write_mft_record_nolock+0xece/0x1240 [ 28.231737] __ntfs_write_inode+0x58d/0xcc0 [ 28.236556] __writeback_single_inode+0x6a4/0x1010 [ 28.241983] writeback_sb_inodes+0x48b/0xd30 [ 28.246885] wb_writeback+0x243/0xb80 [ 28.251181] wb_workfn+0x2bd/0xf50 [ 28.255227] process_one_work+0x793/0x14a0 [ 28.259961] worker_thread+0x5cc/0xff0 [ 28.264347] kthread+0x30d/0x420 [ 28.268221] ret_from_fork+0x24/0x30 [ 28.272433] [ 28.272433] other info that might help us debug this: [ 28.272433] [ 28.280554] Possible unsafe locking scenario: [ 28.280554] [ 28.286590] CPU0 CPU1 [ 28.291256] ---- ---- [ 28.295905] lock(&ni->mrec_lock); [ 28.299512] lock(&rl->lock); [ 28.305197] lock(&ni->mrec_lock); [ 28.311316] lock(&rl->lock); [ 28.314481] [ 28.314481] *** DEADLOCK *** [ 28.314481] [ 28.320513] 3 locks held by kworker/u4:2/28: [ 28.324897] #0: ("writeback"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 [ 28.333546] #1: ((&(&wb->dwork)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 [ 28.343062] #2: (&ni->mrec_lock){+.+.}, at: [] map_mft_record+0x2b/0xbe0 [ 28.351619] [ 28.351619] stack backtrace: [ 28.356090] CPU: 1 PID: 28 Comm: kworker/u4:2 Not tainted 4.14.295-syzkaller #0 [ 28.363509] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 [ 28.372847] Workqueue: writeback wb_workfn (flush-7:0) [ 28.378095] Call Trace: [ 28.380661] dump_stack+0x1b2/0x281 [ 28.384268] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.390059] __lock_acquire+0x2e0e/0x3f20 [ 28.394190] ? trace_hardirqs_on+0x10/0x10 [ 28.398402] ? radix_tree_node_alloc.constprop.0+0x1b0/0x2f0 [ 28.404183] ? alloc_buffer_head+0x20/0x110 [ 28.408482] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.413910] ? ntfs_readpage+0xba8/0x1ad0 [ 28.418031] lock_acquire+0x170/0x3f0 [ 28.421806] ? ntfs_readpage+0x1396/0x1ad0 [ 28.426017] down_read+0x36/0x80 [ 28.429363] ? ntfs_readpage+0x1396/0x1ad0 [ 28.433576] ntfs_readpage+0x1396/0x1ad0 [ 28.437612] ? __lru_cache_add+0x178/0x250 [ 28.441822] ? ntfs_end_buffer_async_read+0x10a0/0x10a0 [ 28.447163] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.451894] ? add_to_page_cache_locked+0x40/0x40 [ 28.456726] ? alloc_pages_current+0x15d/0x260 [ 28.461292] do_read_cache_page+0x38e/0xc10 [ 28.465597] ? ntfs_end_buffer_async_read+0x10a0/0x10a0 [ 28.470937] ntfs_sync_mft_mirror+0x1f4/0x1560 [ 28.475503] ? ntfs_sync_mft_mirror+0x2b/0x1560 [ 28.480153] ? generic_make_request+0x850/0x850 [ 28.484803] ? guard_bio_eod+0x1ba/0x520 [ 28.488843] write_mft_record_nolock+0xece/0x1240 [ 28.493687] __ntfs_write_inode+0x58d/0xcc0 [ 28.498011] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.503476] __writeback_single_inode+0x6a4/0x1010 [ 28.508388] writeback_sb_inodes+0x48b/0xd30 [ 28.512775] ? wbc_detach_inode+0x780/0x780 [ 28.517086] ? queue_io+0x400/0x5a0 [ 28.520691] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.526130] wb_writeback+0x243/0xb80 [ 28.529920] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 28.535520] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.540955] wb_workfn+0x2bd/0xf50 [ 28.544475] ? process_one_work+0x6c4/0x14a0 [ 28.548861] ? inode_wait_for_writeback+0x30/0x30 [ 28.553680] ? lock_acquire+0x170/0x3f0 [ 28.557632] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.563057] process_one_work+0x793/0x14a0 [ 28.567270]