Warning: Permanently added '10.128.10.11' (ECDSA) to the list of known hosts. executing program [ 42.180070][ T3496] loop0: detected capacity change from 0 to 1024 [ 42.203041][ T3496] [ 42.205402][ T3496] ============================================ [ 42.211547][ T3496] WARNING: possible recursive locking detected [ 42.217695][ T3496] 5.15.114-syzkaller #0 Not tainted [ 42.222890][ T3496] -------------------------------------------- [ 42.229190][ T3496] syz-executor481/3496 is trying to acquire lock: [ 42.235665][ T3496] ffff888078e11548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 42.246524][ T3496] [ 42.246524][ T3496] but task is already holding lock: [ 42.253872][ T3496] ffff888078c58108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 42.265113][ T3496] [ 42.265113][ T3496] other info that might help us debug this: [ 42.273173][ T3496] Possible unsafe locking scenario: [ 42.273173][ T3496] [ 42.280833][ T3496] CPU0 [ 42.284329][ T3496] ---- [ 42.287618][ T3496] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.293411][ T3496] lock(&HFSPLUS_I(inode)->extents_lock); [ 42.299207][ T3496] [ 42.299207][ T3496] *** DEADLOCK *** [ 42.299207][ T3496] [ 42.307439][ T3496] May be due to missing lock nesting notation [ 42.307439][ T3496] [ 42.315743][ T3496] 4 locks held by syz-executor481/3496: [ 42.321550][ T3496] #0: ffff888078d5a460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 [ 42.330788][ T3496] #1: ffff888078c58300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x7c/0x1b0 [ 42.342092][ T3496] #2: ffff888078c58108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 42.353641][ T3496] #3: ffff88807e1950f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x8a/0x8d0 [ 42.364147][ T3496] [ 42.364147][ T3496] stack backtrace: [ 42.370037][ T3496] CPU: 1 PID: 3496 Comm: syz-executor481 Not tainted 5.15.114-syzkaller #0 [ 42.378977][ T3496] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 42.389108][ T3496] Call Trace: [ 42.392409][ T3496] [ 42.395331][ T3496] dump_stack_lvl+0x1e3/0x2cb [ 42.400081][ T3496] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 42.405713][ T3496] ? panic+0x84d/0x84d [ 42.409958][ T3496] validate_chain+0x46cf/0x58b0 [ 42.414807][ T3496] ? stack_trace_save+0x113/0x1c0 [ 42.419836][ T3496] ? stack_trace_snprint+0xe0/0xe0 [ 42.424969][ T3496] ? check_noncircular+0x1e1/0x3b0 [ 42.430201][ T3496] ? reacquire_held_locks+0x660/0x660 [ 42.435574][ T3496] ? add_chain_block+0x850/0x850 [ 42.440511][ T3496] ? lockdep_unlock+0x166/0x300 [ 42.445354][ T3496] ? look_up_lock_class+0x77/0x120 [ 42.450446][ T3496] ? register_lock_class+0x100/0x9a0 [ 42.455711][ T3496] ? is_dynamic_key+0x1f0/0x1f0 [ 42.460556][ T3496] ? validate_chain+0x13b7/0x58b0 [ 42.465577][ T3496] ? mark_lock+0x98/0x340 [ 42.469891][ T3496] __lock_acquire+0x1295/0x1ff0 [ 42.474843][ T3496] lock_acquire+0x1db/0x4f0 [ 42.479700][ T3496] ? hfsplus_get_block+0x37f/0x14e0 [ 42.485158][ T3496] ? read_lock_is_recursive+0x10/0x10 [ 42.490759][ T3496] ? __might_sleep+0xc0/0xc0 [ 42.495360][ T3496] ? hfsplus_get_block+0x402/0x14e0 [ 42.500719][ T3496] ? is_dynamic_key+0x1f0/0x1f0 [ 42.505682][ T3496] ? generic_perform_write+0x2bf/0x5b0 [ 42.511136][ T3496] ? generic_file_write_iter+0xa7/0x1b0 [ 42.516663][ T3496] ? mark_lock+0x98/0x340 [ 42.521495][ T3496] __mutex_lock_common+0x1da/0x25a0 [ 42.526877][ T3496] ? hfsplus_get_block+0x37f/0x14e0 [ 42.532093][ T3496] ? hfsplus_get_block+0x37f/0x14e0 [ 42.537373][ T3496] ? mutex_lock_io_nested+0x60/0x60 [ 42.542560][ T3496] ? lockdep_softirqs_off+0x420/0x420 [ 42.547935][ T3496] mutex_lock_nested+0x17/0x20 [ 42.552686][ T3496] hfsplus_get_block+0x37f/0x14e0 [ 42.557702][ T3496] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 42.563414][ T3496] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.569000][ T3496] ? create_empty_buffers+0x5c0/0x6d0 [ 42.574369][ T3496] ? create_page_buffers+0x24b/0x330 [ 42.579914][ T3496] block_read_full_page+0x2f9/0xde0 [ 42.585111][ T3496] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 42.590821][ T3496] ? block_is_partially_uptodate+0x2c0/0x2c0 [ 42.596881][ T3496] ? unwind_get_return_address+0x49/0x80 [ 42.603044][ T3496] ? hfsplus_writepage+0x30/0x30 [ 42.607978][ T3496] do_read_cache_page+0x752/0x1040 [ 42.614130][ T3496] hfsplus_block_allocate+0xfa/0x8d0 [ 42.619507][ T3496] ? noop_count+0x30/0x30 [ 42.624000][ T3496] ? stack_trace_save+0x113/0x1c0 [ 42.629869][ T3496] ? reacquire_held_locks+0x660/0x660 [ 42.635349][ T3496] ? stack_trace_snprint+0xe0/0xe0 [ 42.640462][ T3496] hfsplus_file_extend+0xa4c/0x1b10 [ 42.645663][ T3496] ? check_path+0x21/0x40 [ 42.649968][ T3496] ? hfsplus_get_block+0x14e0/0x14e0 [ 42.655227][ T3496] ? mark_lock+0x98/0x340 [ 42.660083][ T3496] ? __lock_acquire+0x1295/0x1ff0 [ 42.665211][ T3496] hfsplus_get_block+0x402/0x14e0 [ 42.670510][ T3496] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 42.676598][ T3496] ? create_page_buffers+0x24b/0x330 [ 42.681891][ T3496] __block_write_begin_int+0x60b/0x1650 [ 42.687447][ T3496] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 42.693379][ T3496] ? page_zero_new_buffers+0x510/0x510 [ 42.698843][ T3496] ? wait_for_stable_page+0xe2/0x110 [ 42.704214][ T3496] cont_write_begin+0x5d6/0x840 [ 42.709182][ T3496] ? generic_cont_expand_simple+0x230/0x230 [ 42.715082][ T3496] ? fault_in_readable+0x1d5/0x2e0 [ 42.720274][ T3496] ? fault_in_safe_writeable+0x250/0x250 [ 42.726172][ T3496] hfsplus_write_begin+0x92/0xd0 [ 42.731106][ T3496] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 42.736813][ T3496] generic_perform_write+0x2bf/0x5b0 [ 42.742078][ T3496] ? grab_cache_page_write_begin+0x90/0x90 [ 42.748036][ T3496] ? file_remove_privs+0x610/0x610 [ 42.753214][ T3496] ? down_write+0x10e/0x170 [ 42.757695][ T3496] __generic_file_write_iter+0x243/0x4f0 [ 42.764194][ T3496] generic_file_write_iter+0xa7/0x1b0 [ 42.769657][ T3496] vfs_write+0xacf/0xe50 [ 42.773907][ T3496] ? file_end_write+0x250/0x250 [ 42.778940][ T3496] ? __context_tracking_enter+0x5f/0x90 [ 42.784499][ T3496] ? __fdget_pos+0x272/0x300 [ 42.789080][ T3496] ksys_write+0x1a2/0x2c0 [ 42.793392][ T3496] ? print_irqtrace_events+0x210/0x210 [ 42.798833][ T3496] ? __ia32_sys_read+0x80/0x80 [ 42.803582][ T3496] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.809553][ T3496] ? lockdep_hardirqs_on+0x94/0x130 [ 42.814729][ T3496] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.820689][ T3496] do_syscall_64+0x3d/0xb0 [ 42.825084][ T3496] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.830960][ T3496] RIP: 0033:0x7f9ad0034929 [ 42.835365][ T3496] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 42.854949][ T3496] RSP: 002b:00007fff05d0f9e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 42.863685][ T3496] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ad0034929 [ 42.871743][ T3496] RDX: 0000000000000478 RSI: 0000000020000d00 RDI: 0000000000000004 [ 42.879807][ T3496] RBP: 00007f9acfff