Warning: Permanently added '10.128.0.252' (ED25519) to the list of known hosts. executing program [ 38.826000][ T4295] loop0: detected capacity change from 0 to 1024 [ 38.839135][ T4295] hfsplus: invalid extended attribute record [ 38.840833][ T4295] [ 38.841353][ T4295] ============================================ [ 38.842587][ T4295] WARNING: possible recursive locking detected [ 38.843856][ T4295] 6.1.116-syzkaller #0 Not tainted [ 38.844853][ T4295] -------------------------------------------- [ 38.846097][ T4295] syz-executor230/4295 is trying to acquire lock: [ 38.847368][ T4295] ffff0000d9fa9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 38.849593][ T4295] [ 38.849593][ T4295] but task is already holding lock: [ 38.851130][ T4295] ffff0000d9faa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.853352][ T4295] [ 38.853352][ T4295] other info that might help us debug this: [ 38.854957][ T4295] Possible unsafe locking scenario: [ 38.854957][ T4295] [ 38.856444][ T4295] CPU0 [ 38.857088][ T4295] ---- [ 38.857706][ T4295] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.858871][ T4295] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.860145][ T4295] [ 38.860145][ T4295] *** DEADLOCK *** [ 38.860145][ T4295] [ 38.861825][ T4295] May be due to missing lock nesting notation [ 38.861825][ T4295] [ 38.863469][ T4295] 6 locks held by syz-executor230/4295: [ 38.864575][ T4295] #0: ffff0000da422460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.866466][ T4295] #1: ffff0000d9fa9e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2d0/0x70c [ 38.868746][ T4295] #2: ffff0000d9faab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 38.870920][ T4295] #3: ffff0000d6627198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x6a0 [ 38.872874][ T4295] #4: ffff0000d9faa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.875154][ T4295] #5: ffff0000d66270f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b0 [ 38.877187][ T4295] [ 38.877187][ T4295] stack backtrace: [ 38.878448][ T4295] CPU: 1 PID: 4295 Comm: syz-executor230 Not tainted 6.1.116-syzkaller #0 [ 38.880271][ T4295] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 38.882373][ T4295] Call trace: [ 38.883092][ T4295] dump_backtrace+0x1c8/0x1f4 [ 38.884133][ T4295] show_stack+0x2c/0x3c [ 38.885087][ T4295] dump_stack_lvl+0x108/0x170 [ 38.886166][ T4295] dump_stack+0x1c/0x58 [ 38.887041][ T4295] __lock_acquire+0x6310/0x7680 [ 38.888135][ T4295] lock_acquire+0x26c/0x7cc [ 38.889078][ T4295] __mutex_lock_common+0x190/0x21a0 [ 38.890281][ T4295] mutex_lock_nested+0x38/0x44 [ 38.891401][ T4295] hfsplus_get_block+0x2c4/0x1168 [ 38.892457][ T4295] block_read_full_folio+0x2f4/0x98c [ 38.893611][ T4295] hfsplus_read_folio+0x28/0x38 [ 38.894649][ T4295] filemap_read_folio+0x14c/0x39c [ 38.895775][ T4295] do_read_cache_folio+0x24c/0x544 [ 38.896801][ T4295] read_cache_page+0x6c/0x180 [ 38.897747][ T4295] hfsplus_block_free+0x11c/0x4b0 [ 38.898853][ T4295] hfsplus_free_extents+0x148/0x8d4 [ 38.900043][ T4295] hfsplus_file_truncate+0x674/0xa18 [ 38.901099][ T4295] hfsplus_delete_inode+0x154/0x200 [ 38.902203][ T4295] hfsplus_unlink+0x414/0x6a0 [ 38.903311][ T4295] vfs_unlink+0x2f0/0x508 [ 38.904209][ T4295] do_unlinkat+0x4cc/0x70c [ 38.905276][ T4295] __arm64_sys_unlinkat+0xcc/0xfc [ 38.906327][ T4295] invoke_syscall+0x98/0x2c0 [ 38.907544][ T4295] el0_svc_common+0x138/0x258 [ 38.908789][ T4295] do_el0_svc+0x64/0x218 [ 38.909897][ T4295] el0_svc+0x58/0x168 [ 38.910779][ T4295] el0t_64_sync_handler+0x84/0xf0 [ 38.912006][ T4295] el0t_64_sync+0x18c/0x190 [ 38.913285][ T4295] hfsplus: unable to mark blocks free: error -5 [ 38.914845][ T4295] hfsplus: can't free extent