============================================
WARNING: possible recursive locking detected
syzkaller #0 Not tainted
--------------------------------------------
syz.1.1018/13099 is trying to acquire lock:
ffff888173963908 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x215/0x1d70

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

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

4 locks held by syz.1.1018/13099:
 #0: ffff8881bb4e0420 (sb_writers#20){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160
 #1: ffff888104f433f8 (&sb->s_type->i_mutex_key#48){+.+.}-{4:4}, at: generic_file_write_iter+0x11e/0x680
 #2: ffff888104f43208 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x215/0x1d70
 #3: ffff8881bf4c80b0 (&tree->tree_lock#2/1){+.+.}-{4:4}, at: hfsplus_find_init+0x168/0x2d0

stack backtrace:
CPU: 0 UID: 0 PID: 13099 Comm: syz.1.1018 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+0xe8/0x150
 print_deadlock_bug+0x279/0x290
 __lock_acquire+0x253f/0x2cf0
 lock_acquire+0xf0/0x2e0
 __mutex_lock+0x19f/0x1300
 hfsplus_file_extend+0x215/0x1d70
 hfsplus_bmap_reserve+0x125/0x510
 __hfsplus_ext_write_extent+0x28d/0x5b0
 __hfsplus_ext_cache_extent+0x89/0xe30
 hfsplus_file_extend+0x4af/0x1d70
 hfsplus_get_block+0x42c/0x1670
 __blockdev_direct_IO+0x15d7/0x32f0
 hfsplus_direct_IO+0x119/0x220
 generic_file_direct_write+0x1db/0x3e0
 __generic_file_write_iter+0x11d/0x230
 generic_file_write_iter+0x14a/0x680
 iter_file_splice_write+0x9a1/0x10f0
 direct_splice_actor+0x101/0x160
 splice_direct_to_actor+0x53a/0xc70
 do_splice_direct+0x195/0x290
 do_sendfile+0x535/0x7d0
 __se_sys_sendfile64+0x144/0x1a0
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff5cbb9c799
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff5cca21028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007ff5cbe15fa0 RCX: 00007ff5cbb9c799
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007ff5cbc32c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff5cbe16038 R14: 00007ff5cbe15fa0 R15: 00007ffeb1c61a78
 </TASK>
