./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor911312481 <...> Warning: Permanently added '10.128.10.16' (ECDSA) to the list of known hosts. execve("./syz-executor911312481", ["./syz-executor911312481"], 0x7ffecf85be00 /* 10 vars */) = 0 brk(NULL) = 0x555556ea4000 brk(0x555556ea4c40) = 0x555556ea4c40 arch_prctl(ARCH_SET_FS, 0x555556ea4300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor911312481", 4096) = 27 brk(0x555556ec5c40) = 0x555556ec5c40 brk(0x555556ec6000) = 0x555556ec6000 mprotect(0x7febc4ded000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7febbc800000 write(3, "\xeb\x52\x90\x4e\x54\x46\x53\x20\x20\x20\x20\x00\x02\x02\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x80\x00\xff\x0f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\xff\x03\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x8f\x24\x2d\x5f\x49\x6d\x50\x0b\x00\x00\x00\x00\x0e\x1f\xbe\x71\x7c\xac\x22\xc0\x74\x0b\x56\xb4\x0e\xbb\x07\x00"..., 2097152) = 2097152 munmap(0x7febbc800000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 mount("/dev/loop0", "./file0", "ntfs3", 0, "discard,gid=0x0000000000000000,force,sparse,iocharset=cp855,gid=0x000000000000ee01,noacsrules,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 open("./bus", O_RDWR|O_CREAT|O_SYNC|O_NOATIME|FASYNC, 000) = 4 ftruncate(4, 33587195) = 0 open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_LARGEFILE|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|FASYNC, 000) = 5 mmap(0x20001000, 40960, PROT_WRITE|PROT_EXEC|0x800000, MAP_SHARED|MAP_FIXED, 5, 0) = 0x20001000 [ 65.016138][ T3632] loop0: detected capacity change from 0 to 4096 [ 65.067828][ T3632] [ 65.070203][ T3632] ====================================================== [ 65.077228][ T3632] WARNING: possible circular locking dependency detected [ 65.084340][ T3632] 6.1.0-rc7-syzkaller-00101-g01f856ae6d0c #0 Not tainted [ 65.091344][ T3632] ------------------------------------------------------ [ 65.098528][ T3632] syz-executor911/3632 is trying to acquire lock: [ 65.104949][ T3632] ffff888021991718 (&mm->mmap_lock#2){++++}-{3:3}, at: __might_fault+0x8f/0x110 [ 65.114006][ T3632] [ 65.114006][ T3632] but task is already holding lock: [ 65.121363][ T3632] ffff8880741101b0 (&ni->file.run_lock#3){++++}-{3:3}, at: ni_fiemap+0x32b/0x1130 [ 65.130738][ T3632] [ 65.130738][ T3632] which lock already depends on the new lock. [ 65.130738][ T3632] [ 65.141143][ T3632] [ 65.141143][ T3632] the existing dependency chain (in reverse order) is: [ 65.150135][ T3632] [ 65.150135][ T3632] -> #1 (&ni->file.run_lock#3){++++}-{3:3}: [ 65.158193][ T3632] lock_acquire+0x182/0x3c0 [ 65.163199][ T3632] down_read+0x39/0x50 [ 65.167786][ T3632] attr_data_get_block+0x158/0x2370 [ 65.173492][ T3632] ntfs_file_mmap+0x48c/0x730 [ 65.178670][ T3632] mmap_region+0xfe6/0x1e20 [ 65.183674][ T3632] do_mmap+0x8d9/0xf30 [ 65.188247][ T3632] vm_mmap_pgoff+0x19e/0x2b0 [ 65.193344][ T3632] ksys_mmap_pgoff+0x48c/0x6d0 [ 65.198608][ T3632] do_syscall_64+0x3d/0xb0 [ 65.203872][ T3632] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.210267][ T3632] [ 65.210267][ T3632] -> #0 (&mm->mmap_lock#2){++++}-{3:3}: [ 65.217976][ T3632] validate_chain+0x1898/0x6ae0 [ 65.223332][ T3632] __lock_acquire+0x1292/0x1f60 [ 65.228689][ T3632] lock_acquire+0x182/0x3c0 [ 65.233690][ T3632] __might_fault+0xb2/0x110 [ 65.238692][ T3632] _copy_to_user+0x26/0x130 [ 65.243698][ T3632] fiemap_fill_next_extent+0x22e/0x410 [ 65.249760][ T3632] ni_fiemap+0xa11/0x1130 [ 65.254616][ T3632] ntfs_fiemap+0x134/0x180 [ 65.259554][ T3632] do_vfs_ioctl+0x187f/0x29a0 [ 65.264740][ T3632] __se_sys_ioctl+0x83/0x170 [ 65.269835][ T3632] do_syscall_64+0x3d/0xb0 [ 65.274751][ T3632] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.281235][ T3632] [ 65.281235][ T3632] other info that might help us debug this: [ 65.281235][ T3632] [ 65.291439][ T3632] Possible unsafe locking scenario: [ 65.291439][ T3632] [ 65.298871][ T3632] CPU0 CPU1 [ 65.304214][ T3632] ---- ---- [ 65.309557][ T3632] lock(&ni->file.run_lock#3); [ 65.314391][ T3632] lock(&mm->mmap_lock#2); [ 65.321395][ T3632] lock(&ni->file.run_lock#3); [ 65.328744][ T3632] lock(&mm->mmap_lock#2); [ 65.333251][ T3632] [ 65.333251][ T3632] *** DEADLOCK *** [ 65.333251][ T3632] [ 65.341380][ T3632] 2 locks held by syz-executor911/3632: [ 65.346902][ T3632] #0: ffff888074110100 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_fiemap+0x101/0x180 [ 65.356108][ T3632] #1: ffff8880741101b0 (&ni->file.run_lock#3){++++}-{3:3}, at: ni_fiemap+0x32b/0x1130 [ 65.365734][ T3632] [ 65.365734][ T3632] stack backtrace: [ 65.371773][ T3632] CPU: 0 PID: 3632 Comm: syz-executor911 Not tainted 6.1.0-rc7-syzkaller-00101-g01f856ae6d0c #0 [ 65.382158][ T3632] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 65.392207][ T3632] Call Trace: [ 65.395474][ T3632] [ 65.398392][ T3632] dump_stack_lvl+0x1b1/0x28e [ 65.403054][ T3632] ? nf_tcp_handle_invalid+0x62e/0x62e [ 65.408670][ T3632] ? print_circular_bug+0x13e/0x1c0 [ 65.413852][ T3632] check_noncircular+0x2cc/0x390 [ 65.418773][ T3632] ? add_chain_block+0x850/0x850 [ 65.423699][ T3632] ? lockdep_lock+0x102/0x290 [ 65.428367][ T3632] ? __bfs+0x369/0x700 [ 65.432449][ T3632] ? check_path+0x40/0x40 [ 65.436797][ T3632] ? noop_count+0x30/0x30 [ 65.441123][ T3632] ? _find_first_zero_bit+0xe8/0x110 [ 65.446395][ T3632] validate_chain+0x1898/0x6ae0 [ 65.451238][ T3632] ? reacquire_held_locks+0x650/0x650 [ 65.456590][ T3632] ? lockdep_unlock+0x144/0x2e0 [ 65.461421][ T3632] ? lockdep_lock+0x290/0x290 [ 65.466093][ T3632] ? validate_chain+0x177/0x6ae0 [ 65.471025][ T3632] ? _find_first_zero_bit+0xe8/0x110 [ 65.476316][ T3632] ? validate_chain+0x1478/0x6ae0 [ 65.481349][ T3632] ? reacquire_held_locks+0x650/0x650 [ 65.486715][ T3632] ? validate_chain+0x177/0x6ae0 [ 65.491658][ T3632] ? validate_chain+0x177/0x6ae0 [ 65.496681][ T3632] ? validate_chain+0x177/0x6ae0 [ 65.501617][ T3632] ? validate_chain+0x177/0x6ae0 [ 65.506593][ T3632] ? stack_trace_save+0x1e0/0x1e0 [ 65.511600][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.517219][ T3632] ? stack_trace_save+0x1e0/0x1e0 [ 65.522331][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.527958][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.533926][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.539542][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.545523][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.551137][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.557106][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.562717][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.568681][ T3632] ? finish_lock_switch+0x89/0x100 [ 65.573776][ T3632] ? trace_lock_release+0x95/0x220 [ 65.578890][ T3632] ? read_lock_is_recursive+0x10/0x10 [ 65.584340][ T3632] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 65.590311][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.596115][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.602162][ T3632] ? mark_lock+0x9a/0x350 [ 65.606475][ T3632] ? __lock_acquire+0x1292/0x1f60 [ 65.611480][ T3632] ? rcu_preempt_deferred_qs_irqrestore+0x849/0xc10 [ 65.618109][ T3632] ? trace_lock_release+0x95/0x220 [ 65.623235][ T3632] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 65.629212][ T3632] ? print_irqtrace_events+0x220/0x220 [ 65.634658][ T3632] ? do_raw_spin_unlock+0x134/0x8a0 [ 65.639841][ T3632] ? _raw_spin_unlock_irqrestore+0x8b/0x120 [ 65.645724][ T3632] ? lockdep_hardirqs_on+0x8d/0x130 [ 65.650915][ T3632] ? _raw_spin_unlock_irqrestore+0xc1/0x120 [ 65.656816][ T3632] ? _raw_spin_unlock+0x40/0x40 [ 65.661675][ T3632] ? preempt_schedule+0xb6/0xc0 [ 65.666538][ T3632] ? rcu_preempt_deferred_qs_irqrestore+0x849/0xc10 [ 65.673122][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.678737][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.684698][ T3632] ? rcu_read_unlock_special+0x4b0/0x4b0 [ 65.690317][ T3632] ? __blk_mq_try_issue_directly+0x937/0xc80 [ 65.696279][ T3632] ? rcu_lock_release+0x9/0x20 [ 65.701223][ T3632] ? trace_block_unplug+0x300/0x300 [ 65.706404][ T3632] ? rcu_lock_release+0x9/0x20 [ 65.711150][ T3632] ? __lock_acquire+0x1f60/0x1f60 [ 65.716165][ T3632] ? mark_lock+0x9a/0x350 [ 65.720478][ T3632] ? rcu_read_lock_sched_held+0x87/0x110 [ 65.726097][ T3632] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 65.732083][ T3632] ? rcu_lock_release+0x5/0x20 [ 65.736836][ T3632] ? mark_lock+0x9a/0x350 [ 65.741151][ T3632] __lock_acquire+0x1292/0x1f60 [ 65.745987][ T3632] lock_acquire+0x182/0x3c0 [ 65.750478][ T3632] ? __might_fault+0x8f/0x110 [ 65.755134][ T3632] ? read_lock_is_recursive+0x10/0x10 [ 65.760487][ T3632] ? mark_lock+0x9a/0x350 [ 65.764797][ T3632] ? __might_sleep+0xc0/0xc0 [ 65.769402][ T3632] ? __lock_acquire+0x1292/0x1f60 [ 65.774408][ T3632] __might_fault+0xb2/0x110 [ 65.778892][ T3632] ? __might_fault+0x8f/0x110 [ 65.783549][ T3632] _copy_to_user+0x26/0x130 [ 65.788035][ T3632] fiemap_fill_next_extent+0x22e/0x410 [ 65.793487][ T3632] ? read_lock_is_recursive+0x10/0x10 [ 65.798843][ T3632] ? vfs_ioctl+0xb0/0xb0 [ 65.803328][ T3632] ? wbc_detach_inode+0x12a/0x570 [ 65.808348][ T3632] ? run_lookup_entry+0x3f4/0x560 [ 65.813431][ T3632] ni_fiemap+0xa11/0x1130 [ 65.817756][ T3632] ? ni_parse_reparse+0x680/0x680 [ 65.822777][ T3632] ? __might_sleep+0xc0/0xc0 [ 65.827357][ T3632] ? fiemap_prep+0x1ac/0x230 [ 65.831934][ T3632] ntfs_fiemap+0x134/0x180 [ 65.836401][ T3632] ? ntfs_file_open+0x210/0x210 [ 65.841235][ T3632] ? __might_fault+0xb2/0x110 [ 65.845895][ T3632] ? ntfs_file_open+0x210/0x210 [ 65.850727][ T3632] do_vfs_ioctl+0x187f/0x29a0 [ 65.855388][ T3632] ? __x64_compat_sys_ioctl+0x80/0x80 [ 65.860744][ T3632] ? __lock_acquire+0x1f60/0x1f60 [ 65.865751][ T3632] ? slab_free_freelist_hook+0x12e/0x1a0 [ 65.871549][ T3632] ? tomoyo_path_number_perm+0x59e/0x760 [ 65.877185][ T3632] ? __kmem_cache_free+0x71/0x110 [ 65.882223][ T3632] ? tomoyo_path_number_perm+0x607/0x760 [ 65.887856][ T3632] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 65.893309][ T3632] ? _raw_spin_lock_irqsave+0x100/0x100 [ 65.898850][ T3632] ? bpf_lsm_file_ioctl+0x5/0x10 [ 65.903942][ T3632] ? security_file_ioctl+0x9d/0xb0 [ 65.909133][ T3632] __se_sys_ioctl+0x83/0x170 [ 65.913931][ T3632] do_syscall_64+0x3d/0xb0 [ 65.918444][ T3632] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 65.924323][ T3632] RIP: 0033:0x7febc4d60d69 [ 65.928716][ T3632] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 65.948314][ T3632] RSP: 002b:00007fffe05c24d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 65.956734][ T3632] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007febc4d60d69 ioctl(5, FS_IOC_FIEMAP, {fm_start=1, fm_length=4294967295, fm_flags=FIEMAP_FLAG_SYNC, fm_extent_count=4} => {fm_flags=FIEMAP_FLAG_SYNC, fm_mapped_extents=1, ...}) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 65.964816][ T3632] RDX: 00000000200001c0 RSI: 00000000c020660b RDI: 00000000