Warning: Permanently added '10.128.0.48' (ECDSA) to the list of known hosts. executing program [ 37.817779][ T4216] loop0: detected capacity change from 0 to 4096 [ 37.847452][ T4216] [ 37.848083][ T4216] ====================================================== [ 37.849780][ T4216] WARNING: possible circular locking dependency detected [ 37.851521][ T4216] 6.1.29-syzkaller #0 Not tainted [ 37.852728][ T4216] ------------------------------------------------------ [ 37.854390][ T4216] syz-executor315/4216 is trying to acquire lock: [ 37.855896][ T4216] ffff0000d44cc948 (&mm->mmap_lock){++++}-{3:3}, at: __might_fault+0x9c/0x124 [ 37.858063][ T4216] [ 37.858063][ T4216] but task is already holding lock: [ 37.859793][ T4216] ffff0000df187700 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_fiemap+0xec/0x168 [ 37.861918][ T4216] [ 37.861918][ T4216] which lock already depends on the new lock. [ 37.861918][ T4216] [ 37.864431][ T4216] [ 37.864431][ T4216] the existing dependency chain (in reverse order) is: [ 37.866558][ T4216] [ 37.866558][ T4216] -> #1 (&ni->ni_lock/4){+.+.}-{3:3}: [ 37.868449][ T4216] __mutex_lock_common+0x190/0x21a0 [ 37.869805][ T4216] mutex_lock_nested+0x38/0x44 [ 37.871121][ T4216] attr_data_get_block+0x330/0x1bdc [ 37.872531][ T4216] ntfs_file_mmap+0x3a4/0x688 [ 37.873780][ T4216] mmap_region+0xdd0/0x1a98 [ 37.874964][ T4216] do_mmap+0xa00/0x1108 [ 37.876071][ T4216] vm_mmap_pgoff+0x1a4/0x2b4 [ 37.877347][ T4216] ksys_mmap_pgoff+0x3c8/0x5b0 [ 37.878612][ T4216] __arm64_sys_mmap+0xf8/0x110 [ 37.879858][ T4216] invoke_syscall+0x98/0x2c0 [ 37.881061][ T4216] el0_svc_common+0x138/0x258 [ 37.882352][ T4216] do_el0_svc+0x64/0x218 [ 37.883474][ T4216] el0_svc+0x58/0x168 [ 37.884584][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 37.885918][ T4216] el0t_64_sync+0x18c/0x190 [ 37.887099][ T4216] [ 37.887099][ T4216] -> #0 (&mm->mmap_lock){++++}-{3:3}: [ 37.888907][ T4216] __lock_acquire+0x3338/0x764c [ 37.890220][ T4216] lock_acquire+0x26c/0x7cc [ 37.891319][ T4216] __might_fault+0xc4/0x124 [ 37.892609][ T4216] fiemap_fill_next_extent+0x1b4/0x424 [ 37.894018][ T4216] ni_fiemap+0xc40/0xe10 [ 37.895152][ T4216] ntfs_fiemap+0x110/0x168 [ 37.896299][ T4216] do_vfs_ioctl+0x194c/0x26f8 [ 37.897566][ T4216] __arm64_sys_ioctl+0xe4/0x1c8 [ 37.898904][ T4216] invoke_syscall+0x98/0x2c0 [ 37.900138][ T4216] el0_svc_common+0x138/0x258 [ 37.901219][ T4216] do_el0_svc+0x64/0x218 [ 37.902339][ T4216] el0_svc+0x58/0x168 [ 37.903410][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 37.904739][ T4216] el0t_64_sync+0x18c/0x190 [ 37.905906][ T4216] [ 37.905906][ T4216] other info that might help us debug this: [ 37.905906][ T4216] [ 37.908290][ T4216] Possible unsafe locking scenario: [ 37.908290][ T4216] [ 37.910118][ T4216] CPU0 CPU1 [ 37.911397][ T4216] ---- ---- [ 37.912679][ T4216] lock(&ni->ni_lock/4); [ 37.913738][ T4216] lock(&mm->mmap_lock); [ 37.915405][ T4216] lock(&ni->ni_lock/4); [ 37.917070][ T4216] lock(&mm->mmap_lock); [ 37.918119][ T4216] [ 37.918119][ T4216] *** DEADLOCK *** [ 37.918119][ T4216] [ 37.920064][ T4216] 1 lock held by syz-executor315/4216: [ 37.921469][ T4216] #0: ffff0000df187700 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_fiemap+0xec/0x168 [ 37.923731][ T4216] [ 37.923731][ T4216] stack backtrace: [ 37.925106][ T4216] CPU: 0 PID: 4216 Comm: syz-executor315 Not tainted 6.1.29-syzkaller #0 [ 37.927086][ T4216] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 37.929527][ T4216] Call trace: [ 37.930299][ T4216] dump_backtrace+0x1c8/0x1f4 [ 37.931387][ T4216] show_stack+0x2c/0x3c [ 37.932408][ T4216] dump_stack_lvl+0x108/0x170 [ 37.933559][ T4216] dump_stack+0x1c/0x5c [ 37.934575][ T4216] print_circular_bug+0x150/0x1b8 [ 37.935805][ T4216] check_noncircular+0x2cc/0x378 [ 37.937051][ T4216] __lock_acquire+0x3338/0x764c [ 37.938239][ T4216] lock_acquire+0x26c/0x7cc [ 37.939364][ T4216] __might_fault+0xc4/0x124 [ 37.940446][ T4216] fiemap_fill_next_extent+0x1b4/0x424 [ 37.941727][ T4216] ni_fiemap+0xc40/0xe10 [ 37.942728][ T4216] ntfs_fiemap+0x110/0x168 [ 37.943756][ T4216] do_vfs_ioctl+0x194c/0x26f8 [ 37.944885][ T4216] __arm64_sys_ioctl+0xe4/0x1c8 [ 37.946054][ T4216] invoke_syscall+0x98/0x2c0 [ 37.947151][ T4216] el0_svc_common+0x138/0x258 [ 37.948248][ T4216] do_el0_svc+0x64/0x218 [ 37.949284][ T4216] el0_svc+0x58/0x168 [ 37.950281][ T4216] el0t_64_sync_handler+0x84/0xf0 [ 37.951479][ T4216] el0t_64_sync+0x18c/0x190