Warning: Permanently added '10.128.0.218' (ED25519) to the list of known hosts. executing program [ 34.940517][ T4222] loop0: detected capacity change from 0 to 64 [ 34.951003][ T4222] [ 34.951557][ T4222] ============================================ [ 34.952844][ T4222] WARNING: possible recursive locking detected [ 34.954200][ T4222] 6.1.84-syzkaller #0 Not tainted [ 34.955335][ T4222] -------------------------------------------- [ 34.956646][ T4222] syz-executor282/4222 is trying to acquire lock: [ 34.958015][ T4222] ffff0000d2e140b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 34.960248][ T4222] [ 34.960248][ T4222] but task is already holding lock: [ 34.961938][ T4222] ffff0000d2e140b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 34.964151][ T4222] [ 34.964151][ T4222] other info that might help us debug this: [ 34.965918][ T4222] Possible unsafe locking scenario: [ 34.965918][ T4222] [ 34.967621][ T4222] CPU0 [ 34.968320][ T4222] ---- [ 34.969043][ T4222] lock(&tree->tree_lock/1); [ 34.970078][ T4222] lock(&tree->tree_lock/1); [ 34.971074][ T4222] [ 34.971074][ T4222] *** DEADLOCK *** [ 34.971074][ T4222] [ 34.972954][ T4222] May be due to missing lock nesting notation [ 34.972954][ T4222] [ 34.974746][ T4222] 5 locks held by syz-executor282/4222: [ 34.975975][ T4222] #0: ffff0000d2e12460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x244/0x914 [ 34.978042][ T4222] #1: ffff0000d82a9628 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: generic_file_write_iter+0x88/0x2b4 [ 34.980692][ T4222] #2: ffff0000d82a9478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 34.983088][ T4222] #3: ffff0000d2e140b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 34.985256][ T4222] #4: ffff0000d82a80f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 34.987840][ T4222] [ 34.987840][ T4222] stack backtrace: [ 34.989111][ T4222] CPU: 0 PID: 4222 Comm: syz-executor282 Not tainted 6.1.84-syzkaller #0 [ 34.991021][ T4222] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 34.993217][ T4222] Call trace: [ 34.993927][ T4222] dump_backtrace+0x1c8/0x1f4 [ 34.994939][ T4222] show_stack+0x2c/0x3c [ 34.995853][ T4222] dump_stack_lvl+0x108/0x170 [ 34.996974][ T4222] dump_stack+0x1c/0x5c [ 34.997913][ T4222] __lock_acquire+0x6310/0x7680 [ 34.999003][ T4222] lock_acquire+0x26c/0x7cc [ 34.999973][ T4222] __mutex_lock_common+0x190/0x21a0 [ 35.001219][ T4222] mutex_lock_nested+0x38/0x44 [ 35.002252][ T4222] hfs_find_init+0x148/0x1c8 [ 35.003253][ T4222] hfs_extend_file+0x270/0x1130 [ 35.004385][ T4222] hfs_bmap_reserve+0xd0/0x3b4 [ 35.005419][ T4222] __hfs_ext_write_extent+0x1a0/0x468 [ 35.006575][ T4222] __hfs_ext_cache_extent+0x84/0x754 [ 35.007779][ T4222] hfs_extend_file+0x29c/0x1130 [ 35.008845][ T4222] hfs_get_block+0x3b8/0x9e0 [ 35.009861][ T4222] __block_write_begin_int+0x340/0x13b4 [ 35.011091][ T4222] cont_write_begin+0x5c0/0x7d8 [ 35.012281][ T4222] hfs_write_begin+0x98/0xe4 [ 35.013263][ T4222] generic_perform_write+0x278/0x55c [ 35.014475][ T4222] __generic_file_write_iter+0x168/0x388 [ 35.015757][ T4222] generic_file_write_iter+0xb8/0x2b4 [ 35.016950][ T4222] vfs_write+0x610/0x914 [ 35.017834][ T4222] ksys_write+0x15c/0x26c [ 35.018764][ T4222] __arm64_sys_write+0x7c/0x90 [ 35.019915][ T4222] invoke_syscall+0x98/0x2c0 [ 35.020942][ T4222] el0_svc_common+0x138/0x258 [ 35.022042][ T4222] do_el0_svc+0x64/0x218 [ 35.022987][ T4222] el0_svc+0x58/0x168 [ 35.023820][ T4222] el0t_64_sync_handler+0x84/0xf0 [ 35.024851][ T4222] el0t_64_sync+0x18c/0x190