./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2780014719 <...> Warning: Permanently added '10.128.0.251' (ED25519) to the list of known hosts. execve("./syz-executor2780014719", ["./syz-executor2780014719"], 0x7ffff8910da0 /* 10 vars */) = 0 brk(NULL) = 0x555583ec5000 brk(0x555583ec5d00) = 0x555583ec5d00 arch_prctl(ARCH_SET_FS, 0x555583ec5380) = 0 set_tid_address(0x555583ec5650) = 5093 set_robust_list(0x555583ec5660, 24) = 0 rseq(0x555583ec5ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2780014719", 4096) = 28 getrandom("\xff\x08\x95\x90\xa8\x27\xcf\x3f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555583ec5d00 brk(0x555583ee6d00) = 0x555583ee6d00 brk(0x555583ee7000) = 0x555583ee7000 mprotect(0x7f3b4bccf000, 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) = 0x7f3b43600000 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(0x7f3b43600000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 73.371337][ T5093] loop0: detected capacity change from 0 to 4096 [ 73.414292][ T5093] ======================================================= [ 73.414292][ T5093] WARNING: The mand mount option has been deprecated and [ 73.414292][ T5093] and is ignored by this kernel. Remove the mand [ 73.414292][ T5093] option from the mount to silence this warning. [ 73.414292][ T5093] ======================================================= [ 73.452025][ T5093] 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 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "./file0", O_RDWR|O_CREAT|O_NONBLOCK|O_NOFOLLOW, 000) = 4 [ 73.473512][ T5093] ntfs3: loop0: Mark volume as dirty due to NTFS errors ftruncate(4, 0) = 0 [ 73.549218][ T5093] [ 73.551578][ T5093] ============================================ [ 73.557721][ T5093] WARNING: possible recursive locking detected [ 73.563864][ T5093] 6.9.0-rc4-next-20240418-syzkaller #0 Not tainted [ 73.570372][ T5093] -------------------------------------------- [ 73.576532][ T5093] syz-executor278/5093 is trying to acquire lock: [ 73.583031][ T5093] ffff88807a549e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 73.591502][ T5093] [ 73.591502][ T5093] but task is already holding lock: [ 73.598858][ T5093] ffff88807a54e840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 73.607589][ T5093] [ 73.607589][ T5093] other info that might help us debug this: [ 73.615638][ T5093] Possible unsafe locking scenario: [ 73.615638][ T5093] [ 73.623079][ T5093] CPU0 [ 73.626363][ T5093] ---- [ 73.629635][ T5093] lock(&ni->ni_lock/4); [ 73.633969][ T5093] lock(&ni->ni_lock/4); [ 73.638304][ T5093] [ 73.638304][ T5093] *** DEADLOCK *** [ 73.638304][ T5093] [ 73.646438][ T5093] May be due to missing lock nesting notation [ 73.646438][ T5093] [ 73.654766][ T5093] 2 locks held by syz-executor278/5093: [ 73.660310][ T5093] #0: ffff88807a54eae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 73.670605][ T5093] #1: ffff88807a54e840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 73.679800][ T5093] [ 73.679800][ T5093] stack backtrace: [ 73.685725][ T5093] CPU: 1 PID: 5093 Comm: syz-executor278 Not tainted 6.9.0-rc4-next-20240418-syzkaller #0 [ 73.695618][ T5093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 73.705674][ T5093] Call Trace: [ 73.708956][ T5093] [ 73.711890][ T5093] dump_stack_lvl+0x241/0x360 [ 73.717027][ T5093] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.722227][ T5093] ? print_deadlock_bug+0x479/0x620 [ 73.727519][ T5093] ? _find_first_zero_bit+0xd4/0x100 [ 73.732809][ T5093] validate_chain+0x15c1/0x58e0 [ 73.737696][ T5093] ? __pfx_validate_chain+0x10/0x10 [ 73.742921][ T5093] ? look_up_lock_class+0x77/0x160 [ 73.748041][ T5093] ? register_lock_class+0x102/0x980 [ 73.753357][ T5093] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 73.759354][ T5093] ? __pfx_register_lock_class+0x10/0x10 [ 73.764993][ T5093] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 73.771324][ T5093] ? mark_lock+0x9a/0x350 [ 73.775739][ T5093] __lock_acquire+0x1346/0x1fd0 [ 73.780599][ T5093] lock_acquire+0x1ed/0x550 [ 73.785117][ T5093] ? mi_read+0x2e1/0x5a0 [ 73.789367][ T5093] ? __pfx_lock_acquire+0x10/0x10 [ 73.794390][ T5093] ? __pfx___might_resched+0x10/0x10 [ 73.799675][ T5093] ? vfs_fstatat+0x135/0x190 [ 73.804290][ T5093] ? __x64_sys_newfstatat+0x125/0x1b0 [ 73.809667][ T5093] __mutex_lock+0x136/0xd70 [ 73.814616][ T5093] ? mi_read+0x2e1/0x5a0 [ 73.818877][ T5093] ? mi_read+0x1be/0x5a0 [ 73.823119][ T5093] ? mi_read+0x2e1/0x5a0 [ 73.827364][ T5093] ? __pfx___mutex_lock+0x10/0x10 [ 73.832408][ T5093] ? __up_read+0x2c2/0x6b0 [ 73.836842][ T5093] ? __pfx___up_read+0x10/0x10 [ 73.841630][ T5093] ? mi_init+0x78/0xe0 [ 73.845964][ T5093] mi_read+0x2e1/0x5a0 [ 73.850230][ T5093] ntfs_iget5+0x49a/0x3b10 [ 73.854674][ T5093] ? indx_find+0x90f/0xbf0 [ 73.859100][ T5093] ? __pfx_ntfs_iget5+0x10/0x10 [ 73.863984][ T5093] ? dir_search_u+0x16a/0x3a0 [ 73.868798][ T5093] ? kmalloc_trace_noprof+0x19c/0x2b0 [ 73.874176][ T5093] dir_search_u+0x2fe/0x3a0 [ 73.878687][ T5093] ? __pfx_dir_search_u+0x10/0x10 [ 73.883713][ T5093] ? __pfx_ntfs_nls_to_utf16+0x10/0x10 [ 73.889172][ T5093] ? ntfs_lookup+0x51/0x1f0 [ 73.893712][ T5093] ? rcu_is_watching+0x15/0xb0 [ 73.898506][ T5093] ? ntfs_lookup+0x51/0x1f0 [ 73.903023][ T5093] ? trace_kmem_cache_alloc+0x1f/0xc0 [ 73.908405][ T5093] ? kmem_cache_alloc_noprof+0x185/0x290 [ 73.914055][ T5093] ntfs_lookup+0x106/0x1f0 [ 73.918474][ T5093] __lookup_slow+0x28c/0x3f0 [ 73.923068][ T5093] ? __pfx___lookup_slow+0x10/0x10 [ 73.928184][ T5093] ? try_to_unlazy+0x35c/0x5b0 [ 73.932953][ T5093] lookup_slow+0x53/0x70 [ 73.937206][ T5093] walk_component+0x2e1/0x410 [ 73.941885][ T5093] path_lookupat+0x16f/0x450 [ 73.946498][ T5093] filename_lookup+0x256/0x610 [ 73.951269][ T5093] ? __pfx_filename_lookup+0x10/0x10 [ 73.956569][ T5093] ? __might_fault+0xaa/0x120 [ 73.961263][ T5093] vfs_statx+0x105/0x4e0 [ 73.965510][ T5093] ? __pfx_vfs_statx+0x10/0x10 [ 73.970294][ T5093] vfs_fstatat+0x135/0x190 [ 73.974733][ T5093] __x64_sys_newfstatat+0x125/0x1b0 [ 73.979960][ T5093] ? __pfx___x64_sys_newfstatat+0x10/0x10 [ 73.985813][ T5093] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 73.992162][ T5093] ? do_syscall_64+0x102/0x240 [ 73.996950][ T5093] do_syscall_64+0xf5/0x240 [ 74.001459][ T5093] ? clear_bhb_loop+0x35/0x90 [ 74.006192][ T5093] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.012092][ T5093] RIP: 0033:0x7f3b4bc3d639 [ 74.016506][ T5093] 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 [ 74.036109][ T5093] RSP: 002b:00007ffd7ac324c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 newfstatat(AT_FDCWD, "./file1", NULL, 0) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 74.044527][ T5093] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f3b4bc