./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1477547897 <...> Warning: Permanently added '10.128.0.77' (ED25519) to the list of known hosts. execve("./syz-executor1477547897", ["./syz-executor1477547897"], 0x7ffe690e2070 /* 10 vars */) = 0 brk(NULL) = 0x55558ece3000 brk(0x55558ece3d00) = 0x55558ece3d00 arch_prctl(ARCH_SET_FS, 0x55558ece3380) = 0 set_tid_address(0x55558ece3650) = 5062 set_robust_list(0x55558ece3660, 24) = 0 rseq(0x55558ece3ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1477547897", 4096) = 28 getrandom("\xc0\xb0\xda\x21\x63\x92\xf2\x6b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558ece3d00 brk(0x55558ed04d00) = 0x55558ed04d00 brk(0x55558ed05000) = 0x55558ed05000 mprotect(0x7f0b1c622000, 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) = 0x7f0b14000000 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(0x7f0b14000000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 75.452478][ T5062] loop0: detected capacity change from 0 to 64 mount("/dev/loop0", "./file1", "hfs", MS_REC|MS_POSIXACL, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "./file2", O_RDWR|O_CREAT|O_TRUNC|O_NONBLOCK|O_SYNC|O_DIRECT|O_NOATIME, 000) = 4 openat(AT_FDCWD, "memory.current", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 [ 75.500993][ T5062] hfs: unable to locate alternate MDB [ 75.506616][ T5062] hfs: continuing without an alternate MDB [ 75.534306][ T28] audit: type=1800 audit(1713113153.659:2): pid=5062 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="syz-executor147" name="file2" dev="loop0" ino=19 res=0 errno=0 [ 75.562169][ T5062] [ 75.565006][ T5062] ============================================ [ 75.571314][ T5062] WARNING: possible recursive locking detected [ 75.577739][ T5062] 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted [ 75.584610][ T5062] -------------------------------------------- [ 75.590763][ T5062] syz-executor147/5062 is trying to acquire lock: [ 75.597255][ T5062] ffff888023e740b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 75.606614][ T5062] [ 75.606614][ T5062] but task is already holding lock: [ 75.613990][ T5062] ffff888023e740b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 75.623866][ T5062] [ 75.623866][ T5062] other info that might help us debug this: [ 75.632548][ T5062] Possible unsafe locking scenario: [ 75.632548][ T5062] [ 75.640335][ T5062] CPU0 [ 75.643654][ T5062] ---- [ 75.647036][ T5062] lock(&tree->tree_lock/1); [ 75.651851][ T5062] lock(&tree->tree_lock/1); [ 75.656653][ T5062] [ 75.656653][ T5062] *** DEADLOCK *** [ 75.656653][ T5062] [ 75.665054][ T5062] May be due to missing lock nesting notation [ 75.665054][ T5062] [ 75.673415][ T5062] 5 locks held by syz-executor147/5062: [ 75.679492][ T5062] #0: ffff888023606420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 [ 75.688444][ T5062] #1: ffff888022280fa8 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 [ 75.699780][ T5062] #2: ffff888022280df8 (&HFS_I(inode)->extents_lock#2){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 75.710742][ T5062] #3: ffff888023e740b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 75.720630][ T5062] #4: ffff8880222800f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 75.732056][ T5062] [ 75.732056][ T5062] stack backtrace: [ 75.737961][ T5062] CPU: 1 PID: 5062 Comm: syz-executor147 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 [ 75.748320][ T5062] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 75.758647][ T5062] Call Trace: [ 75.761942][ T5062] [ 75.764893][ T5062] dump_stack_lvl+0x241/0x360 [ 75.769639][ T5062] ? __pfx_dump_stack_lvl+0x10/0x10 [ 75.774855][ T5062] ? print_deadlock_bug+0x479/0x620 [ 75.780110][ T5062] ? _find_first_zero_bit+0xd4/0x100 [ 75.785517][ T5062] validate_chain+0x15c1/0x58e0 [ 75.790518][ T5062] ? __lock_acquire+0x1346/0x1fd0 [ 75.795590][ T5062] ? __pfx_validate_chain+0x10/0x10 [ 75.800911][ T5062] ? mark_lock+0x9a/0x350 [ 75.805290][ T5062] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 75.811274][ T5062] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 75.817603][ T5062] ? mark_lock+0x9a/0x350 [ 75.821946][ T5062] __lock_acquire+0x1346/0x1fd0 [ 75.826806][ T5062] lock_acquire+0x1e4/0x530 [ 75.831307][ T5062] ? hfs_find_init+0x16e/0x1f0 [ 75.836079][ T5062] ? __pfx_lock_acquire+0x10/0x10 [ 75.841186][ T5062] ? generic_file_write_iter+0xaf/0x310 [ 75.846789][ T5062] ? vfs_write+0xa84/0xcb0 [ 75.851227][ T5062] ? __pfx___might_resched+0x10/0x10 [ 75.856539][ T5062] __mutex_lock+0x136/0xd70 [ 75.861046][ T5062] ? hfs_find_init+0x16e/0x1f0 [ 75.865832][ T5062] ? hfs_find_init+0x16e/0x1f0 [ 75.870688][ T5062] ? __pfx___mutex_lock+0x10/0x10 [ 75.875822][ T5062] ? trace_kmalloc+0x1f/0xb0 [ 75.880618][ T5062] ? __kmalloc+0x251/0x4a0 [ 75.885139][ T5062] hfs_find_init+0x16e/0x1f0 [ 75.889940][ T5062] hfs_extend_file+0x31b/0x1450 [ 75.894833][ T5062] ? __pfx_hfs_extend_file+0x10/0x10 [ 75.900134][ T5062] ? __mutex_trylock_common+0x183/0x2e0 [ 75.905686][ T5062] ? __pfx___might_resched+0x10/0x10 [ 75.910997][ T5062] ? __pfx___mutex_trylock_common+0x10/0x10 [ 75.916948][ T5062] ? rcu_is_watching+0x15/0xb0 [ 75.921745][ T5062] ? hfs_brec_find+0x197/0x580 [ 75.926631][ T5062] hfs_bmap_reserve+0xd9/0x400 [ 75.931856][ T5062] __hfs_ext_write_extent+0x22e/0x4f0 [ 75.937430][ T5062] __hfs_ext_cache_extent+0x6a/0x990 [ 75.942912][ T5062] ? hfs_find_init+0x16e/0x1f0 [ 75.947697][ T5062] hfs_extend_file+0x344/0x1450 [ 75.952557][ T5062] ? filemap_get_folios_tag+0x1a9/0x900 [ 75.958224][ T5062] ? __pfx_hfs_extend_file+0x10/0x10 [ 75.963624][ T5062] ? filemap_get_folios_tag+0x1a9/0x900 [ 75.969193][ T5062] ? __pfx_filemap_get_folios_tag+0x10/0x10 [ 75.975188][ T5062] ? clean_bdev_aliases+0x63a/0x800 [ 75.980530][ T5062] hfs_get_block+0x3e4/0xb60 [ 75.985179][ T5062] ? __pfx_hfs_get_block+0x10/0x10 [ 75.990329][ T5062] ? create_empty_buffers+0x53e/0x740 [ 75.995715][ T5062] ? folio_batch_add_and_move+0x165/0x2b0 [ 76.001465][ T5062] __block_write_begin_int+0x50c/0x1a70 [ 76.007079][ T5062] ? __pfx_hfs_get_block+0x10/0x10 [ 76.012831][ T5062] ? __pfx___block_write_begin_int+0x10/0x10 [ 76.018829][ T5062] ? __pfx_hfs_get_block+0x10/0x10 [ 76.024051][ T5062] block_write_begin+0x9b/0x1e0 [ 76.028919][ T5062] cont_write_begin+0x645/0x890 [ 76.034082][ T5062] ? fault_in_readable+0x165/0x2b0 [ 76.039304][ T5062] ? __pfx_cont_write_begin+0x10/0x10 [ 76.044686][ T5062] ? fault_in_readable+0x1a6/0x2b0 [ 76.049818][ T5062] ? __pfx_fault_in_readable+0x10/0x10 [ 76.055289][ T5062] hfs_write_begin+0x8a/0xd0 [ 76.059883][ T5062] ? __pfx_hfs_get_block+0x10/0x10 [ 76.065079][ T5062] generic_perform_write+0x322/0x640 [ 76.070408][ T5062] ? __pfx_generic_perform_write+0x10/0x10 [ 76.076250][ T5062] ? __generic_file_write_iter+0x105/0x230 [ 76.082074][ T5062] generic_file_write_iter+0xaf/0x310 [ 76.087633][ T5062] vfs_write+0xa84/0xcb0 [ 76.092051][ T5062] ? __pfx_vfs_write+0x10/0x10 [ 76.096857][ T5062] ? lockdep_hardirqs_on+0x99/0x150 [ 76.102085][ T5062] ? __fdget_pos+0x272/0x320 [ 76.106685][ T5062] ksys_write+0x1a0/0x2c0 [ 76.111016][ T5062] ? __pfx_ksys_write+0x10/0x10 [ 76.115865][ T5062] ? do_syscall_64+0x10a/0x240 [ 76.120632][ T5062] ? syscall_trace_enter+0x5f/0x150 [ 76.125829][ T5062] do_syscall_64+0xfb/0x240 [ 76.130364][ T5062] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 76.136274][ T5062] RIP: 0033:0x7f0b1c5af679 [ 76.140706][ T5062] 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 [ 76.161372][ T5062] RSP: 002b:00007ffc1df27de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 76.169812][ T5062] RAX: ffffffffffffffda RBX: 00007ffc1df27fb8 RCX: 00007f0b1c5af679 [ 76.177894][ T5062] RDX: 000000000208e24b RSI: 00000000200004c0 RDI: 0000000000000005 [ 76.185971][ T5062] RBP: 00007f0b1c622610 R08: 0000000000000000 R09: 00007ffc1df27fb8 [ 76.194048][ T5062] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 76.202707][ T5062] R13: 00007ffc1df27fa8 R14: 0000000000000001 R15: 0000000000000001 [ 76.210701][ T5062]