Warning: Permanently added '10.128.1.134' (ED25519) to the list of known hosts. executing program syzkaller login: [ 53.146125][ T3541] loop0: detected capacity change from 0 to 1024 [ 53.167573][ T3541] hfsplus: trying to free free bnode 0(1) [ 53.174378][ T3541] [ 53.176998][ T3541] ============================================ [ 53.183155][ T3541] WARNING: possible recursive locking detected [ 53.189520][ T3541] 6.1.52-syzkaller #0 Not tainted [ 53.194771][ T3541] -------------------------------------------- [ 53.201172][ T3541] syz-executor709/3541 is trying to acquire lock: [ 53.207874][ T3541] ffff88807ad89548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 53.218999][ T3541] [ 53.218999][ T3541] but task is already holding lock: [ 53.226372][ T3541] ffff88807ad8a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 53.237871][ T3541] [ 53.237871][ T3541] other info that might help us debug this: [ 53.246928][ T3541] Possible unsafe locking scenario: [ 53.246928][ T3541] [ 53.255349][ T3541] CPU0 [ 53.258651][ T3541] ---- [ 53.262282][ T3541] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.268403][ T3541] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.274471][ T3541] [ 53.274471][ T3541] *** DEADLOCK *** [ 53.274471][ T3541] [ 53.282625][ T3541] May be due to missing lock nesting notation [ 53.282625][ T3541] [ 53.291740][ T3541] 6 locks held by syz-executor709/3541: [ 53.297380][ T3541] #0: ffff88807ad78460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 53.306899][ T3541] #1: ffff88807ad89e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x260/0x940 [ 53.317959][ T3541] #2: ffff88807ad8ab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_unlink+0xe0/0x5f0 [ 53.328469][ T3541] #3: ffff8880256b0998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x15d/0x7f0 [ 53.338014][ T3541] #4: ffff88807ad8a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2d6/0xb40 [ 53.349698][ T3541] #5: ffff8880256b08f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb7/0x4d0 [ 53.359707][ T3541] [ 53.359707][ T3541] stack backtrace: [ 53.366744][ T3541] CPU: 0 PID: 3541 Comm: syz-executor709 Not tainted 6.1.52-syzkaller #0 [ 53.375242][ T3541] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 53.387301][ T3541] Call Trace: [ 53.390702][ T3541] [ 53.395050][ T3541] dump_stack_lvl+0x1e3/0x2cb [ 53.400892][ T3541] ? nf_tcp_handle_invalid+0x642/0x642 [ 53.406463][ T3541] ? panic+0x75d/0x75d [ 53.410652][ T3541] validate_chain+0x4726/0x58e0 [ 53.415639][ T3541] ? stack_trace_snprint+0xe0/0xe0 [ 53.420800][ T3541] ? check_noncircular+0x1e3/0x3b0 [ 53.426555][ T3541] ? reacquire_held_locks+0x660/0x660 [ 53.431971][ T3541] ? add_chain_block+0x850/0x850 [ 53.437000][ T3541] ? lockdep_unlock+0x165/0x300 [ 53.442166][ T3541] ? lockdep_lock+0x2a0/0x2a0 [ 53.446942][ T3541] ? look_up_lock_class+0x77/0x140 [ 53.452055][ T3541] ? register_lock_class+0x100/0x990 [ 53.457326][ T3541] ? validate_chain+0x13d1/0x58e0 [ 53.462439][ T3541] ? is_dynamic_key+0x230/0x230 [ 53.467335][ T3541] ? mark_lock+0x9a/0x340 [ 53.471668][ T3541] __lock_acquire+0x125b/0x1f80 [ 53.476684][ T3541] lock_acquire+0x1f8/0x5a0 [ 53.481836][ T3541] ? hfsplus_get_block+0x37f/0x14e0 [ 53.487135][ T3541] ? read_lock_is_recursive+0x10/0x10 [ 53.492580][ T3541] ? __might_sleep+0xb0/0xb0 [ 53.497250][ T3541] ? vfs_unlink+0x359/0x5f0 [ 53.501743][ T3541] ? is_dynamic_key+0x230/0x230 [ 53.506574][ T3541] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.512900][ T3541] ? mark_lock+0x9a/0x340 [ 53.517381][ T3541] __mutex_lock_common+0x1d4/0x2520 [ 53.527194][ T3541] ? hfsplus_get_block+0x37f/0x14e0 [ 53.532407][ T3541] ? hfsplus_get_block+0x37f/0x14e0 [ 53.537797][ T3541] ? mutex_lock_io_nested+0x60/0x60 [ 53.543260][ T3541] mutex_lock_nested+0x17/0x20 [ 53.548204][ T3541] hfsplus_get_block+0x37f/0x14e0 [ 53.553694][ T3541] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 53.559404][ T3541] ? do_raw_spin_unlock+0x137/0x8a0 [ 53.564641][ T3541] ? create_page_buffers+0x24e/0x4b0 [ 53.569945][ T3541] block_read_full_folio+0x403/0xf60 [ 53.575599][ T3541] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 53.582361][ T3541] ? block_is_partially_uptodate+0x590/0x590 [ 53.588461][ T3541] ? folio_add_lru+0xa80/0xa80 [ 53.593322][ T3541] ? folio_add_lru+0x42e/0xa80 [ 53.599393][ T3541] filemap_read_folio+0x199/0x780 [ 53.605382][ T3541] ? filemap_add_folio+0x570/0x570 [ 53.610973][ T3541] ? hfsplus_writepage+0x30/0x30 [ 53.616001][ T3541] ? maybe_unlock_mmap_for_io+0x130/0x130 [ 53.621819][ T3541] ? __mutex_lock_common+0x429/0x2520 [ 53.627328][ T3541] ? mutex_lock_io_nested+0x60/0x60 [ 53.632940][ T3541] do_read_cache_folio+0x2ee/0x810 [ 53.638251][ T3541] ? hfsplus_writepage+0x30/0x30 [ 53.643224][ T3541] do_read_cache_page+0x32/0x220 [ 53.648319][ T3541] hfsplus_block_free+0x124/0x4d0 [ 53.653345][ T3541] hfsplus_free_extents+0x17a/0xae0 [ 53.658695][ T3541] hfsplus_file_truncate+0x7cc/0xb40 [ 53.664258][ T3541] ? hfsplus_add_extent+0x880/0x880 [ 53.669677][ T3541] ? mutex_lock_io_nested+0x60/0x60 [ 53.675062][ T3541] hfsplus_delete_inode+0x170/0x220 [ 53.680249][ T3541] hfsplus_unlink+0x50d/0x7f0 [ 53.685009][ T3541] ? read_lock_is_recursive+0x10/0x10 [ 53.690921][ T3541] ? hfsplus_link+0x840/0x840 [ 53.695781][ T3541] ? clear_nonspinnable+0x60/0x60 [ 53.701552][ T3541] ? bpf_lsm_inode_unlink+0x5/0x10 [ 53.706702][ T3541] ? security_inode_unlink+0xca/0x110 [ 53.712104][ T3541] vfs_unlink+0x359/0x5f0 [ 53.716972][ T3541] do_unlinkat+0x49d/0x940 [ 53.721398][ T3541] ? fsnotify_link_count+0xf0/0xf0 [ 53.726610][ T3541] __x64_sys_unlink+0x45/0x50 [ 53.731556][ T3541] do_syscall_64+0x3d/0xb0 [ 53.736261][ T3541] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.742317][ T3541] RIP: 0033:0x7efcdaf06af9 [ 53.746891][ T3541] 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 [ 53.766929][ T3541] RSP: 002b:00007ffdbc2926e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 53.775672][ T3541] RAX: ffffffffffffffda RBX: 00007efcdaf4f05e RCX: 00007efcdaf06af9 [ 53.783675][ T3541] RDX: 00007efcdaf05df0 RSI: 0000000000000000 RDI: 0000000020000000 [ 53.791641][ T3541] RBP: 00007efcdaf4f066 R08: 0000000000000669 R09: 000