Warning: Permanently added '10.128.1.139' (ED25519) to the list of known hosts. executing program [ 44.027737][ T3498] loop0: detected capacity change from 0 to 1024 [ 44.041655][ T3498] [ 44.044015][ T3498] ============================================ [ 44.050227][ T3498] WARNING: possible recursive locking detected [ 44.056352][ T3498] 5.15.123-syzkaller #0 Not tainted [ 44.061521][ T3498] -------------------------------------------- [ 44.067642][ T3498] syz-executor302/3498 is trying to acquire lock: [ 44.074034][ T3498] ffff8880161f9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 44.084980][ T3498] [ 44.084980][ T3498] but task is already holding lock: [ 44.092323][ T3498] ffff8880161f87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 44.103347][ T3498] [ 44.103347][ T3498] other info that might help us debug this: [ 44.111394][ T3498] Possible unsafe locking scenario: [ 44.111394][ T3498] [ 44.118928][ T3498] CPU0 [ 44.122187][ T3498] ---- [ 44.125441][ T3498] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.131218][ T3498] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.136993][ T3498] [ 44.136993][ T3498] *** DEADLOCK *** [ 44.136993][ T3498] [ 44.145118][ T3498] May be due to missing lock nesting notation [ 44.145118][ T3498] [ 44.153407][ T3498] 5 locks held by syz-executor302/3498: [ 44.158920][ T3498] #0: ffff8880796860e0 (&type->s_umount_key#42/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 [ 44.168985][ T3498] #1: ffff888023c7f198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_fill_super+0x1378/0x1c90 [ 44.178970][ T3498] #2: ffff8880796820b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x146/0x1c0 [ 44.188872][ T3498] #3: ffff8880161f87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d2/0x1b10 [ 44.200324][ T3498] #4: ffff888023c7f0f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x8a/0x8d0 [ 44.210655][ T3498] [ 44.210655][ T3498] stack backtrace: [ 44.216523][ T3498] CPU: 1 PID: 3498 Comm: syz-executor302 Not tainted 5.15.123-syzkaller #0 [ 44.225091][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 44.235207][ T3498] Call Trace: [ 44.238465][ T3498] [ 44.241374][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 44.246053][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 44.251656][ T3498] ? panic+0x84d/0x84d [ 44.255699][ T3498] validate_chain+0x46cf/0x58b0 [ 44.260532][ T3498] ? stack_trace_save+0x113/0x1c0 [ 44.265529][ T3498] ? stack_trace_snprint+0xe0/0xe0 [ 44.270613][ T3498] ? check_noncircular+0x1e1/0x3b0 [ 44.275695][ T3498] ? reacquire_held_locks+0x660/0x660 [ 44.281035][ T3498] ? add_chain_block+0x850/0x850 [ 44.285947][ T3498] ? lockdep_unlock+0x166/0x300 [ 44.290769][ T3498] ? look_up_lock_class+0x77/0x120 [ 44.295855][ T3498] ? register_lock_class+0x100/0x9a0 [ 44.301115][ T3498] ? is_dynamic_key+0x1f0/0x1f0 [ 44.305940][ T3498] ? validate_chain+0x13b7/0x58b0 [ 44.310935][ T3498] ? mark_lock+0x98/0x340 [ 44.315246][ T3498] __lock_acquire+0x1295/0x1ff0 [ 44.320072][ T3498] lock_acquire+0x1db/0x4f0 [ 44.324551][ T3498] ? hfsplus_get_block+0x37f/0x14e0 [ 44.329724][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 44.335080][ T3498] ? __might_sleep+0xc0/0xc0 [ 44.339643][ T3498] ? hfsplus_bmap_reserve+0x101/0x4e0 [ 44.344989][ T3498] ? is_dynamic_key+0x1f0/0x1f0 [ 44.349816][ T3498] ? legacy_get_tree+0xeb/0x180 [ 44.354651][ T3498] ? do_new_mount+0x28b/0xae0 [ 44.359299][ T3498] ? mark_lock+0x98/0x340 [ 44.363600][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.368773][ T3498] ? hfsplus_get_block+0x37f/0x14e0 [ 44.373945][ T3498] ? hfsplus_get_block+0x37f/0x14e0 [ 44.379119][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 44.384306][ T3498] ? lockdep_softirqs_off+0x420/0x420 [ 44.389655][ T3498] mutex_lock_nested+0x17/0x20 [ 44.394391][ T3498] hfsplus_get_block+0x37f/0x14e0 [ 44.399398][ T3498] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 44.405094][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 44.410280][ T3498] ? create_empty_buffers+0x5c0/0x6d0 [ 44.415627][ T3498] ? create_page_buffers+0x24b/0x330 [ 44.420886][ T3498] block_read_full_page+0x2f9/0xde0 [ 44.426069][ T3498] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 44.431762][ T3498] ? block_is_partially_uptodate+0x2c0/0x2c0 [ 44.437717][ T3498] ? hfsplus_writepage+0x30/0x30 [ 44.442632][ T3498] do_read_cache_page+0x752/0x1040 [ 44.447717][ T3498] hfsplus_block_allocate+0xfa/0x8d0 [ 44.452978][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 44.458409][ T3498] hfsplus_file_extend+0xa4c/0x1b10 [ 44.463585][ T3498] ? hfsplus_get_block+0x14e0/0x14e0 [ 44.468843][ T3498] ? __mutex_lock_common+0x444/0x25a0 [ 44.474194][ T3498] ? hfsplus_find_init+0x146/0x1c0 [ 44.479385][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 44.484559][ T3498] hfsplus_bmap_reserve+0x101/0x4e0 [ 44.489736][ T3498] hfsplus_create_cat+0x1a9/0x1ba0 [ 44.494822][ T3498] ? hfsplus_find_cat+0x5c0/0x5c0 [ 44.499820][ T3498] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 44.505697][ T3498] ? enqueue_timer+0x233/0x540 [ 44.510444][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 44.515617][ T3498] ? _raw_spin_unlock+0x24/0x40 [ 44.520440][ T3498] ? hfsplus_new_inode+0x5c9/0x740 [ 44.525525][ T3498] hfsplus_fill_super+0x13e6/0x1c90 [ 44.530699][ T3498] ? hfsplus_mount+0x40/0x40 [ 44.535273][ T3498] ? snprintf+0xd6/0x120 [ 44.539488][ T3498] ? vscnprintf+0x80/0x80 [ 44.543788][ T3498] ? set_blocksize+0x1ec/0x370 [ 44.548528][ T3498] mount_bdev+0x2c9/0x3f0 [ 44.552832][ T3498] ? hfsplus_mount+0x40/0x40 [ 44.557407][ T3498] legacy_get_tree+0xeb/0x180 [ 44.562063][ T3498] ? hfsplus_mark_mdb_dirty+0x1b0/0x1b0 [ 44.567584][ T3498] vfs_get_tree+0x88/0x270 [ 44.571977][ T3498] do_new_mount+0x28b/0xae0 [ 44.576475][ T3498] ? do_move_mount_old+0x160/0x160 [ 44.581557][ T3498] ? user_path_at_empty+0x12b/0x180 [ 44.586735][ T3498] __se_sys_mount+0x2d5/0x3c0 [ 44.591393][ T3498] ? __x64_sys_mount+0xc0/0xc0 [ 44.596142][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 44.602092][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 44.607356][ T3498] ? __x64_sys_mount+0x1c/0xc0 [ 44.612275][ T3498] do_syscall_64+0x3d/0xb0 [ 44.616676][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.622543][ T3498] RIP: 0033:0x7ff21df8ac3a [ 44.626934][ T3498] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 44.646707][ T3498] RSP: 002b:00007ffcf3685958 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 [ 44.655098][ T3498] RAX: ffffffffffffffda RBX: 00007ffcf3685970 RCX: 00007ff21df8ac3a [ 44.663046][ T3498] RDX: 0000000020000000 RSI: 0000000020000080 RDI: 00007ffcf3685970 [ 44.671087][ T3498] RBP: 0000000000000004 R08: 00007ffcf36859b0 R09: 000000000000064e [ 44.679033][ T3498] R10: 0000000000208010 R11: 0000000000000286 R12: 0000000000208010 [ 44.686976][ T3498] R13: 00007ffcf36859b0 R14: 0000000000000003 R15: 0000000000080000 [ 44.694924][ T3498]