Warning: Permanently added '10.128.0.201' (ED25519) to the list of known hosts. executing program [ 43.222174][ T4017] loop0: detected capacity change from 0 to 1024 [ 43.337229][ T4017] [ 43.337915][ T4017] ============================================ [ 43.339596][ T4017] WARNING: possible recursive locking detected [ 43.341192][ T4017] 5.15.178-syzkaller #0 Not tainted [ 43.342545][ T4017] -------------------------------------------- [ 43.344174][ T4017] syz-executor250/4017 is trying to acquire lock: [ 43.345833][ T4017] ffff0000c95e9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1194 [ 43.348754][ T4017] [ 43.348754][ T4017] but task is already holding lock: [ 43.350695][ T4017] ffff0000c95ea988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 43.353727][ T4017] [ 43.353727][ T4017] other info that might help us debug this: [ 43.355871][ T4017] Possible unsafe locking scenario: [ 43.355871][ T4017] [ 43.357870][ T4017] CPU0 [ 43.358733][ T4017] ---- [ 43.359611][ T4017] lock(&HFSPLUS_I(inode)->extents_lock); [ 43.361179][ T4017] lock(&HFSPLUS_I(inode)->extents_lock); [ 43.362684][ T4017] [ 43.362684][ T4017] *** DEADLOCK *** [ 43.362684][ T4017] [ 43.364795][ T4017] May be due to missing lock nesting notation [ 43.364795][ T4017] [ 43.366978][ T4017] 6 locks held by syz-executor250/4017: [ 43.368421][ T4017] #0: ffff0000cc9c6460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 43.370864][ T4017] #1: ffff0000c95e9e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2d0/0x830 [ 43.373567][ T4017] #2: ffff0000c95eab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 43.376232][ T4017] #3: ffff0000d7efe998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x6a0 [ 43.378756][ T4017] #4: ffff0000c95ea988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 43.381905][ T4017] #5: ffff0000d7efe8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x514 [ 43.384547][ T4017] [ 43.384547][ T4017] stack backtrace: [ 43.386076][ T4017] CPU: 0 PID: 4017 Comm: syz-executor250 Not tainted 5.15.178-syzkaller #0 [ 43.388406][ T4017] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 43.391094][ T4017] Call trace: [ 43.391943][ T4017] dump_backtrace+0x0/0x530 [ 43.393145][ T4017] show_stack+0x2c/0x3c [ 43.394225][ T4017] dump_stack_lvl+0x108/0x170 [ 43.395509][ T4017] dump_stack+0x1c/0x58 [ 43.396595][ T4017] __lock_acquire+0x62bc/0x7638 [ 43.397887][ T4017] lock_acquire+0x240/0x77c [ 43.399066][ T4017] __mutex_lock_common+0x194/0x2154 [ 43.400466][ T4017] mutex_lock_nested+0xa4/0xf8 [ 43.401709][ T4017] hfsplus_get_block+0x2c4/0x1194 [ 43.403060][ T4017] block_read_full_page+0x2a0/0xc4c [ 43.404463][ T4017] hfsplus_readpage+0x28/0x38 [ 43.405798][ T4017] do_read_cache_page+0x60c/0x950 [ 43.407121][ T4017] read_cache_page+0x68/0x84 [ 43.408361][ T4017] hfsplus_block_free+0x120/0x514 [ 43.409686][ T4017] hfsplus_free_extents+0x148/0x8d4 [ 43.411055][ T4017] hfsplus_file_truncate+0x678/0xa2c [ 43.412499][ T4017] hfsplus_delete_inode+0x154/0x200 [ 43.413917][ T4017] hfsplus_unlink+0x414/0x6a0 [ 43.415155][ T4017] vfs_unlink+0x2f0/0x508 [ 43.416320][ T4017] do_unlinkat+0x4cc/0x830 [ 43.417452][ T4017] __arm64_sys_unlinkat+0xcc/0xfc [ 43.418802][ T4017] invoke_syscall+0x98/0x2b8 [ 43.420092][ T4017] el0_svc_common+0x138/0x258 [ 43.421423][ T4017] do_el0_svc+0x58/0x14c [ 43.422537][ T4017] el0_svc+0x7c/0x1f0 [ 43.423649][ T4017] el0t_64_sync_handler+0x84/0xe4 [ 43.424971][ T4017] el0t_64_sync+0x1a0/0x1a4 [ 43.426642][ T4017] hfsplus: unable to mark blocks free: error -5 [ 43.428301][ T4017] hfsplus: can't free extent