./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1632964308 <...> Warning: Permanently added '10.128.0.64' (ED25519) to the list of known hosts. execve("./syz-executor1632964308", ["./syz-executor1632964308"], 0x7fff385de790 /* 10 vars */) = 0 brk(NULL) = 0x55555659a000 brk(0x55555659ad00) = 0x55555659ad00 arch_prctl(ARCH_SET_FS, 0x55555659a380) = 0 set_tid_address(0x55555659a650) = 5085 set_robust_list(0x55555659a660, 24) = 0 rseq(0x55555659aca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1632964308", 4096) = 28 getrandom("\x11\x81\xdb\x23\x39\x26\x29\xad", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555659ad00 brk(0x5555565bbd00) = 0x5555565bbd00 brk(0x5555565bc000) = 0x5555565bc000 mprotect(0x7f3376cae000, 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) = 0x7f336e600000 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(0x7f336e600000, 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 [ 78.278431][ T5085] loop0: detected capacity change from 0 to 4096 [ 78.303026][ T5085] ======================================================= [ 78.303026][ T5085] WARNING: The mand mount option has been deprecated and [ 78.303026][ T5085] and is ignored by this kernel. Remove the mand [ 78.303026][ T5085] option from the mount to silence this warning. [ 78.303026][ T5085] ======================================================= [ 78.341738][ T5085] 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.371942][ T5085] ntfs3: loop0: Mark volume as dirty due to NTFS errors [ 78.391974][ T5085] [ 78.394508][ T5085] ============================================ [ 78.400640][ T5085] WARNING: possible recursive locking detected [ 78.406776][ T5085] 6.9.0-rc5-syzkaller-00329-g5d12ed4bea43 #0 Not tainted [ 78.413961][ T5085] -------------------------------------------- [ 78.420094][ T5085] syz-executor163/5085 is trying to acquire lock: [ 78.426609][ T5085] ffff88807a5f1e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 78.435132][ T5085] [ 78.435132][ T5085] but task is already holding lock: [ 78.442483][ T5085] ffff88807a5f6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 78.451213][ T5085] [ 78.451213][ T5085] other info that might help us debug this: [ 78.459261][ T5085] Possible unsafe locking scenario: [ 78.459261][ T5085] [ 78.466713][ T5085] CPU0 [ 78.469989][ T5085] ---- [ 78.473258][ T5085] lock(&ni->ni_lock/4); [ 78.477607][ T5085] lock(&ni->ni_lock/4); [ 78.481952][ T5085] [ 78.481952][ T5085] *** DEADLOCK *** [ 78.481952][ T5085] [ 78.490090][ T5085] May be due to missing lock nesting notation [ 78.490090][ T5085] [ 78.498492][ T5085] 2 locks held by syz-executor163/5085: [ 78.504031][ T5085] #0: ffff88807a5f6ae0 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 [ 78.514000][ T5085] #1: ffff88807a5f6840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf9/0x1f0 [ 78.523179][ T5085] [ 78.523179][ T5085] stack backtrace: [ 78.529064][ T5085] CPU: 0 PID: 5085 Comm: syz-executor163 Not tainted 6.9.0-rc5-syzkaller-00329-g5d12ed4bea43 #0 [ 78.539477][ T5085] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 78.549530][ T5085] Call Trace: [ 78.552812][ T5085] [ 78.555741][ T5085] dump_stack_lvl+0x241/0x360 [ 78.560456][ T5085] ? __pfx_dump_stack_lvl+0x10/0x10 [ 78.565671][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.571324][ T5085] ? print_deadlock_bug+0x479/0x620 [ 78.576541][ T5085] ? _find_first_zero_bit+0xd4/0x100 [ 78.581885][ T5085] validate_chain+0x15c1/0x58e0 [ 78.586767][ T5085] ? __pfx_validate_chain+0x10/0x10 [ 78.591981][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.597632][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.603281][ T5085] ? look_up_lock_class+0x77/0x160 [ 78.608405][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.614052][ T5085] ? register_lock_class+0x102/0x980 [ 78.619343][ T5085] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 78.625328][ T5085] ? __pfx_register_lock_class+0x10/0x10 [ 78.630966][ T5085] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 78.637304][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.642947][ T5085] ? mark_lock+0x9a/0x350 [ 78.647291][ T5085] __lock_acquire+0x1346/0x1fd0 [ 78.652163][ T5085] lock_acquire+0x1ed/0x550 [ 78.656720][ T5085] ? mi_read+0x2e1/0x5a0 [ 78.660977][ T5085] ? __pfx_lock_acquire+0x10/0x10 [ 78.666009][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.671673][ T5085] ? __pfx___might_resched+0x10/0x10 [ 78.677009][ T5085] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 78.683095][ T5085] __mutex_lock+0x136/0xd70 [ 78.687621][ T5085] ? mi_read+0x2e1/0x5a0 [ 78.691875][ T5085] ? mi_read+0x1be/0x5a0 [ 78.696122][ T5085] ? mi_read+0x2e1/0x5a0 [ 78.700368][ T5085] ? __pfx___mutex_lock+0x10/0x10 [ 78.705396][ T5085] ? __up_read+0x2c2/0x6b0 [ 78.709826][ T5085] ? __pfx___up_read+0x10/0x10 [ 78.714599][ T5085] ? mi_init+0x78/0xe0 [ 78.718671][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.724405][ T5085] ? rcu_is_watching+0x15/0xb0 [ 78.729174][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.734824][ T5085] mi_read+0x2e1/0x5a0 [ 78.738989][ T5085] ntfs_iget5+0x493/0x3a80 [ 78.743434][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.749077][ T5085] ? indx_find+0x90f/0xbf0 [ 78.753522][ T5085] ? __pfx_ntfs_iget5+0x10/0x10 [ 78.758383][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.764026][ T5085] ? kmalloc_trace+0x1db/0x360 [ 78.768796][ T5085] ? dir_search_u+0x16a/0x3a0 [ 78.773484][ T5085] dir_search_u+0x2fe/0x3a0 [ 78.777997][ T5085] ? __pfx_dir_search_u+0x10/0x10 [ 78.783026][ T5085] ? __pfx_ntfs_nls_to_utf16+0x10/0x10 [ 78.788499][ T5085] ? rcu_is_watching+0x15/0xb0 [ 78.793297][ T5085] ? ntfs_lookup+0x51/0x1f0 [ 78.797806][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.803450][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.809134][ T5085] ? ntfs_lookup+0x51/0x1f0 [ 78.813673][ T5085] ntfs_lookup+0x106/0x1f0 [ 78.818104][ T5085] __lookup_slow+0x28e/0x3f0 [ 78.822709][ T5085] ? __pfx___lookup_slow+0x10/0x10 [ 78.827844][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.833488][ T5085] ? try_to_unlazy+0x35c/0x5b0 [ 78.838261][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.843905][ T5085] lookup_slow+0x53/0x70 [ 78.848159][ T5085] walk_component+0x2e1/0x410 [ 78.852843][ T5085] path_lookupat+0x16f/0x450 [ 78.857444][ T5085] filename_lookup+0x256/0x610 [ 78.862219][ T5085] ? __pfx_filename_lookup+0x10/0x10 [ 78.867527][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.873170][ T5085] ? strncpy_from_user+0x1a4/0x2f0 [ 78.878297][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.883941][ T5085] ? getname_flags+0x1fe/0x4f0 [ 78.888717][ T5085] user_path_at_empty+0x42/0x60 [ 78.893581][ T5085] path_getxattr+0xde/0x420 [ 78.898092][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.903769][ T5085] ? __pfx_path_getxattr+0x10/0x10 [ 78.908881][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.914522][ T5085] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 78.920515][ T5085] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 78.926887][ T5085] ? _raw_spin_unlock_irq+0x23/0x50 [ 78.932124][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.937955][ T5085] ? lockdep_hardirqs_on+0x99/0x150 [ 78.943170][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.948828][ T5085] ? _raw_spin_unlock_irq+0x2e/0x50 [ 78.954043][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.959694][ T5085] ? ptrace_notify+0x279/0x380 [ 78.964465][ T5085] ? __pfx_ptrace_notify+0x10/0x10 [ 78.969586][ T5085] ? do_syscall_64+0x102/0x240 [ 78.974409][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.980058][ T5085] do_syscall_64+0xf5/0x240 [ 78.984581][ T5085] ? srso_alias_return_thunk+0x5/0xfbef5 [ 78.990230][ T5085] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 78.996130][ T5085] RIP: 0033:0x7f3376c1c639 [ 79.000547][ T5085] 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 getxattr("./file1", NULL, NULL, 0) = -1 EINVAL (Invalid argument) exit_group(0) = ? +++ exited with 0 +++ [ 79.020189][ T5085] RSP: 002b:00007ffdc0a9eb28 EFLA