./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1118643654 <...> Warning: Permanently added '10.128.0.157' (ED25519) to the list of known hosts. execve("./syz-executor1118643654", ["./syz-executor1118643654"], 0x7ffff93d3cd0 /* 10 vars */) = 0 brk(NULL) = 0x555558a34000 brk(0x555558a34d00) = 0x555558a34d00 arch_prctl(ARCH_SET_FS, 0x555558a34380) = 0 set_tid_address(0x555558a34650) = 5224 set_robust_list(0x555558a34660, 24) = 0 rseq(0x555558a34ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1118643654", 4096) = 28 getrandom("\x68\x90\x89\xca\x23\x7f\xb1\x5d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555558a34d00 brk(0x555558a55d00) = 0x555558a55d00 brk(0x555558a56000) = 0x555558a56000 mprotect(0x7fba07f67000, 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 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb9ffa00000 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(0x7fb9ffa00000, 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 [ 71.956591][ T5224] loop0: detected capacity change from 0 to 4096 [ 71.999715][ T5224] ======================================================= [ 71.999715][ T5224] WARNING: The mand mount option has been deprecated and [ 71.999715][ T5224] and is ignored by this kernel. Remove the mand [ 71.999715][ T5224] option from the mount to silence this warning. [ 71.999715][ T5224] ======================================================= [ 72.037346][ T5224] 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_NOATIME|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) [ 72.064637][ T5224] ntfs3: loop0: Mark volume as dirty due to NTFS errors openat(AT_FDCWD, "./file0", O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC|O_SYNC|O_CLOEXEC|FASYNC, 000) = 4 [ 72.133379][ T5224] [ 72.135754][ T5224] ============================================ [ 72.141916][ T5224] WARNING: possible recursive locking detected [ 72.148082][ T5224] 6.12.0-rc2-syzkaller-00006-g87d6aab2389e #0 Not tainted [ 72.155200][ T5224] -------------------------------------------- [ 72.161347][ T5224] syz-executor111/5224 is trying to acquire lock: [ 72.167775][ T5224] ffff8880714d1e60 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 72.176269][ T5224] [ 72.176269][ T5224] but task is already holding lock: [ 72.183634][ T5224] ffff8880714d67d0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 72.192357][ T5224] [ 72.192357][ T5224] other info that might help us debug this: [ 72.200412][ T5224] Possible unsafe locking scenario: [ 72.200412][ T5224] [ 72.207857][ T5224] CPU0 [ 72.211134][ T5224] ---- [ 72.214409][ T5224] lock(&ni->ni_lock/4); [ 72.218763][ T5224] lock(&ni->ni_lock/4); [ 72.223102][ T5224] [ 72.223102][ T5224] *** DEADLOCK *** [ 72.223102][ T5224] [ 72.231243][ T5224] May be due to missing lock nesting notation [ 72.231243][ T5224] [ 72.239559][ T5224] 3 locks held by syz-executor111/5224: [ 72.245100][ T5224] #0: ffff88802e20e420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 72.254262][ T5224] #1: ffff8880714d6a68 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x89a/0x3590 [ 72.264466][ T5224] #2: ffff8880714d67d0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 72.273660][ T5224] [ 72.273660][ T5224] stack backtrace: [ 72.279643][ T5224] CPU: 1 UID: 0 PID: 5224 Comm: syz-executor111 Not tainted 6.12.0-rc2-syzkaller-00006-g87d6aab2389e #0 [ 72.290760][ T5224] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 72.300851][ T5224] Call Trace: [ 72.304153][ T5224] [ 72.307087][ T5224] dump_stack_lvl+0x241/0x360 [ 72.311877][ T5224] ? __pfx_dump_stack_lvl+0x10/0x10 [ 72.317081][ T5224] ? __pfx__printk+0x10/0x10 [ 72.321686][ T5224] ? lockdep_unlock+0x16a/0x300 [ 72.326552][ T5224] print_deadlock_bug+0x483/0x620 [ 72.331590][ T5224] validate_chain+0x15e2/0x5920 [ 72.336456][ T5224] ? __pfx_validate_chain+0x10/0x10 [ 72.341668][ T5224] ? stack_trace_save+0x118/0x1d0 [ 72.346724][ T5224] ? __pfx_stack_trace_save+0x10/0x10 [ 72.352126][ T5224] ? look_up_lock_class+0x77/0x170 [ 72.357342][ T5224] ? register_lock_class+0x102/0x980 [ 72.362662][ T5224] ? __pfx_register_lock_class+0x10/0x10 [ 72.368312][ T5224] ? mark_lock+0x9a/0x360 [ 72.372736][ T5224] __lock_acquire+0x1384/0x2050 [ 72.377609][ T5224] lock_acquire+0x1ed/0x550 [ 72.382125][ T5224] ? mi_read+0x2e1/0x5a0 [ 72.386399][ T5224] ? __pfx_lock_acquire+0x10/0x10 [ 72.391437][ T5224] ? __pfx___might_resched+0x10/0x10 [ 72.396738][ T5224] ? do_syscall_64+0xf3/0x230 [ 72.401420][ T5224] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.407509][ T5224] __mutex_lock+0x136/0xd70 [ 72.412017][ T5224] ? mi_read+0x2e1/0x5a0 [ 72.416268][ T5224] ? mi_read+0x1be/0x5a0 [ 72.420517][ T5224] ? mi_read+0x2e1/0x5a0 [ 72.424765][ T5224] ? __pfx___mutex_lock+0x10/0x10 [ 72.429794][ T5224] ? __up_read+0x2c2/0x6b0 [ 72.434218][ T5224] ? __pfx___up_read+0x10/0x10 [ 72.438990][ T5224] ? mi_init+0x78/0xe0 [ 72.443065][ T5224] mi_read+0x2e1/0x5a0 [ 72.447144][ T5224] ntfs_iget5+0x482/0x3940 [ 72.451583][ T5224] ? __pfx_ntfs_iget5+0x10/0x10 [ 72.456448][ T5224] ? dir_search_u+0x16a/0x3a0 [ 72.461137][ T5224] ? __kmalloc_cache_noprof+0x19c/0x2c0 [ 72.466706][ T5224] dir_search_u+0x2fe/0x3a0 [ 72.471233][ T5224] ? __pfx_dir_search_u+0x10/0x10 [ 72.476280][ T5224] ? __pfx_ntfs_nls_to_utf16+0x10/0x10 [ 72.481757][ T5224] ? ntfs_lookup+0x51/0x1f0 [ 72.486273][ T5224] ? rcu_is_watching+0x15/0xb0 [ 72.491052][ T5224] ? ntfs_lookup+0x51/0x1f0 [ 72.495567][ T5224] ? trace_kmem_cache_alloc+0x1f/0xc0 [ 72.500946][ T5224] ? kmem_cache_alloc_noprof+0x185/0x2a0 [ 72.506594][ T5224] ntfs_lookup+0x106/0x1f0 [ 72.511019][ T5224] ? __pfx_ntfs_lookup+0x10/0x10 [ 72.515963][ T5224] path_openat+0x11a7/0x3590 [ 72.520576][ T5224] ? __pfx_path_openat+0x10/0x10 [ 72.525529][ T5224] do_filp_open+0x235/0x490 [ 72.530041][ T5224] ? __pfx_do_filp_open+0x10/0x10 [ 72.535089][ T5224] ? _raw_spin_unlock+0x28/0x50 [ 72.539954][ T5224] ? alloc_fd+0x5a1/0x640 [ 72.544325][ T5224] do_sys_openat2+0x13e/0x1d0 [ 72.549012][ T5224] ? __pfx_do_sys_openat2+0x10/0x10 [ 72.554238][ T5224] ? lockdep_hardirqs_on+0x99/0x150 [ 72.559522][ T5224] ? _raw_spin_unlock_irq+0x2e/0x50 [ 72.564740][ T5224] ? ptrace_notify+0x279/0x380 [ 72.569524][ T5224] __x64_sys_openat+0x247/0x2a0 [ 72.574383][ T5224] ? __pfx___x64_sys_openat+0x10/0x10 [ 72.579762][ T5224] ? do_syscall_64+0x100/0x230 [ 72.584561][ T5224] do_syscall_64+0xf3/0x230 [ 72.589093][ T5224] ? clear_bhb_loop+0x35/0x90 [ 72.593773][ T5224] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.599694][ T5224] RIP: 0033:0x7fba07ed5639 [ 72.604120][ T5224] 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 [ 72.623771][ T5224] RSP: 002b:00007ffe6dce9ad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 openat(AT_FDCWD, "./file1", O_RDWR|O_CREAT, 0777) = -1 ENOENT (No such file or directory) exit_group(0) = ? +++ exited with 0 +++ [ 72.632283][ T5224] RAX: ffffffffffff