./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor349987708 <...> Warning: Permanently added '10.128.1.143' (ECDSA) to the list of known hosts. execve("./syz-executor349987708", ["./syz-executor349987708"], 0x7ffc5f8f7010 /* 10 vars */) = 0 brk(NULL) = 0x555555b96000 brk(0x555555b96c40) = 0x555555b96c40 arch_prctl(ARCH_SET_FS, 0x555555b96300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor349987708", 4096) = 27 brk(0x555555bb7c40) = 0x555555bb7c40 brk(0x555555bb8000) = 0x555555bb8000 mprotect(0x7fc4bb16f000, 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) = 0x7fc4b2c97000 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(0x7fc4b2c97000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 44.379664][ T4998] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4998 'syz-executor349' [ 44.409375][ T4998] loop0: detected capacity change from 0 to 4096 [ 44.420099][ T4998] 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 [ 44.440061][ T4998] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 44.467526][ T4998] [ 44.469917][ T4998] ============================================ [ 44.476056][ T4998] WARNING: possible recursive locking detected [ 44.482204][ T4998] 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 Not tainted [ 44.489203][ T4998] -------------------------------------------- [ 44.495328][ T4998] syz-executor349/4998 is trying to acquire lock: [ 44.501716][ T4998] ffff8880772f8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x35b/0x5b0 [ 44.510181][ T4998] [ 44.510181][ T4998] but task is already holding lock: [ 44.517530][ T4998] ffff8880772fd220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1bb/0x2a0 [ 44.526313][ T4998] [ 44.526313][ T4998] other info that might help us debug this: [ 44.534353][ T4998] Possible unsafe locking scenario: [ 44.534353][ T4998] [ 44.541784][ T4998] CPU0 [ 44.545043][ T4998] ---- [ 44.548319][ T4998] lock(&ni->ni_lock/4); [ 44.552633][ T4998] lock(&ni->ni_lock/4); [ 44.556963][ T4998] [ 44.556963][ T4998] *** DEADLOCK *** [ 44.556963][ T4998] [ 44.565085][ T4998] May be due to missing lock nesting notation [ 44.565085][ T4998] [ 44.573383][ T4998] 2 locks held by syz-executor349/4998: [ 44.578917][ T4998] #0: ffff8880772fd4c0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: walk_component+0x332/0x5a0 [ 44.589290][ T4998] #1: ffff8880772fd220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0x1bb/0x2a0 [ 44.598509][ T4998] [ 44.598509][ T4998] stack backtrace: [ 44.604375][ T4998] CPU: 1 PID: 4998 Comm: syz-executor349 Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 [ 44.614772][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 44.624814][ T4998] Call Trace: [ 44.628109][ T4998] [ 44.631022][ T4998] dump_stack_lvl+0xd9/0x150 [ 44.635623][ T4998] __lock_acquire+0x13eb/0x5f30 [ 44.640461][ T4998] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 44.646525][ T4998] ? __lock_acquire+0x28bf/0x5f30 [ 44.651539][ T4998] lock_acquire+0x1b1/0x520 [ 44.656024][ T4998] ? mi_read+0x35b/0x5b0 [ 44.660250][ T4998] ? lock_sync+0x190/0x190 [ 44.664652][ T4998] __mutex_lock+0x12f/0x1350 [ 44.669222][ T4998] ? mi_read+0x35b/0x5b0 [ 44.673451][ T4998] ? mi_read+0x35b/0x5b0 [ 44.677677][ T4998] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 44.683206][ T4998] ? __up_read+0x1fe/0x750 [ 44.687626][ T4998] ? down_read+0x13e/0x480 [ 44.692029][ T4998] ? up_write+0x520/0x520 [ 44.696341][ T4998] mi_read+0x35b/0x5b0 [ 44.700390][ T4998] ntfs_iget5+0x47d/0x3670 [ 44.704791][ T4998] ? indx_find+0x37c/0x980 [ 44.709187][ T4998] ? ntfs_write_end+0x980/0x980 [ 44.714020][ T4998] ? indx_free_children.isra.0+0x6c0/0x6c0 [ 44.719804][ T4998] ? __kmem_cache_alloc_node+0x1b0/0x320 [ 44.725436][ T4998] ? dir_search_u+0x1f6/0x3f0 [ 44.730116][ T4998] dir_search_u+0x36e/0x3f0 [ 44.734603][ T4998] ? ntfs_nls_to_utf16+0x810/0x810 [ 44.739696][ T4998] ? rcu_is_watching+0x12/0xb0 [ 44.744533][ T4998] ? kmem_cache_alloc+0x337/0x3b0 [ 44.749546][ T4998] ntfs_lookup+0x1c8/0x2a0 [ 44.753946][ T4998] __lookup_slow+0x24c/0x460 [ 44.758517][ T4998] ? lookup_one_qstr_excl+0x180/0x180 [ 44.763879][ T4998] ? lookup_fast+0x14e/0x520 [ 44.768450][ T4998] walk_component+0x33f/0x5a0 [ 44.773203][ T4998] path_lookupat+0x1ba/0x840 [ 44.777783][ T4998] filename_lookup+0x1d2/0x590 [ 44.782530][ T4998] ? may_linkat+0x3b0/0x3b0 [ 44.787019][ T4998] ? __might_fault+0xe2/0x190 [ 44.791685][ T4998] ? __phys_addr_symbol+0x30/0x70 [ 44.796695][ T4998] ? __check_object_size+0x323/0x730 [ 44.801966][ T4998] ? strncpy_from_user+0x1f8/0x350 [ 44.807062][ T4998] ? getname_flags.part.0+0x1dd/0x4f0 [ 44.812418][ T4998] user_path_at_empty+0x46/0x60 [ 44.817252][ T4998] path_setxattr+0x92/0x1c0 [ 44.821742][ T4998] ? setxattr+0x160/0x160 [ 44.826142][ T4998] ? _raw_spin_unlock_irq+0x23/0x50 [ 44.831346][ T4998] ? lockdep_hardirqs_on+0x7d/0x100 [ 44.836532][ T4998] __x64_sys_setxattr+0xc4/0x160 [ 44.841460][ T4998] do_syscall_64+0x39/0xb0 [ 44.845854][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 44.851751][ T4998] RIP: 0033:0x7fc4bb0e37a9 [ 44.856157][ T4998] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 44.875848][ T4998] RSP: 002b:00007ffd36421658 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 44.884251][ T4998] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fc4bb0e37a9 setxattr("./file2", NULL, NULL, 0, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [