Warning: Permanently added '10.128.1.72' (ED25519) to the list of known hosts. executing program [ 60.317258][ T3543] loop0: detected capacity change from 0 to 4096 [ 60.351203][ T3543] [ 60.353563][ T3543] ====================================================== [ 60.360586][ T3543] WARNING: possible circular locking dependency detected [ 60.367601][ T3543] 6.1.54-syzkaller #0 Not tainted [ 60.372606][ T3543] ------------------------------------------------------ [ 60.379602][ T3543] syz-executor293/3543 is trying to acquire lock: [ 60.386079][ T3543] ffff88807e4a9058 (&mm->mmap_lock){++++}-{3:3}, at: __might_fault+0x8f/0x110 [ 60.395033][ T3543] [ 60.395033][ T3543] but task is already holding lock: [ 60.402386][ T3543] ffff88807490f050 (&ni->file.run_lock#3){++++}-{3:3}, at: ni_fiemap+0x5da/0x1230 [ 60.411625][ T3543] [ 60.411625][ T3543] which lock already depends on the new lock. [ 60.411625][ T3543] [ 60.422018][ T3543] [ 60.422018][ T3543] the existing dependency chain (in reverse order) is: [ 60.431028][ T3543] [ 60.431028][ T3543] -> #1 (&ni->file.run_lock#3){++++}-{3:3}: [ 60.439093][ T3543] lock_acquire+0x1f8/0x5a0 [ 60.444118][ T3543] down_read+0x43/0x2e0 [ 60.448794][ T3543] attr_data_get_block+0x276/0x2520 [ 60.454532][ T3543] ntfs_file_mmap+0x452/0x7e0 [ 60.459726][ T3543] mmap_region+0xf96/0x1fa0 [ 60.464764][ T3543] do_mmap+0x8c5/0xf60 [ 60.469339][ T3543] vm_mmap_pgoff+0x1ca/0x2d0 [ 60.474455][ T3543] ksys_mmap_pgoff+0x4f5/0x6d0 [ 60.479741][ T3543] do_syscall_64+0x3d/0xb0 [ 60.484663][ T3543] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.491066][ T3543] [ 60.491066][ T3543] -> #0 (&mm->mmap_lock){++++}-{3:3}: [ 60.498606][ T3543] validate_chain+0x1667/0x58e0 [ 60.504000][ T3543] __lock_acquire+0x125b/0x1f80 [ 60.509461][ T3543] lock_acquire+0x1f8/0x5a0 [ 60.514468][ T3543] __might_fault+0xb2/0x110 [ 60.519474][ T3543] _copy_to_user+0x26/0x130 [ 60.524507][ T3543] fiemap_fill_next_extent+0x231/0x410 [ 60.530473][ T3543] ni_fiemap+0xa5a/0x1230 [ 60.535325][ T3543] ntfs_fiemap+0x12e/0x170 [ 60.540272][ T3543] do_vfs_ioctl+0x18e9/0x2a90 [ 60.545457][ T3543] __se_sys_ioctl+0x81/0x160 [ 60.550563][ T3543] do_syscall_64+0x3d/0xb0 [ 60.555507][ T3543] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.561916][ T3543] [ 60.561916][ T3543] other info that might help us debug this: [ 60.561916][ T3543] [ 60.572152][ T3543] Possible unsafe locking scenario: [ 60.572152][ T3543] [ 60.579582][ T3543] CPU0 CPU1 [ 60.584926][ T3543] ---- ---- [ 60.590274][ T3543] lock(&ni->file.run_lock#3); [ 60.595111][ T3543] lock(&mm->mmap_lock); [ 60.601944][ T3543] lock(&ni->file.run_lock#3); [ 60.609314][ T3543] lock(&mm->mmap_lock); [ 60.613632][ T3543] [ 60.613632][ T3543] *** DEADLOCK *** [ 60.613632][ T3543] [ 60.621759][ T3543] 2 locks held by syz-executor293/3543: [ 60.627285][ T3543] #0: ffff88807490efa0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_fiemap+0xfb/0x170 [ 60.636424][ T3543] #1: ffff88807490f050 (&ni->file.run_lock#3){++++}-{3:3}, at: ni_fiemap+0x5da/0x1230 [ 60.646078][ T3543] [ 60.646078][ T3543] stack backtrace: [ 60.651956][ T3543] CPU: 1 PID: 3543 Comm: syz-executor293 Not tainted 6.1.54-syzkaller #0 [ 60.660384][ T3543] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 60.670426][ T3543] Call Trace: [ 60.673690][ T3543] [ 60.676603][ T3543] dump_stack_lvl+0x1e3/0x2cb [ 60.681268][ T3543] ? nf_tcp_handle_invalid+0x642/0x642 [ 60.686724][ T3543] ? print_circular_bug+0x12b/0x1a0 [ 60.691920][ T3543] check_noncircular+0x2fa/0x3b0 [ 60.697197][ T3543] ? add_chain_block+0x850/0x850 [ 60.702131][ T3543] ? lockdep_lock+0x11f/0x2a0 [ 60.706814][ T3543] ? _find_first_zero_bit+0xd0/0x100 [ 60.712094][ T3543] validate_chain+0x1667/0x58e0 [ 60.716930][ T3543] ? folio_mark_accessed+0x35d/0x18f0 [ 60.722295][ T3543] ? reacquire_held_locks+0x660/0x660 [ 60.727657][ T3543] ? validate_chain+0x115/0x58e0 [ 60.732604][ T3543] ? __might_sleep+0xb0/0xb0 [ 60.737193][ T3543] ? validate_chain+0x115/0x58e0 [ 60.742123][ T3543] ? mark_lock+0x9a/0x340 [ 60.746436][ T3543] ? __lock_acquire+0x125b/0x1f80 [ 60.751444][ T3543] ? __getblk_gfp+0x50/0xa20 [ 60.756053][ T3543] ? mark_lock+0x9a/0x340 [ 60.760384][ T3543] __lock_acquire+0x125b/0x1f80 [ 60.765220][ T3543] lock_acquire+0x1f8/0x5a0 [ 60.769714][ T3543] ? __might_fault+0x8f/0x110 [ 60.774393][ T3543] ? read_lock_is_recursive+0x10/0x10 [ 60.779745][ T3543] ? __might_sleep+0xb0/0xb0 [ 60.784320][ T3543] __might_fault+0xb2/0x110 [ 60.788806][ T3543] ? __might_fault+0x8f/0x110 [ 60.793483][ T3543] _copy_to_user+0x26/0x130 [ 60.797967][ T3543] fiemap_fill_next_extent+0x231/0x410 [ 60.803420][ T3543] ? read_lock_is_recursive+0x10/0x10 [ 60.808810][ T3543] ? vfs_ioctl+0xc0/0xc0 [ 60.813037][ T3543] ? run_lookup_entry+0x3f6/0x560 [ 60.818045][ T3543] ni_fiemap+0xa5a/0x1230 [ 60.822374][ T3543] ? ni_parse_reparse+0x680/0x680 [ 60.827397][ T3543] ? fiemap_prep+0x1b0/0x240 [ 60.831970][ T3543] ntfs_fiemap+0x12e/0x170 [ 60.836372][ T3543] ? ntfs_file_open+0x200/0x200 [ 60.841211][ T3543] ? __might_fault+0xb2/0x110 [ 60.845875][ T3543] ? ntfs_file_open+0x200/0x200 [ 60.850715][ T3543] do_vfs_ioctl+0x18e9/0x2a90 [ 60.855407][ T3543] ? __x64_compat_sys_ioctl+0x80/0x80 [ 60.860764][ T3543] ? __lock_acquire+0x1f80/0x1f80 [ 60.865863][ T3543] ? lockdep_hardirqs_on+0x94/0x130 [ 60.871049][ T3543] ? __kmem_cache_free+0x25c/0x3c0 [ 60.876230][ T3543] ? tomoyo_path_number_perm+0x5f4/0x7b0 [ 60.881929][ T3543] ? tomoyo_path_number_perm+0x657/0x7b0 [ 60.887590][ T3543] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 60.893058][ T3543] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 60.899135][ T3543] ? print_irqtrace_events+0x210/0x210 [ 60.904612][ T3543] ? bpf_lsm_file_ioctl+0x5/0x10 [ 60.909534][ T3543] ? security_file_ioctl+0x7d/0xa0 [ 60.914719][ T3543] __se_sys_ioctl+0x81/0x160 [ 60.919292][ T3543] do_syscall_64+0x3d/0xb0 [ 60.923692][ T3543] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.929564][ T3543] RIP: 0033:0x7f1148964c79 [ 60.933975][ T3543] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 60.953754][ T3543] RSP: 002b:00007ffe30b58e88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 60.962154][ T3543] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1148964c79 [