Warning: Permanently added '10.128.0.34' (ED25519) to the list of known hosts.
executing program
[ 50.791506][ T3550] loop0: detected capacity change from 0 to 1024
[ 50.827145][ T3550]
[ 50.829517][ T3550] ======================================================
[ 50.836535][ T3550] WARNING: possible circular locking dependency detected
[ 50.843538][ T3550] 6.1.52-syzkaller #0 Not tainted
[ 50.848536][ T3550] ------------------------------------------------------
[ 50.855551][ T3550] syz-executor361/3550 is trying to acquire lock:
[ 50.861942][ T3550] ffff88807b8040b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x80d/0xb40
[ 50.871785][ T3550]
[ 50.871785][ T3550] but task is already holding lock:
[ 50.879127][ T3550] ffff888047d0a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40
[ 50.890236][ T3550]
[ 50.890236][ T3550] which lock already depends on the new lock.
[ 50.890236][ T3550]
[ 50.900618][ T3550]
[ 50.900618][ T3550] the existing dependency chain (in reverse order) is:
[ 50.909701][ T3550]
[ 50.909701][ T3550] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}:
[ 50.918723][ T3550] lock_acquire+0x1f8/0x5a0
[ 50.923732][ T3550] __mutex_lock_common+0x1d4/0x2520
[ 50.929439][ T3550] mutex_lock_nested+0x17/0x20
[ 50.934700][ T3550] hfsplus_file_extend+0x1d2/0x1b10
[ 50.940396][ T3550] hfsplus_bmap_reserve+0x101/0x4e0
[ 50.946111][ T3550] hfsplus_rename_cat+0x1cf/0x1090
[ 50.951731][ T3550] hfsplus_unlink+0x304/0x7f0
[ 50.956929][ T3550] vfs_unlink+0x359/0x5f0
[ 50.961761][ T3550] do_unlinkat+0x49d/0x940
[ 50.966676][ T3550] __x64_sys_unlink+0x45/0x50
[ 50.971853][ T3550] do_syscall_64+0x3d/0xb0
[ 50.976767][ T3550] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 50.983254][ T3550]
[ 50.983254][ T3550] -> #0 (&tree->tree_lock){+.+.}-{3:3}:
[ 50.990960][ T3550] validate_chain+0x1667/0x58e0
[ 50.996362][ T3550] __lock_acquire+0x125b/0x1f80
[ 51.001798][ T3550] lock_acquire+0x1f8/0x5a0
[ 51.006801][ T3550] __mutex_lock_common+0x1d4/0x2520
[ 51.012499][ T3550] mutex_lock_nested+0x17/0x20
[ 51.017765][ T3550] hfsplus_file_truncate+0x80d/0xb40
[ 51.023552][ T3550] hfsplus_setattr+0x1b9/0x280
[ 51.028814][ T3550] notify_change+0xdcd/0x1080
[ 51.033989][ T3550] do_truncate+0x21c/0x300
[ 51.038908][ T3550] path_openat+0x27e2/0x2e60
[ 51.043999][ T3550] do_filp_open+0x230/0x480
[ 51.049000][ T3550] do_sys_openat2+0x13b/0x500
[ 51.054175][ T3550] __x64_sys_creat+0x11f/0x160
[ 51.059434][ T3550] do_syscall_64+0x3d/0xb0
[ 51.064351][ T3550] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 51.070744][ T3550]
[ 51.070744][ T3550] other info that might help us debug this:
[ 51.070744][ T3550]
[ 51.080955][ T3550] Possible unsafe locking scenario:
[ 51.080955][ T3550]
[ 51.088385][ T3550] CPU0 CPU1
[ 51.093726][ T3550] ---- ----
[ 51.099069][ T3550] lock(&HFSPLUS_I(inode)->extents_lock);
[ 51.104854][ T3550] lock(&tree->tree_lock);
[ 51.111854][ T3550] lock(&HFSPLUS_I(inode)->extents_lock);
[ 51.120156][ T3550] lock(&tree->tree_lock);
[ 51.124726][ T3550]
[ 51.124726][ T3550] *** DEADLOCK ***
[ 51.124726][ T3550]
[ 51.132847][ T3550] 3 locks held by syz-executor361/3550:
[ 51.138375][ T3550] #0: ffff88807b802460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80
[ 51.147494][ T3550] #1: ffff888047d0ab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300
[ 51.157840][ T3550] #2: ffff888047d0a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40
[ 51.169404][ T3550]
[ 51.169404][ T3550] stack backtrace:
[ 51.175276][ T3550] CPU: 0 PID: 3550 Comm: syz-executor361 Not tainted 6.1.52-syzkaller #0
[ 51.183668][ T3550] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
[ 51.193705][ T3550] Call Trace:
[ 51.196969][ T3550] <TASK>
[ 51.199881][ T3550] dump_stack_lvl+0x1e3/0x2cb
[ 51.204549][ T3550] ? nf_tcp_handle_invalid+0x642/0x642
[ 51.209997][ T3550] ? print_circular_bug+0x12b/0x1a0
[ 51.215267][ T3550] check_noncircular+0x2fa/0x3b0
[ 51.220205][ T3550] ? add_chain_block+0x850/0x850
[ 51.225161][ T3550] ? add_chain_block+0x850/0x850
[ 51.230096][ T3550] ? lockdep_lock+0x11f/0x2a0
[ 51.234768][ T3550] ? add_chain_block+0x850/0x850
[ 51.239763][ T3550] ? _find_first_zero_bit+0xd0/0x100
[ 51.245043][ T3550] validate_chain+0x1667/0x58e0
[ 51.249887][ T3550] ? reacquire_held_locks+0x660/0x660
[ 51.255244][ T3550] ? reacquire_held_locks+0x660/0x660
[ 51.260595][ T3550] ? look_up_lock_class+0x77/0x140
[ 51.265775][ T3550] ? register_lock_class+0x100/0x990
[ 51.271059][ T3550] ? mark_lock+0x9a/0x340
[ 51.275380][ T3550] ? is_dynamic_key+0x230/0x230
[ 51.280224][ T3550] ? __lock_acquire+0x125b/0x1f80
[ 51.285255][ T3550] ? mark_lock+0x9a/0x340
[ 51.289572][ T3550] __lock_acquire+0x125b/0x1f80
[ 51.294409][ T3550] lock_acquire+0x1f8/0x5a0
[ 51.298892][ T3550] ? hfsplus_file_truncate+0x80d/0xb40
[ 51.304332][ T3550] ? read_lock_is_recursive+0x10/0x10
[ 51.309700][ T3550] ? __might_sleep+0xb0/0xb0
[ 51.314281][ T3550] __mutex_lock_common+0x1d4/0x2520
[ 51.319465][ T3550] ? hfsplus_file_truncate+0x80d/0xb40
[ 51.324914][ T3550] ? hfsplus_file_truncate+0x80d/0xb40
[ 51.330377][ T3550] ? mutex_lock_io_nested+0x60/0x60
[ 51.335558][ T3550] ? hfsplus_free_extents+0x47e/0xae0
[ 51.340910][ T3550] mutex_lock_nested+0x17/0x20
[ 51.345655][ T3550] hfsplus_file_truncate+0x80d/0xb40
[ 51.350922][ T3550] ? hfsplus_add_extent+0x880/0x880
[ 51.356114][ T3550] ? unmap_mapping_range+0xf4/0x280
[ 51.361379][ T3550] ? unmap_mapping_pages+0x180/0x180
[ 51.366643][ T3550] ? current_time+0x1d1/0x2f0
[ 51.371298][ T3550] ? setattr_prepare+0x1e0/0xc20
[ 51.376231][ T3550] ? truncate_setsize+0xcb/0xf0
[ 51.381063][ T3550] hfsplus_setattr+0x1b9/0x280
[ 51.385830][ T3550] ? hfsplus_fileattr_set+0x330/0x330
[ 51.391270][ T3550] notify_change+0xdcd/0x1080
[ 51.395962][ T3550] do_truncate+0x21c/0x300
[ 51.400373][ T3550] ? put_page_bootmem+0x2e0/0x2e0
[ 51.405403][ T3550] ? ima_bprm_check+0x2b0/0x2b0
[ 51.410247][ T3550] ? bpf_lsm_path_truncate+0x5/0x10
[ 51.415442][ T3550] path_openat+0x27e2/0x2e60
[ 51.420026][ T3550] ? do_filp_open+0x480/0x480
[ 51.424709][ T3550] do_filp_open+0x230/0x480
[ 51.429198][ T3550] ? vfs_tmpfile+0x4a0/0x4a0
[ 51.433774][ T3550] ? _raw_spin_unlock+0x24/0x40
[ 51.438603][ T3550] ? alloc_fd+0x59c/0x640
[ 51.442922][ T3550] do_sys_openat2+0x13b/0x500
[ 51.447598][ T3550] ? do_sys_open+0x220/0x220
[ 51.452174][ T3550] ? lockdep_hardirqs_on_prepare+0x438/0x7a0
[ 51.458135][ T3550] __x64_sys_creat+0x11f/0x160
[ 51.462886][ T3550] ? __x64_compat_sys_openat+0x290/0x290
[ 51.468511][ T3550] ? syscall_enter_from_user_mode+0x2e/0x220
[ 51.474474][ T3550] ? lockdep_hardirqs_on+0x94/0x130
[ 51.479649][ T3550] ? syscall_enter_from_user_mode+0x2e/0x220
[ 51.485698][ T3550] do_syscall_64+0x3d/0xb0
[ 51.490095][ T3550] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 51.495970][ T3550] RIP: 0033:0x7f199869d879
[ 51.500366][ T3550] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
[ 51.519977][ T3550] RSP: 002b:00007ffd9cd04ed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
[ 51.528381][ T3550] RAX: ffffffffffffffda RBX: 00007ffd9cd050b8 RCX: 00007f199869d879
[ 51.536599][ T3550] RDX: 00007f199869d879 RSI: 00000000000000da RDI: 0000000020004300
[