============================================
WARNING: possible recursive locking detected
syzkaller #0 Not tainted
--------------------------------------------
syz.3.180/6665 is trying to acquire lock:
ffff88811d439608 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_get_block+0x39e/0x1530

but task is already holding lock:
ffff88811d438808 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x1fc/0x1990

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&HFSPLUS_I(inode)->extents_lock);
  lock(&HFSPLUS_I(inode)->extents_lock);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

5 locks held by syz.3.180/6665:
 #0: ffff88810993a428 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88811d439ef8 (&type->i_mutex_dir_key#18/1){+.+.}-{4:4}, at: do_renameat2+0x3b9/0xa80
 #2: ffff888106e440b0 (&tree->tree_lock){+.+.}-{4:4}, at: hfsplus_find_init+0x15a/0x1d0
 #3: ffff88811d438808 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x1fc/0x1990
 #4: ffff88811af968f8 (&sbi->alloc_mutex){+.+.}-{4:4}, at: hfsplus_block_allocate+0x94/0x9b0

stack backtrace:
CPU: 0 UID: 0 PID: 6665 Comm: syz.3.180 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_deadlock_bug+0x28b/0x2a0
 validate_chain+0x1a3f/0x2140
 __lock_acquire+0xab9/0xd20
 lock_acquire+0x120/0x360
 __mutex_lock+0x187/0x1350
 hfsplus_get_block+0x39e/0x1530
 block_read_full_folio+0x29f/0x830
 filemap_read_folio+0x117/0x380
 do_read_cache_folio+0x350/0x590
 read_cache_page+0x5d/0x170
 hfsplus_block_allocate+0xe4/0x9b0
 hfsplus_file_extend+0xae3/0x1990
 hfsplus_bmap_reserve+0x122/0x500
 hfsplus_rename_cat+0x1aa/0xde0
 hfsplus_rename+0x128/0x1c0
 vfs_rename+0xbda/0xf00
 do_renameat2+0x6ce/0xa80
 __x64_sys_rename+0x82/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0335f8eba9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0336efa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f03361d5fa0 RCX: 00007f0335f8eba9
RDX: 0000000000000000 RSI: 0000200000001a40 RDI: 0000200000000140
RBP: 00007f0336011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f03361d6038 R14: 00007f03361d5fa0 R15: 00007fff64610148
 </TASK>
