Warning: Permanently added '10.128.0.167' (ED25519) to the list of known hosts. executing program [ 44.465936][ T4020] loop0: detected capacity change from 0 to 1024 [ 44.553748][ T4020] [ 44.554281][ T4020] ============================================ [ 44.555796][ T4020] WARNING: possible recursive locking detected [ 44.557284][ T4020] 5.15.178-syzkaller #0 Not tainted [ 44.558586][ T4020] -------------------------------------------- [ 44.560115][ T4020] syz-executor304/4020 is trying to acquire lock: [ 44.561805][ T4020] ffff0000cb979548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1194 [ 44.564550][ T4020] [ 44.564550][ T4020] but task is already holding lock: [ 44.566457][ T4020] ffff0000cb97a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 44.569302][ T4020] [ 44.569302][ T4020] other info that might help us debug this: [ 44.571384][ T4020] Possible unsafe locking scenario: [ 44.571384][ T4020] [ 44.573262][ T4020] CPU0 [ 44.574083][ T4020] ---- [ 44.574865][ T4020] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.576284][ T4020] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.577731][ T4020] [ 44.577731][ T4020] *** DEADLOCK *** [ 44.577731][ T4020] [ 44.579829][ T4020] May be due to missing lock nesting notation [ 44.579829][ T4020] [ 44.581983][ T4020] 6 locks held by syz-executor304/4020: [ 44.583309][ T4020] #0: ffff0000da6c2460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 44.585727][ T4020] #1: ffff0000cb979e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2d0/0x830 [ 44.588309][ T4020] #2: ffff0000cb97ab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 44.590879][ T4020] #3: ffff0000da6a2998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x6a0 [ 44.593238][ T4020] #4: ffff0000cb97a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 44.596130][ T4020] #5: ffff0000da6a28f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x514 [ 44.598716][ T4020] [ 44.598716][ T4020] stack backtrace: [ 44.600151][ T4020] CPU: 0 PID: 4020 Comm: syz-executor304 Not tainted 5.15.178-syzkaller #0 [ 44.602279][ T4020] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 44.604806][ T4020] Call trace: [ 44.605610][ T4020] dump_backtrace+0x0/0x530 [ 44.606727][ T4020] show_stack+0x2c/0x3c [ 44.607801][ T4020] dump_stack_lvl+0x108/0x170 [ 44.609002][ T4020] dump_stack+0x1c/0x58 [ 44.609993][ T4020] __lock_acquire+0x62bc/0x7638 [ 44.611209][ T4020] lock_acquire+0x240/0x77c [ 44.612337][ T4020] __mutex_lock_common+0x194/0x2154 [ 44.613627][ T4020] mutex_lock_nested+0xa4/0xf8 [ 44.614763][ T4020] hfsplus_get_block+0x2c4/0x1194 [ 44.616006][ T4020] block_read_full_page+0x2a0/0xc4c [ 44.617317][ T4020] hfsplus_readpage+0x28/0x38 [ 44.618429][ T4020] do_read_cache_page+0x60c/0x950 [ 44.619769][ T4020] read_cache_page+0x68/0x84 [ 44.620914][ T4020] hfsplus_block_free+0x120/0x514 [ 44.622279][ T4020] hfsplus_free_extents+0x148/0x8d4 [ 44.623548][ T4020] hfsplus_file_truncate+0x678/0xa2c [ 44.624890][ T4020] hfsplus_delete_inode+0x154/0x200 [ 44.626258][ T4020] hfsplus_unlink+0x414/0x6a0 [ 44.627439][ T4020] vfs_unlink+0x2f0/0x508 [ 44.628566][ T4020] do_unlinkat+0x4cc/0x830 [ 44.629687][ T4020] __arm64_sys_unlinkat+0xcc/0xfc [ 44.630938][ T4020] invoke_syscall+0x98/0x2b8 [ 44.632075][ T4020] el0_svc_common+0x138/0x258 [ 44.633294][ T4020] do_el0_svc+0x58/0x14c [ 44.634388][ T4020] el0_svc+0x7c/0x1f0 [ 44.635421][ T4020] el0t_64_sync_handler+0x84/0xe4 [ 44.636672][ T4020] el0t_64_sync+0x1a0/0x1a4 [ 44.639618][ T4020] hfsplus: unable to mark blocks free: error -5 [ 44.641196][ T4020] hfsplus: can't free extent