Warning: Permanently added '10.128.0.175' (ED25519) to the list of known hosts. executing program [ 59.756858][ T4164] loop0: detected capacity change from 0 to 1024 [ 59.887408][ T4164] hfsplus: trying to free free bnode 0(1) [ 59.894244][ T4164] [ 59.896595][ T4164] ============================================ [ 59.902749][ T4164] WARNING: possible recursive locking detected [ 59.908902][ T4164] 5.15.178-syzkaller #0 Not tainted [ 59.914106][ T4164] -------------------------------------------- [ 59.920255][ T4164] syz-executor177/4164 is trying to acquire lock: [ 59.926659][ T4164] ffff888025089548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x37f/0x14e0 [ 59.937554][ T4164] [ 59.937554][ T4164] but task is already holding lock: [ 59.944909][ T4164] ffff88802508a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30f/0xc70 [ 59.956039][ T4164] [ 59.956039][ T4164] other info that might help us debug this: [ 59.964093][ T4164] Possible unsafe locking scenario: [ 59.964093][ T4164] [ 59.971539][ T4164] CPU0 [ 59.974812][ T4164] ---- [ 59.978073][ T4164] lock(&HFSPLUS_I(inode)->extents_lock); [ 59.983864][ T4164] lock(&HFSPLUS_I(inode)->extents_lock); [ 59.989651][ T4164] [ 59.989651][ T4164] *** DEADLOCK *** [ 59.989651][ T4164] [ 59.997773][ T4164] May be due to missing lock nesting notation [ 59.997773][ T4164] [ 60.006071][ T4164] 6 locks held by syz-executor177/4164: [ 60.011595][ T4164] #0: ffff888077a3e460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 60.020724][ T4164] #1: ffff888025089e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x266/0x950 [ 60.030985][ T4164] #2: ffff88802508ab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_unlink+0xe0/0x5f0 [ 60.041164][ T4164] #3: ffff88802433a998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x15d/0x7f0 [ 60.050635][ T4164] #4: ffff88802508a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30f/0xc70 [ 60.062194][ T4164] #5: ffff88802433a8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb7/0x4f0 [ 60.072210][ T4164] [ 60.072210][ T4164] stack backtrace: [ 60.078110][ T4164] CPU: 1 PID: 4164 Comm: syz-executor177 Not tainted 5.15.178-syzkaller #0 [ 60.086687][ T4164] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 60.096840][ T4164] Call Trace: [ 60.100119][ T4164] [ 60.103040][ T4164] dump_stack_lvl+0x1e3/0x2d0 [ 60.107716][ T4164] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 60.113354][ T4164] ? panic+0x860/0x860 [ 60.117416][ T4164] validate_chain+0x46d2/0x5930 [ 60.122259][ T4164] ? stack_trace_save+0x113/0x1c0 [ 60.127289][ T4164] ? stack_trace_snprint+0xe0/0xe0 [ 60.132388][ T4164] ? check_noncircular+0x1e1/0x3b0 [ 60.137487][ T4164] ? reacquire_held_locks+0x660/0x660 [ 60.142863][ T4164] ? add_chain_block+0x850/0x850 [ 60.147790][ T4164] ? lockdep_unlock+0x166/0x300 [ 60.152646][ T4164] ? look_up_lock_class+0x77/0x120 [ 60.157748][ T4164] ? register_lock_class+0x100/0x9a0 [ 60.163021][ T4164] ? is_dynamic_key+0x1f0/0x1f0 [ 60.167872][ T4164] ? validate_chain+0x13bd/0x5930 [ 60.172882][ T4164] ? mark_lock+0x98/0x340 [ 60.177223][ T4164] __lock_acquire+0x1295/0x1ff0 [ 60.182076][ T4164] lock_acquire+0x1db/0x4f0 [ 60.186567][ T4164] ? hfsplus_get_block+0x37f/0x14e0 [ 60.191750][ T4164] ? read_lock_is_recursive+0x10/0x10 [ 60.197110][ T4164] ? __might_sleep+0xc0/0xc0 [ 60.201686][ T4164] ? hfsplus_file_truncate+0x871/0xc70 [ 60.207129][ T4164] ? is_dynamic_key+0x1f0/0x1f0 [ 60.211966][ T4164] ? do_unlinkat+0x4a3/0x950 [ 60.216557][ T4164] ? do_syscall_64+0x3b/0xb0 [ 60.221139][ T4164] ? mark_lock+0x98/0x340 [ 60.225454][ T4164] __mutex_lock_common+0x1da/0x25a0 [ 60.230640][ T4164] ? hfsplus_get_block+0x37f/0x14e0 [ 60.235830][ T4164] ? hfsplus_get_block+0x37f/0x14e0 [ 60.241013][ T4164] ? mutex_lock_io_nested+0x60/0x60 [ 60.246219][ T4164] ? lockdep_softirqs_off+0x420/0x420 [ 60.251582][ T4164] mutex_lock_nested+0x17/0x20 [ 60.256330][ T4164] hfsplus_get_block+0x37f/0x14e0 [ 60.261342][ T4164] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 60.267068][ T4164] ? do_raw_spin_unlock+0x137/0x8b0 [ 60.272259][ T4164] ? create_empty_buffers+0x5c0/0x6d0 [ 60.277621][ T4164] ? create_page_buffers+0x24b/0x330 [ 60.282919][ T4164] block_read_full_page+0x2f9/0xde0 [ 60.288111][ T4164] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 60.293839][ T4164] ? block_is_partially_uptodate+0x2c0/0x2c0 [ 60.299840][ T4164] ? hfsplus_writepage+0x30/0x30 [ 60.304792][ T4164] do_read_cache_page+0x752/0x1040 [ 60.309903][ T4164] hfsplus_block_free+0x120/0x4f0 [ 60.314924][ T4164] hfsplus_free_extents+0x17a/0xae0 [ 60.320121][ T4164] hfsplus_file_truncate+0x871/0xc70 [ 60.325419][ T4164] ? hfsplus_add_extent+0x880/0x880 [ 60.330619][ T4164] ? mutex_lock_io_nested+0x60/0x60 [ 60.335825][ T4164] hfsplus_delete_inode+0x170/0x220 [ 60.341026][ T4164] hfsplus_unlink+0x50d/0x7f0 [ 60.345692][ T4164] ? read_lock_is_recursive+0x10/0x10 [ 60.351077][ T4164] ? hfsplus_link+0x840/0x840 [ 60.355754][ T4164] ? clear_nonspinnable+0x60/0x60 [ 60.360796][ T4164] ? bpf_lsm_inode_unlink+0x5/0x10 [ 60.365901][ T4164] ? security_inode_unlink+0xca/0x110 [ 60.371284][ T4164] vfs_unlink+0x359/0x5f0 [ 60.375693][ T4164] do_unlinkat+0x4a3/0x950 [ 60.380099][ T4164] ? fsnotify_link_count+0xf0/0xf0 [ 60.385195][ T4164] ? strncpy_from_user+0x209/0x370 [ 60.390318][ T4164] __x64_sys_unlink+0x45/0x50 [ 60.394981][ T4164] do_syscall_64+0x3b/0xb0 [ 60.399390][ T4164] ? clear_bhb_loop+0x15/0x70 [ 60.404053][ T4164] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 60.409938][ T4164] RIP: 0033:0x7fdac0f67af9 [ 60.414370][ T4164] 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 [ 60.433972][ T4164] RSP: 002b:00007ffef4446c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 60.442394][ T4164] RAX: ffffffffffffffda RBX: 00007fdac0fb005e RCX: 00007fdac0f67af9 [ 60.450357][ T4164] RDX: 00007fdac0f66df0 RSI: 0000000000000000 RDI: 0000000020000000 [ 60.458317][ T4164] RBP: 00007fdac0fb0066 R08: 0000000000000669 R09: 0000000000000000 [ 60.466277][ T4164] R10: 00007ffef4446ae0 R11: 0000000000000246 R12: 0000000000000001 [ 60.474257][ T4164] R13: 00007ffef4446df8 R14: 0000000000000001 R15: 0000000000000001 [ 60.482413][ T4164] [