./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2706487555 <...> Warning: Permanently added '10.128.0.17' (ED25519) to the list of known hosts. execve("./syz-executor2706487555", ["./syz-executor2706487555"], 0x7fffa6a192a0 /* 10 vars */) = 0 brk(NULL) = 0x55555661d000 brk(0x55555661dd00) = 0x55555661dd00 arch_prctl(ARCH_SET_FS, 0x55555661d380) = 0 set_tid_address(0x55555661d650) = 5035 set_robust_list(0x55555661d660, 24) = 0 rseq(0x55555661dca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2706487555", 4096) = 28 getrandom("\x60\x8e\xa7\x14\xf5\x13\x1e\xea", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555661dd00 brk(0x55555663ed00) = 0x55555663ed00 brk(0x55555663f000) = 0x55555663f000 mprotect(0x7f1bcc58c000, 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) = 0x7f1bc40bd000 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(0x7f1bc40bd000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 71.134840][ T5035] syz-executor270[5035]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 71.180972][ T5035] loop0: detected capacity change from 0 to 4096 [ 71.194310][ T5035] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). mount("/dev/loop0", "./file0", "ntfs3", MS_NOSUID|MS_NOEXEC|MS_POSIXACL|MS_RELATIME, "") = 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_TRUNC|O_APPEND|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [ 71.221836][ T5035] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 71.264796][ T5035] [ 71.267178][ T5035] ============================================ [ 71.273351][ T5035] WARNING: possible recursive locking detected [ 71.279519][ T5035] 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0 Not tainted [ 71.286551][ T5035] -------------------------------------------- [ 71.292703][ T5035] syz-executor270/5035 is trying to acquire lock: [ 71.299888][ T5035] ffff8880764d1e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 71.308356][ T5035] [ 71.308356][ T5035] but task is already holding lock: [ 71.315711][ T5035] ffff8880764d6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 71.324423][ T5035] [ 71.324423][ T5035] other info that might help us debug this: [ 71.332501][ T5035] Possible unsafe locking scenario: [ 71.332501][ T5035] [ 71.339948][ T5035] CPU0 [ 71.343236][ T5035] ---- [ 71.346512][ T5035] lock(&ni->ni_lock/4); [ 71.350860][ T5035] lock(&ni->ni_lock/4); [ 71.355228][ T5035] [ 71.355228][ T5035] *** DEADLOCK *** [ 71.355228][ T5035] [ 71.363369][ T5035] May be due to missing lock nesting notation [ 71.363369][ T5035] [ 71.371683][ T5035] 2 locks held by syz-executor270/5035: [ 71.377225][ T5035] #0: ffff8880764d6ae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 71.387166][ T5035] #1: ffff8880764d6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 71.396538][ T5035] [ 71.396538][ T5035] stack backtrace: [ 71.402439][ T5035] CPU: 0 PID: 5035 Comm: syz-executor270 Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0 [ 71.412972][ T5035] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 71.423036][ T5035] Call Trace: [ 71.426336][ T5035] [ 71.429278][ T5035] dump_stack_lvl+0x1e7/0x2d0 [ 71.433978][ T5035] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.439446][ T5035] ? print_deadlock_bug+0x462/0x600 [ 71.444672][ T5035] ? _find_first_zero_bit+0xd4/0x100 [ 71.449995][ T5035] __lock_acquire+0x6a81/0x7f70 [ 71.454888][ T5035] ? verify_lock_unused+0x140/0x140 [ 71.460118][ T5035] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 71.466200][ T5035] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 71.472311][ T5035] ? _raw_spin_unlock+0x40/0x40 [ 71.477548][ T5035] ? stack_trace_save+0x117/0x1c0 [ 71.482590][ T5035] ? __alloc_pages+0x670/0x670 [ 71.487370][ T5035] ? stack_trace_snprint+0xf0/0xf0 [ 71.492492][ T5035] lock_acquire+0x1e3/0x520 [ 71.497003][ T5035] ? mi_read+0x2e1/0x5a0 [ 71.501266][ T5035] ? read_lock_is_recursive+0x20/0x20 [ 71.506899][ T5035] ? __might_sleep+0xc0/0xc0 [ 71.511504][ T5035] __mutex_lock+0x136/0xd60 [ 71.516014][ T5035] ? mi_read+0x2e1/0x5a0 [ 71.520274][ T5035] ? mi_read+0x1be/0x5a0 [ 71.524523][ T5035] ? mi_read+0x2e1/0x5a0 [ 71.528946][ T5035] ? mutex_lock_nested+0x20/0x20 [ 71.534152][ T5035] ? __up_read+0x2bd/0x690 [ 71.538582][ T5035] ? up_read+0x20/0x20 [ 71.542668][ T5035] mi_read+0x2e1/0x5a0 [ 71.546769][ T5035] ntfs_iget5+0x47d/0x38e0 [ 71.551234][ T5035] ? check_index_root+0x6d0/0x6d0 [ 71.556280][ T5035] dir_search_u+0x2fa/0x3a0 [ 71.560883][ T5035] ? ntfs_nls_to_utf16+0xc50/0xc50 [ 71.566013][ T5035] ? ntfs_utf16_to_nls+0x730/0x730 [ 71.571162][ T5035] ? ntfs_lookup+0x51/0x1f0 [ 71.575709][ T5035] ntfs_lookup+0x106/0x1f0 [ 71.580213][ T5035] __lookup_slow+0x282/0x3e0 [ 71.584851][ T5035] ? lookup_one_len+0x2d0/0x2d0 [ 71.589813][ T5035] lookup_slow+0x53/0x70 [ 71.594080][ T5035] walk_component+0x2d0/0x400 [ 71.598777][ T5035] path_lookupat+0x16f/0x450 [ 71.603398][ T5035] filename_lookup+0x255/0x610 [ 71.608203][ T5035] ? hashlen_string+0x110/0x110 [ 71.613078][ T5035] ? strncpy_from_user+0x1a5/0x2e0 [ 71.618212][ T5035] ? getname_flags+0x1f0/0x4e0 [ 71.623001][ T5035] user_path_at_empty+0x44/0x180 [ 71.627958][ T5035] path_setxattr+0xb2/0x2a0 [ 71.632468][ T5035] ? do_notify_parent+0x1100/0x1100 [ 71.637680][ T5035] ? simple_xattrs_free+0x170/0x170 [ 71.642897][ T5035] ? syscall_enter_from_user_mode+0x32/0x230 [ 71.648895][ T5035] __x64_sys_setxattr+0xbb/0xd0 [ 71.653760][ T5035] do_syscall_64+0x41/0xc0 [ 71.658186][ T5035] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.664084][ T5035] RIP: 0033:0x7f1bcc4fa5f9 [ 71.668504][ T5035] 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 [ 71.688118][ T5035] RSP: 002b:00007ffe16f55f48 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 71.696541][ T5035] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1bcc4fa5f9 [ 71.704522][ T5035] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 setxattr("./file2", NULL, NULL, 0, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 71.712496][ T5035] RBP: 00007f1bcc58c610 R08: 0