./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2188530846 <...> Warning: Permanently added '10.128.1.19' (ED25519) to the list of known hosts. execve("./syz-executor2188530846", ["./syz-executor2188530846"], 0x7ffd652f1610 /* 10 vars */) = 0 brk(NULL) = 0x55557c1a4000 brk(0x55557c1a4d00) = 0x55557c1a4d00 arch_prctl(ARCH_SET_FS, 0x55557c1a4380) = 0 set_tid_address(0x55557c1a4650) = 5087 set_robust_list(0x55557c1a4660, 24) = 0 rseq(0x55557c1a4ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2188530846", 4096) = 28 getrandom("\xeb\x3c\xeb\x2b\xb5\x5e\xa6\x35", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557c1a4d00 brk(0x55557c1c5d00) = 0x55557c1c5d00 brk(0x55557c1c6000) = 0x55557c1c6000 mprotect(0x7fe276259000, 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) = 0x7fe26dc00000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 32768) = 32768 munmap(0x7fe26dc00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", 0777) = 0 [ 80.153231][ T5087] loop0: detected capacity change from 0 to 64 [ 80.192291][ T5087] ======================================================= mount("/dev/loop0", "\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", "hfs", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME|MS_STRICTATIME|MS_LAZYTIME, "uid=0x0000000000000000,file_umask=00000000000000000001340,iocharset=iso8859-6,codepage=iso8859-6,cre"...) = 0 openat(AT_FDCWD, "\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", O_RDONLY|O_DIRECTORY) = 3 chdir("\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 80.192291][ T5087] WARNING: The mand mount option has been deprecated and [ 80.192291][ T5087] and is ignored by this kernel. Remove the mand [ 80.192291][ T5087] option from the mount to silence this warning. [ 80.192291][ T5087] ======================================================= openat(AT_FDCWD, "cpu.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 80.369690][ T5087] [ 80.372095][ T5087] ============================================ [ 80.378332][ T5087] WARNING: possible recursive locking detected [ 80.384494][ T5087] 6.9.0-syzkaller-07387-g8c06da67d0bd #0 Not tainted [ 80.391199][ T5087] -------------------------------------------- [ 80.397464][ T5087] syz-executor218/5087 is trying to acquire lock: [ 80.405186][ T5087] ffff888050f120b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 80.414786][ T5087] [ 80.414786][ T5087] but task is already holding lock: [ 80.422310][ T5087] ffff888050f120b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 80.431679][ T5087] [ 80.431679][ T5087] other info that might help us debug this: [ 80.439860][ T5087] Possible unsafe locking scenario: [ 80.439860][ T5087] [ 80.447498][ T5087] CPU0 [ 80.450818][ T5087] ---- [ 80.454202][ T5087] lock(&tree->tree_lock/1); [ 80.458996][ T5087] lock(&tree->tree_lock/1); [ 80.463744][ T5087] [ 80.463744][ T5087] *** DEADLOCK *** [ 80.463744][ T5087] [ 80.472201][ T5087] May be due to missing lock nesting notation [ 80.472201][ T5087] [ 80.481431][ T5087] 5 locks held by syz-executor218/5087: [ 80.487502][ T5087] #0: ffff888011418420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x227/0xc50 [ 80.496555][ T5087] #1: ffff888023d082a8 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 [ 80.508180][ T5087] #2: ffff888023d080f8 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 80.519118][ T5087] #3: ffff888050f120b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 80.530212][ T5087] #4: ffff8880236b80f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 80.541817][ T5087] [ 80.541817][ T5087] stack backtrace: [ 80.547824][ T5087] CPU: 1 PID: 5087 Comm: syz-executor218 Not tainted 6.9.0-syzkaller-07387-g8c06da67d0bd #0 [ 80.558086][ T5087] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 80.568788][ T5087] Call Trace: [ 80.572208][ T5087] [ 80.575368][ T5087] dump_stack_lvl+0x241/0x360 [ 80.580128][ T5087] ? __pfx_dump_stack_lvl+0x10/0x10 [ 80.585388][ T5087] ? print_deadlock_bug+0x479/0x620 [ 80.590735][ T5087] ? _find_first_zero_bit+0xd4/0x100 [ 80.596101][ T5087] validate_chain+0x15c1/0x58e0 [ 80.601207][ T5087] ? __lock_acquire+0x1346/0x1fd0 [ 80.606261][ T5087] ? __pfx_validate_chain+0x10/0x10 [ 80.611621][ T5087] ? mark_lock+0x9a/0x350 [ 80.616086][ T5087] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 80.622135][ T5087] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 80.628511][ T5087] ? mark_lock+0x9a/0x350 [ 80.632866][ T5087] __lock_acquire+0x1346/0x1fd0 [ 80.637761][ T5087] lock_acquire+0x1ed/0x550 [ 80.642756][ T5087] ? hfs_find_init+0x16e/0x1f0 [ 80.647563][ T5087] ? __pfx_lock_acquire+0x10/0x10 [ 80.652644][ T5087] ? generic_file_write_iter+0xaf/0x310 [ 80.658290][ T5087] ? vfs_write+0xa2d/0xc50 [ 80.662838][ T5087] ? __pfx___might_resched+0x10/0x10 [ 80.668185][ T5087] __mutex_lock+0x136/0xd70 [ 80.672840][ T5087] ? hfs_find_init+0x16e/0x1f0 [ 80.677731][ T5087] ? hfs_find_init+0x16e/0x1f0 [ 80.682528][ T5087] ? __pfx___mutex_lock+0x10/0x10 [ 80.687613][ T5087] ? trace_kmalloc+0x1f/0xd0 [ 80.692221][ T5087] ? __kmalloc+0x251/0x4a0 [ 80.696925][ T5087] hfs_find_init+0x16e/0x1f0 [ 80.701582][ T5087] hfs_extend_file+0x31b/0x1450 [ 80.706495][ T5087] ? __pfx_hfs_extend_file+0x10/0x10 [ 80.712006][ T5087] ? __mutex_trylock_common+0x183/0x2e0 [ 80.717748][ T5087] ? __pfx___mutex_trylock_common+0x10/0x10 [ 80.723870][ T5087] ? rcu_is_watching+0x15/0xb0 [ 80.728672][ T5087] ? hfs_brec_find+0x197/0x580 [ 80.733479][ T5087] hfs_bmap_reserve+0xd9/0x400 [ 80.738290][ T5087] __hfs_ext_write_extent+0x22e/0x4f0 [ 80.743823][ T5087] __hfs_ext_cache_extent+0x6a/0x990 [ 80.749334][ T5087] ? hfs_find_init+0x16e/0x1f0 [ 80.754178][ T5087] hfs_extend_file+0x344/0x1450 [ 80.759062][ T5087] ? __pfx_hfs_extend_file+0x10/0x10 [ 80.764610][ T5087] ? clean_bdev_aliases+0x667/0x860 [ 80.769838][ T5087] ? __pfx_clean_bdev_aliases+0x10/0x10 [ 80.775394][ T5087] hfs_get_block+0x3e4/0xb60 [ 80.781469][ T5087] ? __pfx_hfs_get_block+0x10/0x10 [ 80.786623][ T5087] ? create_empty_buffers+0x53e/0x740 [ 80.792037][ T5087] ? folio_batch_add_and_move+0x165/0x2b0 [ 80.797875][ T5087] __block_write_begin_int+0x50c/0x1a70 [ 80.803472][ T5087] ? __pfx_hfs_get_block+0x10/0x10 [ 80.808613][ T5087] ? __pfx___block_write_begin_int+0x10/0x10 [ 80.814898][ T5087] ? __pfx_hfs_get_block+0x10/0x10 [ 80.820045][ T5087] block_write_begin+0x9b/0x1e0 [ 80.825052][ T5087] cont_write_begin+0x645/0x890 [ 80.830042][ T5087] ? fault_in_readable+0x165/0x2b0 [ 80.835252][ T5087] ? __pfx_cont_write_begin+0x10/0x10 [ 80.840843][ T5087] ? fault_in_readable+0x1a6/0x2b0 [ 80.846077][ T5087] ? __pfx_fault_in_readable+0x10/0x10 [ 80.851557][ T5087] hfs_write_begin+0x8a/0xd0 [ 80.856243][ T5087] ? __pfx_hfs_get_block+0x10/0x10 [ 80.861378][ T5087] generic_perform_write+0x322/0x640 [ 80.866840][ T5087] ? __pfx_generic_perform_write+0x10/0x10 [ 80.872656][ T5087] ? __generic_file_write_iter+0x105/0x230 [ 80.878530][ T5087] generic_file_write_iter+0xaf/0x310 [ 80.884245][ T5087] vfs_write+0xa2d/0xc50 [ 80.888795][ T5087] ? __pfx_generic_file_write_iter+0x10/0x10 [ 80.894806][ T5087] ? __pfx_vfs_write+0x10/0x10 [ 80.899604][ T5087] ? lockdep_hardirqs_on+0x99/0x150 [ 80.904830][ T5087] ? __fdget_pos+0x272/0x320 [ 80.909471][ T5087] ksys_write+0x1a0/0x2c0 [ 80.913840][ T5087] ? __pfx_ksys_write+0x10/0x10 [ 80.918789][ T5087] ? do_syscall_64+0x102/0x240 [ 80.923651][ T5087] do_syscall_64+0xf5/0x240 [ 80.928172][ T5087] ? clear_bhb_loop+0x35/0x90 [ 80.933062][ T5087] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.938972][ T5087] RIP: 0033:0x7fe2761e6a39 [ 80.943407][ T5087] 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 [ 80.964074][ T5087] RSP: 002b:00007ffd55082688 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 80.972776][ T5087] RAX: ffffffffffffffda RBX: 00007ffd55082858 RCX: 00007fe2761e6a39 [ 80.980773][ T5087] RDX: 000000000208e24b RSI: 00000000200001c0 RDI: 0000000000000004 [ 80.988787][ T5087] RBP: 00007fe276259610 R08: 0000000000000000 R09: 00007ffd55082858 [ 80.996766][ T5087] R10: 00000000000002ee R11: 0000000000000246 R12: 0000000000000001 [ 81.004738][ T5087] R13: 00007ffd55082848 R14: 0000000000000001 R15: 0000000000000001 [ 81.012896][ T5087]