./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2458895034 <...> Warning: Permanently added '10.128.1.34' (ED25519) to the list of known hosts. execve("./syz-executor2458895034", ["./syz-executor2458895034"], 0x7ffd6edefbb0 /* 10 vars */) = 0 brk(NULL) = 0x5555566e3000 brk(0x5555566e3d00) = 0x5555566e3d00 arch_prctl(ARCH_SET_FS, 0x5555566e3380) = 0 set_tid_address(0x5555566e3650) = 5034 set_robust_list(0x5555566e3660, 24) = 0 rseq(0x5555566e3ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2458895034", 4096) = 28 getrandom("\xe2\xda\xab\x92\xab\x3d\xb1\x02", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555566e3d00 brk(0x555556704d00) = 0x555556704d00 brk(0x555556705000) = 0x555556705000 mprotect(0x7f77cbd3f000, 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) = 0x7f77c3870000 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(0x7f77c3870000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 63.209847][ T5034] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5034 'syz-executor245' 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 [ 63.251430][ T5034] loop0: detected capacity change from 0 to 4096 [ 63.263713][ T5034] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). [ 63.286940][ T5034] ntfs3: loop0: Mark volume as dirty due to NTFS errors openat(AT_FDCWD, "./file0", O_RDWR|O_CREAT|O_TRUNC|O_APPEND|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [ 63.314692][ T5034] [ 63.317070][ T5034] ============================================ [ 63.323230][ T5034] WARNING: possible recursive locking detected [ 63.329386][ T5034] 6.5.0-rc3-next-20230725-syzkaller #0 Not tainted [ 63.335896][ T5034] -------------------------------------------- [ 63.342043][ T5034] syz-executor245/5034 is trying to acquire lock: [ 63.348451][ T5034] ffff8880751e1e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x462/0x650 [ 63.356924][ T5034] [ 63.356924][ T5034] but task is already holding lock: [ 63.364380][ T5034] ffff8880751e6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1b8/0x2a0 [ 63.373204][ T5034] [ 63.373204][ T5034] other info that might help us debug this: [ 63.381258][ T5034] Possible unsafe locking scenario: [ 63.381258][ T5034] [ 63.388701][ T5034] CPU0 [ 63.391983][ T5034] ---- [ 63.395258][ T5034] lock(&ni->ni_lock/4); [ 63.399599][ T5034] lock(&ni->ni_lock/4); [ 63.403942][ T5034] [ 63.403942][ T5034] *** DEADLOCK *** [ 63.403942][ T5034] [ 63.412079][ T5034] May be due to missing lock nesting notation [ 63.412079][ T5034] [ 63.420425][ T5034] 2 locks held by syz-executor245/5034: [ 63.425979][ T5034] #0: ffff8880751e6ae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: walk_component+0x33b/0x5a0 [ 63.436397][ T5034] #1: ffff8880751e6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1b8/0x2a0 [ 63.445678][ T5034] [ 63.445678][ T5034] stack backtrace: [ 63.451570][ T5034] CPU: 0 PID: 5034 Comm: syz-executor245 Not tainted 6.5.0-rc3-next-20230725-syzkaller #0 [ 63.461487][ T5034] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 63.471553][ T5034] Call Trace: [ 63.474837][ T5034] [ 63.477774][ T5034] dump_stack_lvl+0xd9/0x1b0 [ 63.482406][ T5034] __lock_acquire+0x2971/0x5de0 [ 63.487304][ T5034] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 63.493317][ T5034] ? lockdep_unlock+0x11b/0x290 [ 63.498195][ T5034] lock_acquire+0x1ae/0x510 [ 63.502724][ T5034] ? mi_read+0x462/0x650 [ 63.506990][ T5034] ? lock_sync+0x190/0x190 [ 63.511428][ T5034] ? preempt_count_sub+0x150/0x150 [ 63.516566][ T5034] __mutex_lock+0x181/0x1340 [ 63.521176][ T5034] ? mi_read+0x462/0x650 [ 63.525438][ T5034] ? mi_read+0x462/0x650 [ 63.529701][ T5034] ? find_held_lock+0x2d/0x110 [ 63.534495][ T5034] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 63.540086][ T5034] ? _down_write_nest_lock+0x200/0x200 [ 63.545573][ T5034] ? mi_read+0x462/0x650 [ 63.549840][ T5034] mi_read+0x462/0x650 [ 63.553929][ T5034] ntfs_iget5+0x4ee/0x3960 [ 63.558380][ T5034] ? indx_read+0x4cc/0xcd0 [ 63.562833][ T5034] ? ntfs_write_end+0x910/0x910 [ 63.567710][ T5034] dir_search_u+0x162/0x3d0 [ 63.572235][ T5034] ? ntfs_nls_to_utf16+0x6e0/0x6e0 [ 63.577520][ T5034] ? rcu_is_watching+0x12/0xb0 [ 63.582331][ T5034] ? kmem_cache_alloc+0x34e/0x3b0 [ 63.587384][ T5034] ? lockdep_init_map_type+0x16d/0x7c0 [ 63.592886][ T5034] ntfs_lookup+0x1c5/0x2a0 [ 63.597355][ T5034] __lookup_slow+0x24d/0x450 [ 63.601978][ T5034] ? lookup_open.isra.0+0x1360/0x1360 [ 63.607383][ T5034] ? lookup_fast+0x155/0x520 [ 63.611996][ T5034] walk_component+0x349/0x5a0 [ 63.616773][ T5034] path_lookupat+0x17f/0x770 [ 63.621421][ T5034] filename_lookup+0x1e7/0x5b0 [ 63.626215][ T5034] ? find_held_lock+0x2d/0x110 [ 63.631001][ T5034] ? may_linkat+0x340/0x340 [ 63.635548][ T5034] ? __might_fault+0xe5/0x190 [ 63.640301][ T5034] ? getname_flags.part.0+0x1d5/0x4d0 [ 63.645699][ T5034] user_path_at_empty+0x42/0x60 [ 63.650592][ T5034] path_setxattr+0xa5/0x1d0 [ 63.655132][ T5034] ? setxattr+0x170/0x170 [ 63.659489][ T5034] ? _raw_spin_unlock_irq+0x23/0x50 [ 63.664868][ T5034] ? lockdep_hardirqs_on+0x7d/0x100 [ 63.670097][ T5034] __x64_sys_setxattr+0xc4/0x160 [ 63.675061][ T5034] do_syscall_64+0x38/0xb0 [ 63.679523][ T5034] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 63.685455][ T5034] RIP: 0033:0x7f77cbcad5f9 [ 63.689881][ T5034] 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 +++ [ 63.709506][ T5034] RSP: 002b:00007ffd240e49d8 EFLAGS: 00000246 ORIG_RAX: 000