Warning: Permanently added '10.128.1.117' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.848799] IPVS: ftp: loaded support on port[0] = 21 [ 33.929766] ntfs: volume version 3.1. [ 34.078527] syz-executor236 (8107): drop_caches: 1 [ 34.116455] syz-executor236 (8107): drop_caches: 1 [ 34.130454] [ 34.132088] ====================================================== [ 34.138386] WARNING: possible circular locking dependency detected [ 34.144678] 4.19.211-syzkaller #0 Not tainted [ 34.149143] ------------------------------------------------------ [ 34.155468] kworker/u4:0/7 is trying to acquire lock: [ 34.160631] 0000000068467e3b (&rl->lock){++++}, at: ntfs_readpage+0x1909/0x21b0 [ 34.168067] [ 34.168067] but task is already holding lock: [ 34.174010] 0000000098c1b898 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 [ 34.181697] [ 34.181697] which lock already depends on the new lock. [ 34.181697] [ 34.189986] [ 34.189986] the existing dependency chain (in reverse order) is: [ 34.197588] [ 34.197588] -> #1 (&ni->mrec_lock){+.+.}: [ 34.203205] map_mft_record+0x3c/0xc70 [ 34.207588] ntfs_truncate+0x202/0x2820 [ 34.212056] ntfs_setattr+0x1b6/0x620 [ 34.216352] notify_change+0x70b/0xfc0 [ 34.220740] do_truncate+0x134/0x1f0 [ 34.224948] vfs_truncate+0x54b/0x6d0 [ 34.229243] do_sys_truncate+0x145/0x170 [ 34.233800] do_syscall_64+0xf9/0x620 [ 34.238099] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.243779] [ 34.243779] -> #0 (&rl->lock){++++}: [ 34.248952] down_read+0x36/0x80 [ 34.252815] ntfs_readpage+0x1909/0x21b0 [ 34.257371] do_read_cache_page+0x533/0x1170 [ 34.262276] ntfs_sync_mft_mirror+0x24f/0x1d00 [ 34.267354] write_mft_record_nolock+0x13d2/0x16c0 [ 34.272777] __ntfs_write_inode+0x609/0xe10 [ 34.277597] __writeback_single_inode+0x733/0x11d0 [ 34.283024] writeback_sb_inodes+0x537/0xef0 [ 34.287926] wb_writeback+0x28d/0xcc0 [ 34.292222] wb_workfn+0x29b/0x1250 [ 34.296347] process_one_work+0x864/0x1570 [ 34.301077] worker_thread+0x64c/0x1130 [ 34.305545] kthread+0x33f/0x460 [ 34.309408] ret_from_fork+0x24/0x30 [ 34.313612] [ 34.313612] other info that might help us debug this: [ 34.313612] [ 34.321733] Possible unsafe locking scenario: [ 34.321733] [ 34.327768] CPU0 CPU1 [ 34.332413] ---- ---- [ 34.337157] lock(&ni->mrec_lock); [ 34.340865] lock(&rl->lock); [ 34.346550] lock(&ni->mrec_lock); [ 34.352673] lock(&rl->lock); [ 34.355839] [ 34.355839] *** DEADLOCK *** [ 34.355839] [ 34.361876] 3 locks held by kworker/u4:0/7: [ 34.366168] #0: 000000000605b0e8 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 [ 34.375687] #1: 00000000ae34676b ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 [ 34.386328] #2: 0000000098c1b898 (&ni->mrec_lock){+.+.}, at: map_mft_record+0x3c/0xc70 [ 34.394451] [ 34.394451] stack backtrace: [ 34.398926] CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0 [ 34.406258] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 [ 34.415646] Workqueue: writeback wb_workfn (flush-7:0) [ 34.420897] Call Trace: [ 34.423466] dump_stack+0x1fc/0x2ef [ 34.427072] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 34.432846] __lock_acquire+0x30c9/0x3ff0 [ 34.436974] ? mark_held_locks+0xf0/0xf0 [ 34.441012] ? alloc_buffer_head+0x20/0x130 [ 34.445308] ? ntfs_readpage+0xe0b/0x21b0 [ 34.449431] lock_acquire+0x170/0x3c0 [ 34.453217] ? ntfs_readpage+0x1909/0x21b0 [ 34.457429] down_read+0x36/0x80 [ 34.460774] ? ntfs_readpage+0x1909/0x21b0 [ 34.465156] ntfs_readpage+0x1909/0x21b0 [ 34.469194] ? ntfs_end_buffer_async_read+0x1210/0x1210 [ 34.474536] ? add_to_page_cache_lru+0x259/0x680 [ 34.479268] ? add_to_page_cache_locked+0x40/0x40 [ 34.484086] do_read_cache_page+0x533/0x1170 [ 34.488473] ? ntfs_end_buffer_async_read+0x1210/0x1210 [ 34.493814] ntfs_sync_mft_mirror+0x24f/0x1d00 [ 34.498374] ? submit_bio+0xb1/0x430 [ 34.502063] ? generic_make_request+0xdf0/0xdf0 [ 34.506726] ? ntfs_mft_bitmap_extend_allocation_nolock+0x2600/0x2600 [ 34.513282] ? guard_bio_eod+0x2a0/0x650 [ 34.517404] ? submit_bh_wbc+0x5a7/0x760 [ 34.521442] write_mft_record_nolock+0x13d2/0x16c0 [ 34.526349] ? ntfs_sync_mft_mirror+0x1d00/0x1d00 [ 34.531165] ? debug_check_no_obj_freed+0x201/0x490 [ 34.536159] ? check_preemption_disabled+0x41/0x280 [ 34.541153] __ntfs_write_inode+0x609/0xe10 [ 34.545453] __writeback_single_inode+0x733/0x11d0 [ 34.550359] writeback_sb_inodes+0x537/0xef0 [ 34.554745] ? wbc_detach_inode+0x840/0x840 [ 34.559052] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 34.564042] ? queue_io+0x448/0x590 [ 34.567646