./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor121334911 <...> Warning: Permanently added '10.128.0.150' (ED25519) to the list of known hosts. execve("./syz-executor121334911", ["./syz-executor121334911"], 0x7ffef9924f30 /* 10 vars */) = 0 brk(NULL) = 0x5555754ed000 brk(0x5555754edd00) = 0x5555754edd00 arch_prctl(ARCH_SET_FS, 0x5555754ed380) = 0 set_tid_address(0x5555754ed650) = 5057 set_robust_list(0x5555754ed660, 24) = 0 rseq(0x5555754edca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor121334911", 4096) = 27 getrandom("\x6e\xe2\x99\x00\x4a\xf0\x0d\x9e", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555754edd00 brk(0x55557550ed00) = 0x55557550ed00 brk(0x55557550f000) = 0x55557550f000 mprotect(0x7f853abed000, 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) = 0x7f8532600000 write(3, "\xeb\x52\x90\x4e\x54\x46\x53\x20\x20\x20\x20\x00\x10\x01\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\x01\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x78\x5f\xaa\x3b\xd7\x0e\xce\x68\x00\x00\x00\x00\x0e\x1f\xbe\x71\x7c\xac\x22\xc0\x74\x0b\x56\xb4\x0e\xbb\x07\x00"..., 2097152) = 2097152 munmap(0x7f8532600000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 59.719375][ T5057] loop0: detected capacity change from 0 to 4096 [ 59.750895][ T5057] ======================================================= [ 59.750895][ T5057] WARNING: The mand mount option has been deprecated and mount("/dev/loop0", "./file0", "ntfs3", MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NODIRATIME|MS_POSIXACL|MS_RELATIME|MS_STRICTATIME|MS_LAZYTIME, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "./file0", O_RDWR|O_CREAT|O_NONBLOCK|O_NOFOLLOW, 000) = 4 ftruncate(4, 0) = 0 [ 59.750895][ T5057] and is ignored by this kernel. Remove the mand [ 59.750895][ T5057] option from the mount to silence this warning. [ 59.750895][ T5057] ======================================================= [ 59.788674][ T5057] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). [ 59.811876][ T5057] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 59.835121][ T5057] [ 59.837465][ T5057] ============================================ [ 59.843606][ T5057] WARNING: possible recursive locking detected [ 59.849741][ T5057] 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted [ 59.856385][ T5057] -------------------------------------------- [ 59.862524][ T5057] syz-executor121/5057 is trying to acquire lock: [ 59.868920][ T5057] ffff8880780c1e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 59.877368][ T5057] [ 59.877368][ T5057] but task is already holding lock: [ 59.884704][ T5057] ffff8880780c6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 59.893379][ T5057] [ 59.893379][ T5057] other info that might help us debug this: [ 59.901426][ T5057] Possible unsafe locking scenario: [ 59.901426][ T5057] [ 59.908868][ T5057] CPU0 [ 59.912127][ T5057] ---- [ 59.915381][ T5057] lock(&ni->ni_lock/4); [ 59.919692][ T5057] lock(&ni->ni_lock/4); [ 59.924001][ T5057] [ 59.924001][ T5057] *** DEADLOCK *** [ 59.924001][ T5057] [ 59.932116][ T5057] May be due to missing lock nesting notation [ 59.932116][ T5057] [ 59.940413][ T5057] 2 locks held by syz-executor121/5057: [ 59.945930][ T5057] #0: ffff8880780c6ae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 59.955821][ T5057] #1: ffff8880780c6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 59.964939][ T5057] [ 59.964939][ T5057] stack backtrace: [ 59.970802][ T5057] CPU: 0 PID: 5057 Comm: syz-executor121 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 [ 59.980849][ T5057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 59.990897][ T5057] Call Trace: [ 59.994157][ T5057] [ 59.997073][ T5057] dump_stack_lvl+0x241/0x360 [ 60.001736][ T5057] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.006909][ T5057] ? print_deadlock_bug+0x479/0x620 [ 60.012082][ T5057] ? _find_first_zero_bit+0xd4/0x100 [ 60.017345][ T5057] validate_chain+0x15c1/0x58e0 [ 60.022179][ T5057] ? __pfx_validate_chain+0x10/0x10 [ 60.027359][ T5057] ? look_up_lock_class+0x77/0x160 [ 60.032646][ T5057] ? register_lock_class+0x102/0x980 [ 60.037906][ T5057] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.043861][ T5057] ? __pfx_register_lock_class+0x10/0x10 [ 60.049469][ T5057] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.055782][ T5057] ? mark_lock+0x9a/0x350 [ 60.060089][ T5057] __lock_acquire+0x1346/0x1fd0 [ 60.064923][ T5057] lock_acquire+0x1e4/0x530 [ 60.069415][ T5057] ? mi_read+0x2e1/0x5a0 [ 60.073636][ T5057] ? __pfx_lock_acquire+0x10/0x10 [ 60.078641][ T5057] ? __pfx___might_resched+0x10/0x10 [ 60.083900][ T5057] ? do_syscall_64+0xfb/0x240 [ 60.088548][ T5057] ? entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.094609][ T5057] __mutex_lock+0x136/0xd70 [ 60.099089][ T5057] ? mi_read+0x2e1/0x5a0 [ 60.103310][ T5057] ? mi_read+0x1be/0x5a0 [ 60.107529][ T5057] ? mi_read+0x2e1/0x5a0 [ 60.111746][ T5057] ? __pfx___mutex_lock+0x10/0x10 [ 60.116744][ T5057] ? __up_read+0x2c2/0x6b0 [ 60.121137][ T5057] ? __pfx___up_read+0x10/0x10 [ 60.125876][ T5057] ? mi_init+0x78/0xe0 [ 60.129922][ T5057] ? rcu_is_watching+0x15/0xb0 [ 60.134662][ T5057] mi_read+0x2e1/0x5a0 [ 60.138709][ T5057] ntfs_iget5+0x4d1/0x3b70 [ 60.143110][ T5057] ? __pfx_ntfs_iget5+0x10/0x10 [ 60.147945][ T5057] ? kmalloc_trace+0x1db/0x360 [ 60.152687][ T5057] ? dir_search_u+0x16a/0x3a0 [ 60.157363][ T5057] dir_search_u+0x2fe/0x3a0 [ 60.161856][ T5057] ? __pfx_dir_search_u+0x10/0x10 [ 60.166856][ T5057] ? __pfx_ntfs_nls_to_utf16+0x10/0x10 [ 60.172291][ T5057] ? rcu_is_watching+0x15/0xb0 [ 60.177029][ T5057] ? ntfs_lookup+0x51/0x1f0 [ 60.181508][ T5057] ? trace_kmem_cache_alloc+0x1f/0xa0 [ 60.186855][ T5057] ? ntfs_lookup+0x51/0x1f0 [ 60.191335][ T5057] ntfs_lookup+0x106/0x1f0 [ 60.195731][ T5057] __lookup_slow+0x28c/0x3f0 [ 60.200302][ T5057] ? __pfx___lookup_slow+0x10/0x10 [ 60.205389][ T5057] ? __d_lookup+0x85/0x7e0 [ 60.209784][ T5057] lookup_slow+0x53/0x70 [ 60.214006][ T5057] walk_component+0x2e1/0x410 [ 60.218672][ T5057] path_lookupat+0x16f/0x450 [ 60.223241][ T5057] filename_lookup+0x256/0x610 [ 60.227981][ T5057] ? __pfx_filename_lookup+0x10/0x10 [ 60.233249][ T5057] ? __might_fault+0xaa/0x120 [ 60.237903][ T5057] vfs_statx+0x105/0x4e0 [ 60.242133][ T5057] ? __check_object_size+0x4bc/0xa00 [ 60.247398][ T5057] ? __pfx_vfs_statx+0x10/0x10 [ 60.252138][ T5057] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.258094][ T5057] vfs_fstatat+0x135/0x190 [ 60.262507][ T5057] __x64_sys_newfstatat+0x117/0x190 [ 60.267684][ T5057] ? __pfx___x64_sys_newfstatat+0x10/0x10 [ 60.273387][ T5057] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.279699][ T5057] ? do_syscall_64+0x10a/0x240 [ 60.284441][ T5057] ? syscall_trace_enter+0x5f/0x150 [ 60.289615][ T5057] do_syscall_64+0xfb/0x240 [ 60.294107][ T5057] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.299993][ T5057] RIP: 0033:0x7f853ab5b639 [ 60.304399][ T5057] 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.323986][ T5057] RSP: 002b:00007ffc8da9e3c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 newfstatat(AT_FDCWD, "./file1", NULL, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 60.332376][ T5057] RAX: ffffffffffffffda RBX: 0030656c6