./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4131030296 <...> Warning: Permanently added '10.128.0.112' (ED25519) to the list of known hosts. execve("./syz-executor4131030296", ["./syz-executor4131030296"], 0x7ffd614b5b50 /* 10 vars */) = 0 brk(NULL) = 0x555556254000 brk(0x555556254d00) = 0x555556254d00 arch_prctl(ARCH_SET_FS, 0x555556254380) = 0 set_tid_address(0x555556254650) = 5042 set_robust_list(0x555556254660, 24) = 0 rseq(0x555556254ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4131030296", 4096) = 28 getrandom("\x94\x36\x67\x9e\x49\x9a\xfc\x9a", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556254d00 brk(0x555556275d00) = 0x555556275d00 brk(0x555556276000) = 0x555556276000 mprotect(0x7f69ce16a000, 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) = 0x7f69c5c9b000 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(0x7f69c5c9b000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 74.004764][ T5042] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5042 'syz-executor413' ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 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 [ 74.051269][ T5042] loop0: detected capacity change from 0 to 4096 [ 74.063513][ T5042] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). [ 74.088975][ T5042] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 74.127881][ T5042] [ 74.130252][ T5042] ============================================ [ 74.136403][ T5042] WARNING: possible recursive locking detected [ 74.142568][ T5042] 6.5.0-rc3-next-20230726-syzkaller #0 Not tainted [ 74.149095][ T5042] -------------------------------------------- [ 74.155247][ T5042] syz-executor413/5042 is trying to acquire lock: [ 74.161667][ T5042] ffff888075b69e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x462/0x650 [ 74.170255][ T5042] [ 74.170255][ T5042] but task is already holding lock: [ 74.177641][ T5042] ffff888075b6e840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1b8/0x2a0 [ 74.186525][ T5042] [ 74.186525][ T5042] other info that might help us debug this: [ 74.194597][ T5042] Possible unsafe locking scenario: [ 74.194597][ T5042] [ 74.202050][ T5042] CPU0 [ 74.205331][ T5042] ---- [ 74.208612][ T5042] lock(&ni->ni_lock/4); [ 74.212966][ T5042] lock(&ni->ni_lock/4); [ 74.217336][ T5042] [ 74.217336][ T5042] *** DEADLOCK *** [ 74.217336][ T5042] [ 74.225504][ T5042] May be due to missing lock nesting notation [ 74.225504][ T5042] [ 74.233835][ T5042] 2 locks held by syz-executor413/5042: [ 74.239400][ T5042] #0: ffff888075b6eae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: walk_component+0x33b/0x5a0 [ 74.249815][ T5042] #1: ffff888075b6e840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1b8/0x2a0 [ 74.259110][ T5042] [ 74.259110][ T5042] stack backtrace: [ 74.265015][ T5042] CPU: 0 PID: 5042 Comm: syz-executor413 Not tainted 6.5.0-rc3-next-20230726-syzkaller #0 [ 74.274923][ T5042] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 74.285014][ T5042] Call Trace: [ 74.288313][ T5042] [ 74.291259][ T5042] dump_stack_lvl+0xd9/0x1b0 [ 74.295890][ T5042] __lock_acquire+0x2971/0x5de0 [ 74.300784][ T5042] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 74.306801][ T5042] ? lockdep_unlock+0x11b/0x290 [ 74.311685][ T5042] lock_acquire+0x1ae/0x510 [ 74.316328][ T5042] ? mi_read+0x462/0x650 [ 74.320609][ T5042] ? lock_sync+0x190/0x190 [ 74.325057][ T5042] ? preempt_count_sub+0x150/0x150 [ 74.330216][ T5042] __mutex_lock+0x181/0x1340 [ 74.334833][ T5042] ? mi_read+0x462/0x650 [ 74.339111][ T5042] ? mi_read+0x462/0x650 [ 74.343383][ T5042] ? find_held_lock+0x2d/0x110 [ 74.348174][ T5042] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 74.353756][ T5042] ? _down_write_nest_lock+0x200/0x200 [ 74.359248][ T5042] ? mi_read+0x462/0x650 [ 74.363516][ T5042] mi_read+0x462/0x650 [ 74.367620][ T5042] ntfs_iget5+0x4ee/0x3960 [ 74.372060][ T5042] ? indx_read+0x4cc/0xcd0 [ 74.376515][ T5042] ? ntfs_write_end+0x910/0x910 [ 74.381401][ T5042] dir_search_u+0x162/0x3d0 [ 74.385942][ T5042] ? ntfs_nls_to_utf16+0x6e0/0x6e0 [ 74.391090][ T5042] ? rcu_is_watching+0x12/0xb0 [ 74.395872][ T5042] ? kmem_cache_alloc+0x34e/0x3b0 [ 74.400927][ T5042] ? lockdep_init_map_type+0x16d/0x7c0 [ 74.406424][ T5042] ntfs_lookup+0x1c5/0x2a0 [ 74.410870][ T5042] __lookup_slow+0x24d/0x450 [ 74.415486][ T5042] ? lookup_open.isra.0+0x1360/0x1360 [ 74.420894][ T5042] ? lookup_fast+0x155/0x520 [ 74.425515][ T5042] walk_component+0x349/0x5a0 [ 74.430219][ T5042] path_lookupat+0x17f/0x770 [ 74.434840][ T5042] filename_lookup+0x1e7/0x5b0 [ 74.439632][ T5042] ? find_held_lock+0x2d/0x110 [ 74.444424][ T5042] ? may_linkat+0x340/0x340 [ 74.448956][ T5042] ? __might_fault+0xe5/0x190 [ 74.453682][ T5042] ? getname_flags.part.0+0x1d5/0x4d0 [ 74.459087][ T5042] user_path_at_empty+0x42/0x60 [ 74.463972][ T5042] path_setxattr+0xa5/0x1d0 [ 74.468511][ T5042] ? setxattr+0x170/0x170 [ 74.472876][ T5042] ? _raw_spin_unlock_irq+0x23/0x50 [ 74.478126][ T5042] ? lockdep_hardirqs_on+0x7d/0x100 [ 74.483355][ T5042] __x64_sys_setxattr+0xc4/0x160 [ 74.488329][ T5042] do_syscall_64+0x38/0xb0 [ 74.492765][ T5042] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 74.498682][ T5042] RIP: 0033:0x7f69ce0d85f9 [ 74.503112][ T5042] 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 setxattr("./file2", NULL, NULL, 0, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 74.522740][ T5042] RSP: 002b:00007fffb0f19f78 EFLAGS: 00000246 ORIG_RAX: 000