Warning: Permanently added '10.128.0.218' (ECDSA) to the list of known hosts. syzkaller login: [ 46.280617] IPVS: ftp: loaded support on port[0] = 21 executing program [ 46.388871] ntfs: volume version 3.1. [ 46.414284] [ 46.415925] ====================================================== [ 46.422225] WARNING: possible circular locking dependency detected [ 46.428523] 4.14.302-syzkaller #0 Not tainted [ 46.432987] ------------------------------------------------------ [ 46.439274] syz-executor207/7976 is trying to acquire lock: [ 46.444952] (&lcnbmp_mrec_lock_key){+.+.}, at: [] map_mft_record+0x2b/0xbe0 [ 46.453683] [ 46.453683] but task is already holding lock: [ 46.459625] (&vol->lcnbmp_lock){+.+.}, at: [] ntfs_put_super+0x311/0x14d0 [ 46.468181] [ 46.468181] which lock already depends on the new lock. [ 46.468181] [ 46.476466] [ 46.476466] the existing dependency chain (in reverse order) is: [ 46.484059] [ 46.484059] -> #1 (&vol->lcnbmp_lock){+.+.}: [ 46.489925] down_write+0x34/0x90 [ 46.493877] __ntfs_cluster_free+0xff/0xa80 [ 46.498693] ntfs_truncate+0x10b7/0x22d0 [ 46.503247] ntfs_setattr+0x148/0x580 [ 46.507543] notify_change+0x56b/0xd10 [ 46.511926] do_truncate+0xff/0x1a0 [ 46.516049] path_openat+0x1dcc/0x2970 [ 46.520431] do_file_open_root+0x224/0x490 [ 46.525163] file_open_root+0x1e7/0x2a0 [ 46.529633] do_handle_open+0x2a2/0x570 [ 46.534105] do_syscall_64+0x1d5/0x640 [ 46.538488] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 46.544170] [ 46.544170] -> #0 (&lcnbmp_mrec_lock_key){+.+.}: [ 46.550383] lock_acquire+0x170/0x3f0 [ 46.554677] __mutex_lock+0xc4/0x1310 [ 46.558974] map_mft_record+0x2b/0xbe0 [ 46.563354] __ntfs_write_inode+0x97/0xcc0 [ 46.568084] ntfs_put_super+0xf81/0x14d0 [ 46.572645] generic_shutdown_super+0x144/0x370 [ 46.577811] kill_block_super+0x95/0xe0 [ 46.582279] deactivate_locked_super+0x6c/0xd0 [ 46.587356] deactivate_super+0x7f/0xa0 [ 46.591826] cleanup_mnt+0x186/0x2c0 [ 46.596034] task_work_run+0x11f/0x190 [ 46.600415] do_exit+0xa44/0x2850 [ 46.604363] do_group_exit+0x100/0x2e0 [ 46.608746] SyS_exit_group+0x19/0x20 [ 46.613040] do_syscall_64+0x1d5/0x640 [ 46.617423] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 46.623105] [ 46.623105] other info that might help us debug this: [ 46.623105] [ 46.631222] Possible unsafe locking scenario: [ 46.631222] [ 46.637252] CPU0 CPU1 [ 46.641896] ---- ---- [ 46.646534] lock(&vol->lcnbmp_lock); [ 46.650397] lock(&lcnbmp_mrec_lock_key); [ 46.657123] lock(&vol->lcnbmp_lock); [ 46.663503] lock(&lcnbmp_mrec_lock_key); [ 46.667711] [ 46.667711] *** DEADLOCK *** [ 46.667711] [ 46.673743] 2 locks held by syz-executor207/7976: [ 46.678556] #0: (&type->s_umount_key#47){+.+.}, at: [] deactivate_super+0x77/0xa0 [ 46.687895] #1: (&vol->lcnbmp_lock){+.+.}, at: [] ntfs_put_super+0x311/0x14d0 [ 46.696969] [ 46.696969] stack backtrace: [ 46.701441] CPU: 1 PID: 7976 Comm: syz-executor207 Not tainted 4.14.302-syzkaller #0 [ 46.709292] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 46.718623] Call Trace: [ 46.721188] dump_stack+0x1b2/0x281 [ 46.724792] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 46.730567] __lock_acquire+0x2e0e/0x3f20 [ 46.734691] ? lock_downgrade+0x740/0x740 [ 46.738815] ? trace_hardirqs_on+0x10/0x10 [ 46.743026] ? entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 46.748366] ? is_bpf_text_address+0xb8/0x150 [ 46.752838] ? kernel_text_address+0xbd/0xf0 [ 46.757225] ? trace_hardirqs_on+0x10/0x10 [ 46.761434] ? __kernel_text_address+0x9/0x30 [ 46.765904] ? __save_stack_trace+0xa0/0x160 [ 46.770288] lock_acquire+0x170/0x3f0 [ 46.774063] ? map_mft_record+0x2b/0xbe0 [ 46.778098] ? map_mft_record+0x2b/0xbe0 [ 46.782136] __mutex_lock+0xc4/0x1310 [ 46.785909] ? map_mft_record+0x2b/0xbe0 [ 46.790120] ? map_mft_record+0x2b/0xbe0 [ 46.794155] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 46.799580] ? trace_hardirqs_on+0x10/0x10 [ 46.803789] ? lock_downgrade+0x740/0x740 [ 46.807914] ? __mutex_unlock_slowpath+0x75/0x770 [ 46.812735] map_mft_record+0x2b/0xbe0 [ 46.816602] ? wait_for_completion_io+0x10/0x10 [ 46.821247] __ntfs_write_inode+0x97/0xcc0 [ 46.825458] ntfs_put_super+0xf81/0x14d0 [ 46.829498] ? fsnotify_unmount_inodes+0x1b4/0x210 [ 46.834417] ? load_and_init_usnjrnl+0x1170/0x1170 [ 46.839349] generic_shutdown_super+0x144/0x370 [ 46.843995] kill_block_super+0x95/0xe0 [ 46.847944] deactivate_locked_super+0x6c/0xd0 [ 46.852521] deactivate_super+0x7f/0xa0 [ 46.856471] cleanup_mnt+0x186/0x2c0 [ 46.860161] task_work_run+0x11f/0x190 [ 46.864024] do_exit+0xa44/0x2850 [ 46.867452] ? __do_page_fault+0x571/0xad0 [ 46.871664] ? mm_update_next_owner+0x5b0/0x5b0 [ 46.876307] ? lock_downgrade+0x740/0x740 [ 46.880430] do_group_exit+0x100/0x2e0 [ 46.884292] SyS_exit_group+0x19/0x20 [ 46.888067] ? do_group_exit+0x2e0/0x2e0 [ 46.892105] do_syscall_64+0x1d5/0x640 [ 46.895969] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 46.901149] RIP: 0033:0x7fa10da72a49 [ 46.904838] RSP: 002b:00007ffd05b00f48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.912519] RAX: ffffffffffffffda RBX: 00007