Buffer I/O error on dev loop5, logical block 81, async page read
Buffer I/O error on dev loop5, logical block 82, async page read
============================================
WARNING: possible recursive locking detected
syzkaller #0 Not tainted
--------------------------------------------
syz.5.1703/17371 is trying to acquire lock:
ffff888175de27f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf2/0x15e0

but task is already holding lock:
ffff888175de2178 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf2/0x15e0

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

       CPU0
       ----
  lock(&HFS_I(tree->inode)->extents_lock);
  lock(&HFS_I(tree->inode)->extents_lock);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

6 locks held by syz.5.1703/17371:
 #0: ffff8881b5b88420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888175de5da0 (&type->i_mutex_dir_key#21/1){+.+.}-{4:4}, at: __start_renaming+0x148/0x410
 #2: ffff888175de0fa0 (&sb->s_type->i_mutex_key#44/4){+.+.}-{4:4}, at: vfs_rename+0x68a/0xeb0
 #3: ffff8881761920b0 (&tree->tree_lock#2){+.+.}-{4:4}, at: hfs_find_init+0x18e/0x300
 #4: ffff888175de2178 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf2/0x15e0
 #5: ffff8881754f80b0 (&tree->tree_lock#2/1){+.+.}-{4:4}, at: hfs_find_init+0x18e/0x300

stack backtrace:
CPU: 1 UID: 0 PID: 17371 Comm: syz.5.1703 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
 hfs_extend_file+0xf2/0x15e0
 hfs_bmap_reserve+0x107/0x430
 __hfs_ext_write_extent+0x1fa/0x470
 __hfs_ext_cache_extent+0x6b/0x9b0
 hfs_extend_file+0x39b/0x15e0
 hfs_bmap_reserve+0x107/0x430
 hfs_cat_move+0x216/0xbd0
 hfs_rename+0x111/0x1d0
 vfs_rename+0xa96/0xeb0
 filename_renameat2+0x539/0x9c0
 __se_sys_rename+0x55/0x2c0
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffbdbd9c799
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:00007ffbdcbfb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007ffbdc015fa0 RCX: 00007ffbdbd9c799
RDX: 0000000000000000 RSI: 0000200000000080 RDI: 0000200000000000
RBP: 00007ffbdbe32bd9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffbdc016038 R14: 00007ffbdc015fa0 R15: 00007ffc9a1af9a8
 </TASK>
Buffer I/O error on dev loop5, logical block 79, async page read
Buffer I/O error on dev loop5, logical block 80, async page read
