Warning: Permanently added '10.128.1.39' (ED25519) to the list of known hosts. executing program [ 52.277743][ T3538] loop0: detected capacity change from 0 to 1024 [ 52.309227][ T3538] [ 52.311572][ T3538] ============================================ [ 52.317713][ T3538] WARNING: possible recursive locking detected [ 52.323838][ T3538] 6.1.39-syzkaller #0 Not tainted [ 52.328833][ T3538] -------------------------------------------- [ 52.334960][ T3538] syz-executor186/3538 is trying to acquire lock: [ 52.341348][ T3538] ffff888028c820b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x146/0x1c0 [ 52.350999][ T3538] [ 52.350999][ T3538] but task is already holding lock: [ 52.358344][ T3538] ffff888028c820b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x146/0x1c0 [ 52.367983][ T3538] [ 52.367983][ T3538] other info that might help us debug this: [ 52.376021][ T3538] Possible unsafe locking scenario: [ 52.376021][ T3538] [ 52.383452][ T3538] CPU0 [ 52.386710][ T3538] ---- [ 52.389969][ T3538] lock(&tree->tree_lock/1); [ 52.394633][ T3538] lock(&tree->tree_lock/1); [ 52.399294][ T3538] [ 52.399294][ T3538] *** DEADLOCK *** [ 52.399294][ T3538] [ 52.407417][ T3538] May be due to missing lock nesting notation [ 52.407417][ T3538] [ 52.415713][ T3538] 5 locks held by syz-executor186/3538: [ 52.421322][ T3538] #0: ffff888028c80460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x269/0xba0 [ 52.430179][ T3538] #1: ffff88807ad3a4c0 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x7f/0x310 [ 52.441472][ T3538] #2: ffff88807ad3a2c8 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 52.451803][ T3538] #3: ffff888028c820b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x146/0x1c0 [ 52.461875][ T3538] #4: ffff88807ad38108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 52.473329][ T3538] [ 52.473329][ T3538] stack backtrace: [ 52.479208][ T3538] CPU: 1 PID: 3538 Comm: syz-executor186 Not tainted 6.1.39-syzkaller #0 [ 52.487606][ T3538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 52.497642][ T3538] Call Trace: [ 52.500907][ T3538] [ 52.503824][ T3538] dump_stack_lvl+0x1e3/0x2cb [ 52.508502][ T3538] ? nf_tcp_handle_invalid+0x642/0x642 [ 52.513955][ T3538] ? panic+0x75d/0x75d [ 52.518012][ T3538] validate_chain+0x4726/0x58e0 [ 52.522857][ T3538] ? reacquire_held_locks+0x660/0x660 [ 52.528216][ T3538] ? mark_lock+0x9a/0x340 [ 52.532537][ T3538] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 52.538498][ T3538] ? mark_lock+0x9a/0x340 [ 52.542825][ T3538] __lock_acquire+0x125b/0x1f80 [ 52.547662][ T3538] lock_acquire+0x1f8/0x5a0 [ 52.552146][ T3538] ? hfsplus_find_init+0x146/0x1c0 [ 52.557243][ T3538] ? read_lock_is_recursive+0x10/0x10 [ 52.562594][ T3538] ? hfsplus_bmap_reserve+0x101/0x4e0 [ 52.567946][ T3538] ? __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 52.573822][ T3538] ? __might_sleep+0xb0/0xb0 [ 52.578398][ T3538] ? block_write_begin+0x98/0x1f0 [ 52.583403][ T3538] ? cont_write_begin+0x63f/0x880 [ 52.588408][ T3538] ? hfsplus_write_begin+0x86/0xd0 [ 52.593521][ T3538] ? generic_perform_write+0x2fc/0x5e0 [ 52.598968][ T3538] ? __generic_file_write_iter+0x176/0x400 [ 52.604759][ T3538] ? generic_file_write_iter+0xab/0x310 [ 52.610294][ T3538] ? vfs_write+0x7ae/0xba0 [ 52.614701][ T3538] ? ksys_write+0x19c/0x2c0 [ 52.619194][ T3538] ? do_syscall_64+0x3d/0xb0 [ 52.623775][ T3538] __mutex_lock_common+0x1d4/0x2520 [ 52.628955][ T3538] ? hfsplus_find_init+0x146/0x1c0 [ 52.634054][ T3538] ? hfsplus_find_init+0x146/0x1c0 [ 52.639147][ T3538] ? mutex_lock_io_nested+0x60/0x60 [ 52.644331][ T3538] ? hfsplus_find_init+0x81/0x1c0 [ 52.649338][ T3538] ? rcu_is_watching+0x11/0xb0 [ 52.654086][ T3538] ? hfsplus_find_init+0x81/0x1c0 [ 52.659091][ T3538] ? __kmalloc+0xe2/0x230 [ 52.663404][ T3538] mutex_lock_nested+0x17/0x20 [ 52.668153][ T3538] hfsplus_find_init+0x146/0x1c0 [ 52.673076][ T3538] hfsplus_file_extend+0x40a/0x1b10 [ 52.678257][ T3538] ? hfsplus_get_block+0x14e0/0x14e0 [ 52.683525][ T3538] ? __mutex_trylock_common+0x17e/0x2e0 [ 52.689056][ T3538] ? __might_sleep+0xb0/0xb0 [ 52.693654][ T3538] ? trace_raw_output_contention_end+0xd0/0xd0 [ 52.699795][ T3538] ? trace_contention_end+0x61/0x170 [ 52.705067][ T3538] ? hfsplus_brec_find+0x199/0x570 [ 52.710162][ T3538] hfsplus_bmap_reserve+0x101/0x4e0 [ 52.715375][ T3538] __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 52.721094][ T3538] __hfsplus_ext_cache_extent+0x84/0xe00 [ 52.726710][ T3538] ? mutex_lock_nested+0x17/0x20 [ 52.731631][ T3538] hfsplus_file_extend+0x435/0x1b10 [ 52.736809][ T3538] ? xas_find+0x378/0xaa0 [ 52.741128][ T3538] ? hfsplus_get_block+0x14e0/0x14e0 [ 52.746396][ T3538] ? find_lock_entries+0xd60/0xd60 [ 52.751540][ T3538] ? clean_bdev_aliases+0x7f1/0x910 [ 52.756730][ T3538] hfsplus_get_block+0x402/0x14e0 [ 52.761741][ T3538] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 52.767449][ T3538] ? create_page_buffers+0x24e/0x4b0 [ 52.772720][ T3538] __block_write_begin_int+0x544/0x1a30 [ 52.778256][ T3538] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 52.783958][ T3538] ? page_zero_new_buffers+0x650/0x650 [ 52.789403][ T3538] ? PageHeadHuge+0x8e/0x1c0 [ 52.793983][ T3538] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 52.799684][ T3538] block_write_begin+0x98/0x1f0 [ 52.804516][ T3538] ? cont_write_begin+0x622/0x880 [ 52.809529][ T3538] cont_write_begin+0x63f/0x880 [ 52.814375][ T3538] ? fault_in_readable+0x1c8/0x340 [ 52.819474][ T3538] ? generic_cont_expand_simple+0x2a0/0x2a0 [ 52.825358][ T3538] ? fault_in_readable+0x209/0x340 [ 52.830458][ T3538] ? fault_in_safe_writeable+0x250/0x250 [ 52.836103][ T3538] hfsplus_write_begin+0x86/0xd0 [ 52.841029][ T3538] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 52.846729][ T3538] generic_perform_write+0x2fc/0x5e0 [ 52.852006][ T3538] ? generic_file_direct_write+0x460/0x460 [ 52.857796][ T3538] ? __file_remove_privs+0x640/0x640 [ 52.863070][ T3538] ? generic_write_checks+0x15c/0x1c0 [ 52.868424][ T3538] ? clear_nonspinnable+0x60/0x60 [ 52.873435][ T3538] __generic_file_write_iter+0x176/0x400 [ 52.879058][ T3538] generic_file_write_iter+0xab/0x310 [ 52.884417][ T3538] vfs_write+0x7ae/0xba0 [ 52.888645][ T3538] ? file_end_write+0x250/0x250 [ 52.893488][ T3538] ? __fdget_pos+0x261/0x2f0 [ 52.898060][ T3538] ksys_write+0x19c/0x2c0 [ 52.902372][ T3538] ? print_irqtrace_events+0x210/0x210 [ 52.907813][ T3538] ? __ia32_sys_read+0x80/0x80 [ 52.912558][ T3538] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.918520][ T3538] ? lockdep_hardirqs_on+0x94/0x130 [ 52.923700][ T3538] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.929662][ T3538] do_syscall_64+0x3d/0xb0 [ 52.934064][ T3538] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.939946][ T3538] RIP: 0033:0x7f814c356639 [ 52.944350][ T3538] 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 [ 52.963934][ T3538] RSP: 002b:00007ffc45010b58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 52.972329][ T3538] RAX: ffffffffffffffda RBX: 00007ffc45010d28 RCX: 00007f814c356639 [ 52.980283][ T3538] RDX: 00000000fffffff0 RSI: 0000000020004200 RDI: 0000000000000004 [ 52.988238][ T3538] RBP: 00007f814c3c9610 R08: 0000000000000000 R09: 00007ffc45010d28 [ 52.996191][ T3538] R10: 0000000000000647 R11: 0000000000000246 R12: 0000000000000001 [ 53.004141][ T3538] R13: 00007ffc45010d18 R14: 0000000000000001 R15: 0000000000000001 [ 53.012099][ T3538]