./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1642280383 <...> Warning: Permanently added '10.128.1.154' (ED25519) to the list of known hosts. execve("./syz-executor1642280383", ["./syz-executor1642280383"], 0x7fff6dbe8d50 /* 10 vars */) = 0 brk(NULL) = 0x55555a5fd000 brk(0x55555a5fdd00) = 0x55555a5fdd00 arch_prctl(ARCH_SET_FS, 0x55555a5fd380) = 0 set_tid_address(0x55555a5fd650) = 5088 set_robust_list(0x55555a5fd660, 24) = 0 rseq(0x55555a5fdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1642280383", 4096) = 28 getrandom("\x38\xf5\x74\x0c\x58\xa6\x8f\xdc", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555a5fdd00 brk(0x55555a61ed00) = 0x55555a61ed00 brk(0x55555a61f000) = 0x55555a61f000 mprotect(0x7f3225cd4000, 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) = 0x7f321d600000 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(0x7f321d600000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 [ 78.525846][ T5088] loop0: detected capacity change from 0 to 4096 [ 78.548426][ T5088] ======================================================= [ 78.548426][ T5088] WARNING: The mand mount option has been deprecated and [ 78.548426][ T5088] and is ignored by this kernel. Remove the mand [ 78.548426][ T5088] option from the mount to silence this warning. mkdir("./file0", 0777) = 0 [ 78.548426][ T5088] ======================================================= [ 78.587700][ T5088] 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) truncate("./file0", 3) = 0 [ 78.627372][ T5088] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 78.645984][ T5088] [ 78.648325][ T5088] ============================================ [ 78.654459][ T5088] WARNING: possible recursive locking detected [ 78.660614][ T5088] 6.9.0-rc5-syzkaller-00296-g5eb4573ea63d #0 Not tainted [ 78.667620][ T5088] -------------------------------------------- [ 78.673769][ T5088] syz-executor164/5088 is trying to acquire lock: [ 78.680163][ T5088] ffff8880769f0860 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 78.688634][ T5088] [ 78.688634][ T5088] but task is already holding lock: [ 78.696000][ T5088] ffff88807699d980 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 78.704733][ T5088] [ 78.704733][ T5088] other info that might help us debug this: [ 78.712817][ T5088] Possible unsafe locking scenario: [ 78.712817][ T5088] [ 78.720279][ T5088] CPU0 [ 78.723557][ T5088] ---- [ 78.726835][ T5088] lock(&ni->ni_lock/4); [ 78.731180][ T5088] lock(&ni->ni_lock/4); [ 78.735740][ T5088] [ 78.735740][ T5088] *** DEADLOCK *** [ 78.735740][ T5088] [ 78.743899][ T5088] May be due to missing lock nesting notation [ 78.743899][ T5088] [ 78.752237][ T5088] 2 locks held by syz-executor164/5088: [ 78.757779][ T5088] #0: ffff88807699dc20 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 [ 78.767746][ T5088] #1: ffff88807699d980 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 78.776953][ T5088] [ 78.776953][ T5088] stack backtrace: [ 78.782839][ T5088] CPU: 0 PID: 5088 Comm: syz-executor164 Not tainted 6.9.0-rc5-syzkaller-00296-g5eb4573ea63d #0 [ 78.793258][ T5088] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 78.803351][ T5088] Call Trace: [ 78.806634][ T5088] [ 78.809568][ T5088] dump_stack_lvl+0x241/0x360 [ 78.814309][ T5088] ? __pfx_dump_stack_lvl+0x10/0x10 [ 78.819562][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.825235][ T5088] ? print_deadlock_bug+0x479/0x620 [ 78.830464][ T5088] ? _find_first_zero_bit+0xd4/0x100 [ 78.835777][ T5088] validate_chain+0x15c1/0x58e0 [ 78.840659][ T5088] ? __pfx_validate_chain+0x10/0x10 [ 78.845870][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.851514][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.857165][ T5088] ? look_up_lock_class+0x77/0x160 [ 78.862287][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.867930][ T5088] ? register_lock_class+0x102/0x980 [ 78.873223][ T5088] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 78.879206][ T5088] ? __pfx_register_lock_class+0x10/0x10 [ 78.884843][ T5088] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 78.891177][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.896830][ T5088] ? mark_lock+0x9a/0x350 [ 78.901177][ T5088] __lock_acquire+0x1346/0x1fd0 [ 78.906046][ T5088] lock_acquire+0x1ed/0x550 [ 78.910556][ T5088] ? mi_read+0x2e1/0x5a0 [ 78.914812][ T5088] ? __pfx_lock_acquire+0x10/0x10 [ 78.919839][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.925482][ T5088] ? __pfx___might_resched+0x10/0x10 [ 78.930802][ T5088] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 78.936978][ T5088] __mutex_lock+0x136/0xd70 [ 78.941487][ T5088] ? mi_read+0x2e1/0x5a0 [ 78.945772][ T5088] ? mi_read+0x1be/0x5a0 [ 78.950032][ T5088] ? mi_read+0x2e1/0x5a0 [ 78.954372][ T5088] ? __pfx___mutex_lock+0x10/0x10 [ 78.959415][ T5088] ? __up_read+0x2c2/0x6b0 [ 78.963852][ T5088] ? __pfx___up_read+0x10/0x10 [ 78.968631][ T5088] ? mi_init+0x78/0xe0 [ 78.972793][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.979044][ T5088] ? rcu_is_watching+0x15/0xb0 [ 78.983816][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.989484][ T5088] mi_read+0x2e1/0x5a0 [ 78.993570][ T5088] ntfs_iget5+0x493/0x3a80 [ 78.998015][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.003657][ T5088] ? indx_find+0x90f/0xbf0 [ 79.008092][ T5088] ? __pfx_ntfs_iget5+0x10/0x10 [ 79.012955][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.018685][ T5088] ? kmalloc_trace+0x1db/0x360 [ 79.023452][ T5088] ? dir_search_u+0x16a/0x3a0 [ 79.028222][ T5088] dir_search_u+0x2fe/0x3a0 [ 79.032738][ T5088] ? __pfx_dir_search_u+0x10/0x10 [ 79.037774][ T5088] ? __pfx_ntfs_nls_to_utf16+0x10/0x10 [ 79.043327][ T5088] ? rcu_is_watching+0x15/0xb0 [ 79.048096][ T5088] ? ntfs_lookup+0x51/0x1f0 [ 79.052621][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.058267][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.063907][ T5088] ? ntfs_lookup+0x51/0x1f0 [ 79.068417][ T5088] ntfs_lookup+0x106/0x1f0 [ 79.072840][ T5088] __lookup_slow+0x28e/0x3f0 [ 79.077439][ T5088] ? __pfx___lookup_slow+0x10/0x10 [ 79.082562][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.088201][ T5088] ? try_to_unlazy+0x35c/0x5b0 [ 79.092972][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.098705][ T5088] lookup_slow+0x53/0x70 [ 79.102964][ T5088] walk_component+0x2e1/0x410 [ 79.107652][ T5088] path_lookupat+0x16f/0x450 [ 79.112254][ T5088] filename_lookup+0x256/0x610 [ 79.117139][ T5088] ? __pfx_filename_lookup+0x10/0x10 [ 79.122442][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.128091][ T5088] ? strncpy_from_user+0x1a4/0x2f0 [ 79.133216][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.138946][ T5088] ? getname_flags+0x1fe/0x4f0 [ 79.143718][ T5088] user_path_at_empty+0x42/0x60 [ 79.148577][ T5088] path_getxattr+0xde/0x420 [ 79.153174][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.158815][ T5088] ? __pfx_path_getxattr+0x10/0x10 [ 79.163935][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.169585][ T5088] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 79.175575][ T5088] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 79.181910][ T5088] ? _raw_spin_unlock_irq+0x23/0x50 [ 79.187119][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.192761][ T5088] ? lockdep_hardirqs_on+0x99/0x150 [ 79.197971][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.203612][ T5088] ? _raw_spin_unlock_irq+0x2e/0x50 [ 79.208820][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.214463][ T5088] ? ptrace_notify+0x279/0x380 [ 79.219227][ T5088] ? __pfx_ptrace_notify+0x10/0x10 [ 79.224343][ T5088] ? do_syscall_64+0x102/0x240 [ 79.229120][ T5088] ? srso_alias_return_thunk+0x5/0xfbef5 [ 79.235035][ T5088] do_syscall_64+0xf5/0x240 [ 79.239559][ T5088] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.245477][ T5088] RIP: 0033:0x7f3225c42639 [ 79.249888][ T5088] 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 [ 79.269587][ T5088] RSP: 002b:00007ffd34886e38 EFLAGS: 00000246 ORIG_RAX: 00000000000000bf getxattr("./file1", NULL, NULL, 0) = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 79.278027][ T5088] RAX: ff