./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor861010943 <...> Warning: Permanently added '10.128.1.71' (ED25519) to the list of known hosts. execve("./syz-executor861010943", ["./syz-executor861010943"], 0x7ffef8d833d0 /* 10 vars */) = 0 brk(NULL) = 0x55557af08000 brk(0x55557af08d00) = 0x55557af08d00 arch_prctl(ARCH_SET_FS, 0x55557af08380) = 0 set_tid_address(0x55557af08650) = 5072 set_robust_list(0x55557af08660, 24) = 0 rseq(0x55557af08ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor861010943", 4096) = 27 getrandom("\x18\x7a\xd1\xb7\xf5\x65\xc6\x0f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557af08d00 brk(0x55557af29d00) = 0x55557af29d00 brk(0x55557af2a000) = 0x55557af2a000 mprotect(0x7f2ca833a000, 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) = 0x7f2c9fe00000 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(0x7f2c9fe00000, 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 [ 60.200550][ T5072] loop0: detected capacity change from 0 to 64 [ 60.223113][ T5072] ======================================================= [ 60.223113][ T5072] WARNING: The mand mount option has been deprecated and [ 60.223113][ T5072] and is ignored by this kernel. Remove the mand [ 60.223113][ T5072] option from the mount to silence this warning. 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, "dir_umask=00000000000000000000004,file_umask=00000000000000000001340,iocharset=macgreek,codepage=iso"...) = 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) creat("./bus", 000) = 4 [ 60.223113][ T5072] ======================================================= [ 60.368532][ T5072] [ 60.370882][ T5072] ============================================ [ 60.377009][ T5072] WARNING: possible recursive locking detected [ 60.383136][ T5072] 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 Not tainted [ 60.390134][ T5072] -------------------------------------------- [ 60.396259][ T5072] syz-executor861/5072 is trying to acquire lock: [ 60.402734][ T5072] ffff88807e97c0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 60.412043][ T5072] [ 60.412043][ T5072] but task is already holding lock: [ 60.419392][ T5072] ffff88807e97c0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 60.428679][ T5072] [ 60.428679][ T5072] other info that might help us debug this: [ 60.436729][ T5072] Possible unsafe locking scenario: [ 60.436729][ T5072] [ 60.444154][ T5072] CPU0 [ 60.447412][ T5072] ---- [ 60.450669][ T5072] lock(&tree->tree_lock/1); [ 60.455335][ T5072] lock(&tree->tree_lock/1); [ 60.459995][ T5072] [ 60.459995][ T5072] *** DEADLOCK *** [ 60.459995][ T5072] [ 60.468136][ T5072] May be due to missing lock nesting notation [ 60.468136][ T5072] [ 60.476428][ T5072] 5 locks held by syz-executor861/5072: [ 60.481947][ T5072] #0: ffff88807e97a420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 [ 60.490975][ T5072] #1: ffff8880244b9628 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 [ 60.502263][ T5072] #2: ffff8880244b9478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 60.512939][ T5072] #3: ffff88807e97c0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 60.522664][ T5072] #4: ffff8880244b80f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 60.533859][ T5072] [ 60.533859][ T5072] stack backtrace: [ 60.539724][ T5072] CPU: 1 PID: 5072 Comm: syz-executor861 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 [ 60.550113][ T5072] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 60.560146][ T5072] Call Trace: [ 60.563408][ T5072] [ 60.566320][ T5072] dump_stack_lvl+0x241/0x360 [ 60.570998][ T5072] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.576179][ T5072] ? print_deadlock_bug+0x479/0x620 [ 60.581358][ T5072] ? _find_first_zero_bit+0xd4/0x100 [ 60.586630][ T5072] validate_chain+0x15c1/0x58e0 [ 60.591466][ T5072] ? __lock_acquire+0x1346/0x1fd0 [ 60.596483][ T5072] ? __pfx_validate_chain+0x10/0x10 [ 60.601674][ T5072] ? mark_lock+0x9a/0x350 [ 60.605982][ T5072] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.611940][ T5072] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.618245][ T5072] ? mark_lock+0x9a/0x350 [ 60.622550][ T5072] __lock_acquire+0x1346/0x1fd0 [ 60.628178][ T5072] lock_acquire+0x1ed/0x550 [ 60.632686][ T5072] ? hfs_find_init+0x16e/0x1f0 [ 60.637537][ T5072] ? __pfx_lock_acquire+0x10/0x10 [ 60.642539][ T5072] ? generic_file_write_iter+0xaf/0x310 [ 60.648064][ T5072] ? vfs_write+0xa84/0xcb0 [ 60.652459][ T5072] ? __pfx___might_resched+0x10/0x10 [ 60.657730][ T5072] __mutex_lock+0x136/0xd70 [ 60.662212][ T5072] ? hfs_find_init+0x16e/0x1f0 [ 60.666958][ T5072] ? hfs_find_init+0x16e/0x1f0 [ 60.671703][ T5072] ? __pfx___mutex_lock+0x10/0x10 [ 60.676706][ T5072] ? trace_kmalloc+0x1f/0xd0 [ 60.681274][ T5072] ? __kmalloc+0x251/0x4a0 [ 60.685687][ T5072] hfs_find_init+0x16e/0x1f0 [ 60.690273][ T5072] hfs_extend_file+0x31b/0x1450 [ 60.695103][ T5072] ? __pfx_hfs_extend_file+0x10/0x10 [ 60.700365][ T5072] ? __mutex_trylock_common+0x183/0x2e0 [ 60.705892][ T5072] ? __pfx___mutex_trylock_common+0x10/0x10 [ 60.711770][ T5072] ? rcu_is_watching+0x15/0xb0 [ 60.716511][ T5072] ? hfs_brec_find+0x197/0x580 [ 60.721343][ T5072] hfs_bmap_reserve+0xd9/0x400 [ 60.726090][ T5072] __hfs_ext_write_extent+0x22e/0x4f0 [ 60.731442][ T5072] __hfs_ext_cache_extent+0x6a/0x990 [ 60.736706][ T5072] ? hfs_find_init+0x16e/0x1f0 [ 60.741450][ T5072] hfs_extend_file+0x344/0x1450 [ 60.746282][ T5072] ? __pfx_hfs_extend_file+0x10/0x10 [ 60.751552][ T5072] ? clean_bdev_aliases+0x667/0x860 [ 60.756744][ T5072] ? __pfx_clean_bdev_aliases+0x10/0x10 [ 60.762300][ T5072] hfs_get_block+0x3e4/0xb60 [ 60.766872][ T5072] ? __pfx_hfs_get_block+0x10/0x10 [ 60.771964][ T5072] ? create_empty_buffers+0x53e/0x740 [ 60.777325][ T5072] ? folio_batch_add_and_move+0x165/0x2b0 [ 60.783056][ T5072] __block_write_begin_int+0x50c/0x1a70 [ 60.788718][ T5072] ? __pfx_hfs_get_block+0x10/0x10 [ 60.793805][ T5072] ? __pfx___block_write_begin_int+0x10/0x10 [ 60.799764][ T5072] ? __pfx_hfs_get_block+0x10/0x10 [ 60.804854][ T5072] block_write_begin+0x9b/0x1e0 [ 60.809683][ T5072] cont_write_begin+0x645/0x890 [ 60.814515][ T5072] ? fault_in_readable+0x165/0x2b0 [ 60.819609][ T5072] ? __pfx_cont_write_begin+0x10/0x10 [ 60.824965][ T5072] ? fault_in_readable+0x1a6/0x2b0 [ 60.830061][ T5072] ? __pfx_fault_in_readable+0x10/0x10 [ 60.835506][ T5072] hfs_write_begin+0x8a/0xd0 [ 60.840087][ T5072] ? __pfx_hfs_get_block+0x10/0x10 [ 60.845179][ T5072] generic_perform_write+0x322/0x640 [ 60.850450][ T5072] ? __pfx_generic_perform_write+0x10/0x10 [ 60.856275][ T5072] ? __generic_file_write_iter+0x105/0x230 [ 60.862164][ T5072] generic_file_write_iter+0xaf/0x310 [ 60.867528][ T5072] vfs_write+0xa84/0xcb0 [ 60.871756][ T5072] ? __pfx_vfs_write+0x10/0x10 [ 60.876503][ T5072] ? lockdep_hardirqs_on+0x99/0x150 [ 60.881685][ T5072] ? __fdget_pos+0x272/0x320 [ 60.886256][ T5072] ksys_write+0x1a0/0x2c0 [ 60.890566][ T5072] ? __pfx_ksys_write+0x10/0x10 [ 60.895392][ T5072] ? do_syscall_64+0x102/0x240 [ 60.900241][ T5072] do_syscall_64+0xf5/0x240 [ 60.904728][ T5072] ? clear_bhb_loop+0x35/0x90 [ 60.909387][ T5072] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.915258][ T5072] RIP: 0033:0x7f2ca82c7a39 [ 60.919654][ T5072] 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 [ 60.939237][ T5072] RSP: 002b:00007ffe7ffb83e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 60.947626][ T5072] RAX: ffffffffffffffda RBX: 00007f2ca831004b RCX: 00007f2ca82c7a39 [ 60.955574][ T5072] RDX: 0000003e03000000 RSI: 0000000020000200 RDI: 0000000000000004 [ 60.963533][ T5072] RBP: 00007f2ca833a610 R08: 0000000000000000 R09: 00007ffe7ffb85b8 [ 60.971480][ T5072] R10: 00000000000002db R11: 0000000000000246 R12: 0000000000000001 [ 60.979431][ T5072] R13: 00007ffe7ffb85a8 R14: 0000000000000001 R15: 0000000000000001 [ 60.987382][ T5072]