./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1747798132 <...> Warning: Permanently added '10.128.1.22' (ED25519) to the list of known hosts. execve("./syz-executor1747798132", ["./syz-executor1747798132"], 0x7fffeed92480 /* 10 vars */) = 0 brk(NULL) = 0x55555555d000 brk(0x55555555dd00) = 0x55555555dd00 arch_prctl(ARCH_SET_FS, 0x55555555d380) = 0 set_tid_address(0x55555555d650) = 5058 set_robust_list(0x55555555d660, 24) = 0 rseq(0x55555555dca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1747798132", 4096) = 28 getrandom("\x18\x3a\x83\xfc\xfb\x4f\x66\xd3", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555555dd00 brk(0x55555557ed00) = 0x55555557ed00 brk(0x55555557f000) = 0x55555557f000 mprotect(0x7f284cb87000, 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) = 0x7f28446b8000 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(0x7f28446b8000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 mount("/dev/loop0", "./file1", "ntfs3", MS_NOEXEC|MS_SYNCHRONOUS|MS_DIRSYNC|MS_REC|MS_I_VERSION, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 56.563208][ T5058] loop0: detected capacity change from 0 to 4096 [ 56.585568][ T5058] ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512). open("./file2", O_WRONLY|O_CREAT|O_NONBLOCK|O_DIRECT|O_NOFOLLOW|O_NOATIME|O_CLOEXEC, 000) = 4 [ 56.679662][ T5058] ntfs3: loop0: ino=5, "/" ntfs_iget5 [ 56.685325][ T5058] [ 56.687645][ T5058] ============================================ [ 56.693785][ T5058] WARNING: possible recursive locking detected [ 56.699917][ T5058] 6.6.0-syzkaller-12401-g8f6f76a6a29f #0 Not tainted [ 56.706567][ T5058] -------------------------------------------- [ 56.712708][ T5058] syz-executor174/5058 is trying to acquire lock: [ 56.719109][ T5058] ffff88807d450100 (&ni->ni_lock#3){+.+.}-{3:3}, at: ntfs_set_state+0x1ff/0x6b0 [ 56.728190][ T5058] [ 56.728190][ T5058] but task is already holding lock: [ 56.735547][ T5058] ffff88807d456fa0 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x172/0x1090 [ 56.744683][ T5058] [ 56.744683][ T5058] other info that might help us debug this: [ 56.752731][ T5058] Possible unsafe locking scenario: [ 56.752731][ T5058] [ 56.760430][ T5058] CPU0 [ 56.763696][ T5058] ---- [ 56.766957][ T5058] lock(&ni->ni_lock#3); [ 56.771283][ T5058] lock(&ni->ni_lock#3); [ 56.775604][ T5058] [ 56.775604][ T5058] *** DEADLOCK *** [ 56.775604][ T5058] [ 56.783729][ T5058] May be due to missing lock nesting notation [ 56.783729][ T5058] [ 56.794525][ T5058] 3 locks held by syz-executor174/5058: [ 56.800260][ T5058] #0: ffff88807712e418 (sb_writers#9){.+.+}-{0:0}, at: do_sys_ftruncate+0x258/0x390 [ 56.809782][ T5058] #1: ffff88807d457240 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: do_truncate+0x20c/0x300 [ 56.820238][ T5058] #2: ffff88807d456fa0 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x172/0x1090 [ 56.830159][ T5058] [ 56.830159][ T5058] stack backtrace: [ 56.836031][ T5058] CPU: 0 PID: 5058 Comm: syz-executor174 Not tainted 6.6.0-syzkaller-12401-g8f6f76a6a29f #0 [ 56.846082][ T5058] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 56.856214][ T5058] Call Trace: [ 56.859481][ T5058] [ 56.862400][ T5058] dump_stack_lvl+0x1e7/0x2d0 [ 56.867089][ T5058] ? nf_tcp_handle_invalid+0x650/0x650 [ 56.872549][ T5058] ? print_deadlock_bug+0x462/0x600 [ 56.877738][ T5058] ? _find_first_zero_bit+0xd4/0x100 [ 56.883010][ T5058] __lock_acquire+0x6a81/0x7f70 [ 56.887865][ T5058] ? prb_read_valid+0xa9/0xf0 [ 56.892628][ T5058] ? verify_lock_unused+0x140/0x140 [ 56.898004][ T5058] ? verify_lock_unused+0x140/0x140 [ 56.903500][ T5058] ? mark_lock+0x9a/0x340 [ 56.907947][ T5058] ? __lock_acquire+0x1345/0x7f70 [ 56.913068][ T5058] ? tick_nohz_tick_stopped+0x1/0xb0 [ 56.918356][ T5058] lock_acquire+0x1e3/0x520 [ 56.922915][ T5058] ? ntfs_set_state+0x1ff/0x6b0 [ 56.927759][ T5058] ? read_lock_is_recursive+0x20/0x20 [ 56.933124][ T5058] ? mark_lock+0x9a/0x340 [ 56.937443][ T5058] ? __might_sleep+0xc0/0xc0 [ 56.942035][ T5058] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 56.948007][ T5058] ? print_irqtrace_events+0x220/0x220 [ 56.953481][ T5058] __mutex_lock+0x136/0xd60 [ 56.958000][ T5058] ? ntfs_set_state+0x1ff/0x6b0 [ 56.962856][ T5058] ? seqcount_lockdep_reader_access+0x1d7/0x220 [ 56.969104][ T5058] ? ktime_get_real_ts64+0x460/0x460 [ 56.974404][ T5058] ? ntfs_set_state+0x1ff/0x6b0 [ 56.979289][ T5058] ? mutex_lock_nested+0x20/0x20 [ 56.984836][ T5058] ? ktime_get_coarse_real_ts64+0x10b/0x120 [ 56.990738][ T5058] ? inode_set_ctime_current+0x209/0x2f0 [ 56.996464][ T5058] ntfs_set_state+0x1ff/0x6b0 [ 57.001161][ T5058] ? ntfs_mark_rec_free+0x2b0/0x2b0 [ 57.006391][ T5058] ? simple_inode_init_ts+0x25/0xb0 [ 57.011607][ T5058] ? make_bad_inode+0x7c/0x110 [ 57.016375][ T5058] ntfs_iget5+0x3f0/0x3b70 [ 57.020794][ T5058] ? verify_lock_unused+0x140/0x140 [ 57.026078][ T5058] ? mi_enum_attr+0x60d/0x9e0 [ 57.030836][ T5058] ? mi_find_attr+0x29b/0x2b0 [ 57.035501][ T5058] ? ni_find_attr+0x390/0x8d0 [ 57.040203][ T5058] ? check_index_root+0x6d0/0x6d0 [ 57.045220][ T5058] ? ni_load_mi+0x110/0x110 [ 57.049728][ T5058] ni_update_parent+0x943/0xdc0 [ 57.054572][ T5058] ? read_lock_is_recursive+0x20/0x20 [ 57.059934][ T5058] ? mi_enum_attr+0x60d/0x9e0 [ 57.064602][ T5058] ? ni_write_inode+0x1090/0x1090 [ 57.069616][ T5058] ? mi_find_attr+0x29b/0x2b0 [ 57.074286][ T5058] ni_write_inode+0xe60/0x1090 [ 57.079052][ T5058] ? ni_is_dirty+0x190/0x190 [ 57.083651][ T5058] ? inode_set_ctime_current+0x209/0x2f0 [ 57.089295][ T5058] ? block_truncate_page+0x162/0x9c0 [ 57.094586][ T5058] ntfs3_setattr+0x724/0xae0 [ 57.099181][ T5058] ? ntfs_getattr+0x2e0/0x2e0 [ 57.103850][ T5058] ? evm_inode_setattr+0x100/0x740 [ 57.108959][ T5058] ? bpf_lsm_inode_setattr+0x9/0x10 [ 57.114156][ T5058] ? security_inode_setattr+0xd7/0x130 [ 57.119621][ T5058] ? ntfs_getattr+0x2e0/0x2e0 [ 57.124415][ T5058] notify_change+0xb99/0xe60 [ 57.129010][ T5058] do_truncate+0x220/0x300 [ 57.133509][ T5058] ? put_page_bootmem+0x2e0/0x2e0 [ 57.138795][ T5058] do_sys_ftruncate+0x2f3/0x390 [ 57.143730][ T5058] do_syscall_64+0x44/0x110 [ 57.148317][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 57.154316][ T5058] RIP: 0033:0x7f284caf55f9 [ 57.158724][ T5058] 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 [ 57.178320][ T5058] RSP: 002b:00007ffe6c44eef8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d [ 57.186725][ T5058] RAX: ffffffffffffffda RBX: 00007ffe6c44f0c8 RCX: 00007f284caf55f9 [ 57.194688][ T5058] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 [ 57.202736][ T5058] RBP: 00007f284cb87610 R08: 0000000000000000 R09: 00007ffe6c44f0c8 [ 57.210783][ T5058] R10: 000000000001f20a R11: 0000000000000246 R12: 0000000000000001 [ 57.218857][ T5058] R13: 00007ffe6c44f0b8 R14: 0000000000000001 R15: 0000000000000001 [ 57.226825][ T5058] ftruncate(4, 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 57.230061][ T5058]