./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1075347621 <...> Warning: Permanently added '10.128.1.113' (ED25519) to the list of known hosts. execve("./syz-executor1075347621", ["./syz-executor1075347621"], 0x7ffd16acbca0 /* 10 vars */) = 0 brk(NULL) = 0x55557d9db000 brk(0x55557d9dbd00) = 0x55557d9dbd00 arch_prctl(ARCH_SET_FS, 0x55557d9db380) = 0 set_tid_address(0x55557d9db650) = 5818 set_robust_list(0x55557d9db660, 24) = 0 rseq(0x55557d9dbca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1075347621", 4096) = 28 getrandom("\x6f\x2d\x6e\x8d\x71\xa3\x77\xe3", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557d9dbd00 brk(0x55557d9fcd00) = 0x55557d9fcd00 brk(0x55557d9fd000) = 0x55557d9fd000 mprotect(0x7f3592c15000, 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 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f358a600000 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"..., 524288) = 524288 munmap(0x7f358a600000, 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 syzkaller login: [ 60.012650][ T5818] loop0: detected capacity change from 0 to 1024 mount("/dev/loop0", "./file0", "hfsplus", MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_MANDLOCK|MS_DIRSYNC|MS_SILENT|MS_POSIXACL|MS_RELATIME|MS_LAZYTIME, "\x62\x61\x72\x72\x69\x65\x72\x2c\x63\x72\x65\x61\x74\x6f\x72\x3d\x8d\xea\xaa\xb1\x2c\x66\x6f\x72\x63\x65\x2c\x6e\x6f\x62\x61\x72\x72\x69\x65\x72\x2c\x6e\x6f\x64\x65\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x63\x72\x65\x61\x74\x6f\x72\x3d\x01\x21\xd0\x80\x2c\x75\x69\x64\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x2c\x6e\x6f\x64\x65\x63\x6f\x6d\x70\x6f\x73\x65\x2c\x67\x69\x64"...) = 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) openat(AT_FDCWD, "cpu.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 60.055054][ T5818] ======================================================= [ 60.055054][ T5818] WARNING: The mand mount option has been deprecated and [ 60.055054][ T5818] and is ignored by this kernel. Remove the mand [ 60.055054][ T5818] option from the mount to silence this warning. [ 60.055054][ T5818] ======================================================= [ 60.130439][ T5818] [ 60.132770][ T5818] ============================================ [ 60.138894][ T5818] WARNING: possible recursive locking detected [ 60.145026][ T5818] 6.13.0-rc1-syzkaller-00182-gb8f52214c61a #0 Not tainted [ 60.152106][ T5818] -------------------------------------------- [ 60.158233][ T5818] syz-executor107/5818 is trying to acquire lock: [ 60.164620][ T5818] ffff88807eaac0b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfsplus_find_init+0x14a/0x1c0 [ 60.174297][ T5818] [ 60.174297][ T5818] but task is already holding lock: [ 60.181722][ T5818] ffff88807eaac0b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfsplus_find_init+0x14a/0x1c0 [ 60.191372][ T5818] [ 60.191372][ T5818] other info that might help us debug this: [ 60.199407][ T5818] Possible unsafe locking scenario: [ 60.199407][ T5818] [ 60.206833][ T5818] CPU0 [ 60.210089][ T5818] ---- [ 60.213345][ T5818] lock(&tree->tree_lock/1); [ 60.218006][ T5818] lock(&tree->tree_lock/1); [ 60.222664][ T5818] [ 60.222664][ T5818] *** DEADLOCK *** [ 60.222664][ T5818] [ 60.230782][ T5818] May be due to missing lock nesting notation [ 60.230782][ T5818] [ 60.239078][ T5818] 5 locks held by syz-executor107/5818: [ 60.244597][ T5818] #0: ffff88807eaaa420 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 [ 60.253455][ T5818] #1: ffff8880353d9df8 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: generic_file_write_iter+0x82/0x310 [ 60.264739][ T5818] #2: ffff8880353d9c08 (&hip->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x21b/0x1b70 [ 60.275067][ T5818] #3: ffff88807eaac0b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfsplus_find_init+0x14a/0x1c0 [ 60.285136][ T5818] #4: ffff88807b660108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x21b/0x1b70 [ 60.296593][ T5818] [ 60.296593][ T5818] stack backtrace: [ 60.302470][ T5818] CPU: 0 UID: 0 PID: 5818 Comm: syz-executor107 Not tainted 6.13.0-rc1-syzkaller-00182-gb8f52214c61a #0 [ 60.313567][ T5818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 60.323606][ T5818] Call Trace: [ 60.326867][ T5818] [ 60.329774][ T5818] dump_stack_lvl+0x241/0x360 [ 60.334435][ T5818] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.339612][ T5818] ? __pfx__printk+0x10/0x10 [ 60.344189][ T5818] ? lockdep_unlock+0x16a/0x300 [ 60.349024][ T5818] print_deadlock_bug+0x483/0x620 [ 60.354035][ T5818] validate_chain+0x15e2/0x5920 [ 60.358868][ T5818] ? mark_lock+0x9a/0x360 [ 60.363184][ T5818] ? __lock_acquire+0x1397/0x2100 [ 60.368194][ T5818] ? __pfx_validate_chain+0x10/0x10 [ 60.373387][ T5818] ? mark_lock+0x9a/0x360 [ 60.377700][ T5818] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.383660][ T5818] ? mark_lock+0x9a/0x360 [ 60.387971][ T5818] __lock_acquire+0x1397/0x2100 [ 60.392805][ T5818] lock_acquire+0x1ed/0x550 [ 60.397285][ T5818] ? hfsplus_find_init+0x14a/0x1c0 [ 60.402383][ T5818] ? __pfx_lock_acquire+0x10/0x10 [ 60.407390][ T5818] ? hfsplus_find_init+0x85/0x1c0 [ 60.412397][ T5818] ? hfsplus_file_extend+0x454/0x1b70 [ 60.417754][ T5818] ? __pfx___might_resched+0x10/0x10 [ 60.423020][ T5818] ? hfsplus_get_block+0x406/0x14f0 [ 60.428198][ T5818] ? __block_write_begin_int+0x50c/0x1a70 [ 60.433896][ T5818] ? cont_write_begin+0x6e2/0x9d0 [ 60.438901][ T5818] ? hfsplus_write_begin+0x68/0xb0 [ 60.443993][ T5818] ? generic_perform_write+0x344/0x6d0 [ 60.449427][ T5818] ? generic_file_write_iter+0xae/0x310 [ 60.454958][ T5818] ? vfs_write+0xaeb/0xd30 [ 60.459358][ T5818] ? ksys_write+0x18f/0x2b0 [ 60.463841][ T5818] ? do_syscall_64+0xf3/0x230 [ 60.468512][ T5818] __mutex_lock+0x1ac/0xee0 [ 60.472997][ T5818] ? hfsplus_find_init+0x14a/0x1c0 [ 60.478089][ T5818] ? hfsplus_find_init+0x14a/0x1c0 [ 60.483178][ T5818] ? __pfx___mutex_lock+0x10/0x10 [ 60.488185][ T5818] ? rcu_is_watching+0x15/0xb0 [ 60.492934][ T5818] ? __kmalloc_noprof+0x2a5/0x4c0 [ 60.497949][ T5818] ? hfsplus_find_init+0x85/0x1c0 [ 60.502959][ T5818] hfsplus_find_init+0x14a/0x1c0 [ 60.507878][ T5818] hfsplus_file_extend+0x454/0x1b70 [ 60.513062][ T5818] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 60.518677][ T5818] ? __pfx___mutex_trylock_common+0x10/0x10 [ 60.524551][ T5818] ? trace_contention_end+0x3c/0x120 [ 60.529815][ T5818] ? __mutex_lock+0x37f/0xee0 [ 60.534474][ T5818] ? hfsplus_brec_find+0x19d/0x570 [ 60.539564][ T5818] hfsplus_bmap_reserve+0x105/0x4e0 [ 60.544758][ T5818] __hfsplus_ext_write_extent+0x2a4/0x5c0 [ 60.550460][ T5818] __hfsplus_ext_cache_extent+0x84/0xe10 [ 60.556094][ T5818] hfsplus_file_extend+0x48c/0x1b70 [ 60.561281][ T5818] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 60.566898][ T5818] ? clean_bdev_aliases+0x654/0x7e0 [ 60.572076][ T5818] ? __pfx_clean_bdev_aliases+0x10/0x10 [ 60.577600][ T5818] hfsplus_get_block+0x406/0x14f0 [ 60.582612][ T5818] ? __pfx_hfsplus_get_block+0x10/0x10 [ 60.588051][ T5818] ? create_empty_buffers+0x53e/0x740 [ 60.593402][ T5818] __block_write_begin_int+0x50c/0x1a70 [ 60.598927][ T5818] ? irqentry_exit+0x63/0x90 [ 60.603500][ T5818] ? __pfx_hfsplus_get_block+0x10/0x10 [ 60.608942][ T5818] ? __pfx___block_write_begin_int+0x10/0x10 [ 60.614904][ T5818] cont_write_begin+0x6e2/0x9d0 [ 60.619739][ T5818] ? __pfx_cont_write_begin+0x10/0x10 [ 60.625088][ T5818] ? __pfx_fault_in_readable+0x10/0x10 [ 60.630528][ T5818] ? __mark_inode_dirty+0x3db/0xe90 [ 60.635709][ T5818] hfsplus_write_begin+0x68/0xb0 [ 60.640628][ T5818] ? __pfx_hfsplus_get_block+0x10/0x10 [ 60.646069][ T5818] generic_perform_write+0x344/0x6d0 [ 60.651335][ T5818] ? __pfx_generic_perform_write+0x10/0x10 [ 60.657121][ T5818] ? file_update_time+0x2ab/0x450 [ 60.662133][ T5818] ? __generic_file_write_iter+0x102/0x230 [ 60.667955][ T5818] generic_file_write_iter+0xae/0x310 [ 60.673309][ T5818] vfs_write+0xaeb/0xd30 [ 60.677536][ T5818] ? __pfx_generic_file_write_iter+0x10/0x10 [ 60.683496][ T5818] ? __pfx_vfs_write+0x10/0x10 [ 60.688244][ T5818] ? _raw_spin_unlock_irq+0x2e/0x50 [ 60.693424][ T5818] ? ptrace_notify+0x279/0x380 [ 60.698188][ T5818] ksys_write+0x18f/0x2b0 [ 60.702513][ T5818] ? __pfx_ksys_write+0x10/0x10 [ 60.707366][ T5818] ? exc_page_fault+0x590/0x8b0 [ 60.712208][ T5818] do_syscall_64+0xf3/0x230 [ 60.716712][ T5818] ? clear_bhb_loop+0x35/0x90 [ 60.721365][ T5818] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.727242][ T5818] RIP: 0033:0x7f3592ba0ab9 [ 60.731648][ T5818] 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.751236][ T5818] RSP: 002b:00007ffe9a7da1c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 60.759632][ T5818] RAX: ffffffffffffffda RBX: 00007f3592be905e RCX: 00007f3592ba0ab9 [ 60.767598][ T5818] RDX: 00000000ffffff37 RSI: 0000000020002ec0 RDI: 0000000000000004 [ 60.775556][ T5818] RBP: 706d6f6365646f6e R08: 0000000000000000 R09: 00000000000b25f8 [ 60.783506][ T5818] R10: 00007f3592c06884 R11: 0000000000000246 R12: 0000000000000001 [ 60.791471][ T5818] R13: 00007ffe9a7da398 R14: 0000000000000001 R15: 0000000000000001 [ 60.799427][ T5818] [ 65.112500][ T197] hfsplus: b-tree write err: -5, ino 4