./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3099219564 <...> Warning: Permanently added '10.128.0.33' (ED25519) to the list of known hosts. execve("./syz-executor3099219564", ["./syz-executor3099219564"], 0x7fff94ceebd0 /* 10 vars */) = 0 brk(NULL) = 0x55555628b000 brk(0x55555628bd00) = 0x55555628bd00 arch_prctl(ARCH_SET_FS, 0x55555628b380) = 0 set_tid_address(0x55555628b650) = 5028 set_robust_list(0x55555628b660, 24) = 0 rseq(0x55555628bca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3099219564", 4096) = 28 getrandom("\xbe\xf4\x75\x4b\xee\x82\xd2\x80", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555628bd00 brk(0x5555562acd00) = 0x5555562acd00 brk(0x5555562ad000) = 0x5555562ad000 mprotect(0x7f82a5e39000, 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) = 0x7f829d96a000 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(0x7f829d96a000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 55.892979][ T5028] syz-executor309[5028]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 55.932681][ T5028] loop0: detected capacity change from 0 to 4096 [ 55.943563][ T5028] ======================================================= [ 55.943563][ T5028] WARNING: The mand mount option has been deprecated and [ 55.943563][ T5028] and is ignored by this kernel. Remove the mand [ 55.943563][ T5028] option from the mount to silence this warning. [ 55.943563][ T5028] ======================================================= [ 55.980789][ T5028] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). 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 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, "./file0", O_RDWR|O_CREAT|O_NONBLOCK|O_NOFOLLOW, 000) = 4 ftruncate(4, 0) = 0 [ 56.003382][ T5028] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 56.038365][ T5028] [ 56.040739][ T5028] ============================================ [ 56.046900][ T5028] WARNING: possible recursive locking detected [ 56.053051][ T5028] 6.6.0-rc5-syzkaller #0 Not tainted [ 56.058318][ T5028] -------------------------------------------- [ 56.064447][ T5028] syz-executor309/5028 is trying to acquire lock: [ 56.070838][ T5028] ffff888076f01e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 56.079333][ T5028] [ 56.079333][ T5028] but task is already holding lock: [ 56.086763][ T5028] ffff888076f06840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 56.095472][ T5028] [ 56.095472][ T5028] other info that might help us debug this: [ 56.103513][ T5028] Possible unsafe locking scenario: [ 56.103513][ T5028] [ 56.110939][ T5028] CPU0 [ 56.114199][ T5028] ---- [ 56.117456][ T5028] lock(&ni->ni_lock/4); [ 56.121769][ T5028] lock(&ni->ni_lock/4); [ 56.126081][ T5028] [ 56.126081][ T5028] *** DEADLOCK *** [ 56.126081][ T5028] [ 56.134207][ T5028] May be due to missing lock nesting notation [ 56.134207][ T5028] [ 56.142507][ T5028] 2 locks held by syz-executor309/5028: [ 56.148036][ T5028] #0: ffff888076f06ae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 56.157951][ T5028] #1: ffff888076f06840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 56.167090][ T5028] [ 56.167090][ T5028] stack backtrace: [ 56.172960][ T5028] CPU: 1 PID: 5028 Comm: syz-executor309 Not tainted 6.6.0-rc5-syzkaller #0 [ 56.181618][ T5028] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 [ 56.191658][ T5028] Call Trace: [ 56.194928][ T5028] [ 56.197845][ T5028] dump_stack_lvl+0x1e7/0x2d0 [ 56.202512][ T5028] ? nf_tcp_handle_invalid+0x650/0x650 [ 56.207961][ T5028] ? print_deadlock_bug+0x462/0x600 [ 56.213150][ T5028] ? _find_first_zero_bit+0xd4/0x100 [ 56.218429][ T5028] __lock_acquire+0x6a81/0x7f70 [ 56.223276][ T5028] ? verify_lock_unused+0x140/0x140 [ 56.228469][ T5028] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 56.234442][ T5028] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 56.240326][ T5028] ? _raw_spin_unlock+0x40/0x40 [ 56.245167][ T5028] ? stack_trace_save+0x117/0x1c0 [ 56.250176][ T5028] ? inode_init_always+0x8e3/0xc00 [ 56.255275][ T5028] ? iget5_locked+0xd3/0x270 [ 56.259868][ T5028] ? stack_trace_snprint+0xf0/0xf0 [ 56.264965][ T5028] ? lookup_slow+0x53/0x70 [ 56.269369][ T5028] lock_acquire+0x1e3/0x520 [ 56.273876][ T5028] ? mi_read+0x2e1/0x5a0 [ 56.278110][ T5028] ? read_lock_is_recursive+0x20/0x20 [ 56.283468][ T5028] ? __might_sleep+0xc0/0xc0 [ 56.288067][ T5028] __mutex_lock+0x136/0xd60 [ 56.292574][ T5028] ? mi_read+0x2e1/0x5a0 [ 56.296808][ T5028] ? mi_read+0x1be/0x5a0 [ 56.301036][ T5028] ? mi_read+0x2e1/0x5a0 [ 56.305267][ T5028] ? mutex_lock_nested+0x20/0x20 [ 56.310192][ T5028] ? __up_read+0x2bd/0x690 [ 56.314601][ T5028] ? up_read+0x20/0x20 [ 56.318663][ T5028] mi_read+0x2e1/0x5a0 [ 56.322719][ T5028] ntfs_iget5+0x47d/0x38e0 [ 56.327223][ T5028] ? check_index_root+0x6d0/0x6d0 [ 56.332240][ T5028] dir_search_u+0x2fa/0x3a0 [ 56.336734][ T5028] ? ntfs_nls_to_utf16+0xc50/0xc50 [ 56.341832][ T5028] ? ntfs_utf16_to_nls+0x730/0x730 [ 56.346932][ T5028] ? ntfs_lookup+0x51/0x1f0 [ 56.351427][ T5028] ntfs_lookup+0x106/0x1f0 [ 56.355835][ T5028] __lookup_slow+0x282/0x3e0 [ 56.360414][ T5028] ? lookup_one_len+0x2d0/0x2d0 [ 56.365262][ T5028] lookup_slow+0x53/0x70 [ 56.369494][ T5028] walk_component+0x2d0/0x400 [ 56.374159][ T5028] path_lookupat+0x16f/0x450 [ 56.378741][ T5028] filename_lookup+0x255/0x610 [ 56.383496][ T5028] ? hashlen_string+0x110/0x110 [ 56.388339][ T5028] ? __might_sleep+0xc0/0xc0 [ 56.392921][ T5028] ? __might_fault+0xa5/0x120 [ 56.397586][ T5028] ? __lock_acquire+0x7f70/0x7f70 [ 56.402599][ T5028] vfs_statx+0x10b/0x4c0 [ 56.406829][ T5028] ? __check_object_size+0x4bb/0xa00 [ 56.412103][ T5028] ? strncpy_from_user+0x1a5/0x2e0 [ 56.417208][ T5028] ? vfs_fstatat+0x190/0x190 [ 56.421788][ T5028] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 56.427756][ T5028] vfs_fstatat+0x135/0x190 [ 56.432167][ T5028] __x64_sys_newfstatat+0x117/0x190 [ 56.437356][ T5028] ? __ia32_sys_newlstat+0x170/0x170 [ 56.442638][ T5028] ? syscall_enter_from_user_mode+0x32/0x230 [ 56.448609][ T5028] ? syscall_enter_from_user_mode+0x8c/0x230 [ 56.454582][ T5028] do_syscall_64+0x41/0xc0 [ 56.458994][ T5028] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.464877][ T5028] RIP: 0033:0x7f82a5da7639 [ 56.469295][ T5028] 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 [ 56.488890][ T5028] RSP: 002b:00007ffc9a493758 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 [ 56.497290][ T5028] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f82a5da7639 newfstatat(AT_FDCWD, "./file1", NULL, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 56.