Warning: Permanently added '10.128.0.195' (ED25519) to the list of known hosts. executing program [ 32.535496][ T6237] loop0: detected capacity change from 0 to 1024 [ 32.554340][ T6236] [ 32.554876][ T6236] ============================================ [ 32.556407][ T6236] WARNING: possible recursive locking detected [ 32.558032][ T6236] 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Not tainted [ 32.559627][ T6236] -------------------------------------------- [ 32.561220][ T6236] syz-executor341/6236 is trying to acquire lock: [ 32.562843][ T6236] ffff0000d67d1548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 32.565781][ T6236] [ 32.565781][ T6236] but task is already holding lock: [ 32.567736][ T6236] ffff0000d67d3708 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0x9b8 [ 32.570650][ T6236] [ 32.570650][ T6236] other info that might help us debug this: [ 32.572733][ T6236] Possible unsafe locking scenario: [ 32.572733][ T6236] [ 32.574681][ T6236] CPU0 [ 32.575557][ T6236] ---- [ 32.576396][ T6236] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.577933][ T6236] lock(&HFSPLUS_I(inode)->extents_lock); [ 32.579411][ T6236] [ 32.579411][ T6236] *** DEADLOCK *** [ 32.579411][ T6236] [ 32.581574][ T6236] May be due to missing lock nesting notation [ 32.581574][ T6236] [ 32.583865][ T6236] 6 locks held by syz-executor341/6236: [ 32.585305][ T6236] #0: ffff0000d6468420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 32.587326][ T6236] #1: ffff0000d67d3240 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2dc/0x700 [ 32.589643][ T6236] #2: ffff0000d67d3900 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 32.592443][ T6236] #3: ffff0000d64a5998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x690 [ 32.595034][ T6236] #4: ffff0000d67d3708 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0x9b8 [ 32.598106][ T6236] #5: ffff0000d64a58f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b8 [ 32.600802][ T6236] [ 32.600802][ T6236] stack backtrace: [ 32.602261][ T6236] CPU: 1 PID: 6236 Comm: syz-executor341 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 [ 32.604832][ T6236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 32.607455][ T6236] Call trace: [ 32.608329][ T6236] dump_backtrace+0x1b8/0x1e4 [ 32.609590][ T6236] show_stack+0x2c/0x3c [ 32.610606][ T6236] dump_stack_lvl+0xe4/0x150 [ 32.611765][ T6236] dump_stack+0x1c/0x28 [ 32.612874][ T6236] print_deadlock_bug+0x4e4/0x660 [ 32.614116][ T6236] __lock_acquire+0x5fe4/0x763c [ 32.615439][ T6236] lock_acquire+0x248/0x73c [ 32.616632][ T6236] __mutex_lock_common+0x190/0x21a0 [ 32.618039][ T6236] mutex_lock_nested+0x2c/0x38 [ 32.619315][ T6236] hfsplus_get_block+0x2c4/0x1168 [ 32.620654][ T6236] block_read_full_folio+0x3e0/0xc6c [ 32.622017][ T6236] hfsplus_read_folio+0x28/0x38 [ 32.623462][ T6236] filemap_read_folio+0x14c/0x39c [ 32.624796][ T6236] do_read_cache_folio+0x114/0x548 [ 32.626141][ T6236] read_cache_page+0x6c/0x15c [ 32.627392][ T6236] hfsplus_block_free+0x11c/0x4b8 [ 32.628744][ T6236] hfsplus_free_extents+0x148/0x8d4 [ 32.630157][ T6236] hfsplus_file_truncate+0x698/0x9b8 [ 32.631607][ T6236] hfsplus_delete_inode+0x154/0x200 [ 32.632972][ T6236] hfsplus_unlink+0x42c/0x690 [ 32.634267][ T6236] vfs_unlink+0x2f0/0x508 [ 32.635386][ T6236] do_unlinkat+0x4d0/0x700 [ 32.636578][ T6236] __arm64_sys_unlinkat+0xcc/0xfc [ 32.637982][ T6236] invoke_syscall+0x98/0x2b8 [ 32.639222][ T6236] el0_svc_common+0x130/0x23c [ 32.640505][ T6236] do_el0_svc+0x48/0x58 [ 32.641584][ T6236] el0_svc+0x54/0x168 [ 32.642678][ T6236] el0t_64_sync_handler+0x84/0xfc [ 32.643958][ T6236] el0t_64_sync+0x190/0x194 [ 32.645520][ T6236] hfsplus: unable to mark blocks free: error -5 [ 32.647171][ T6236] hfsplus: can't free extent [ 32.648789][ T6236] hfsplus: unable to mark blocks free: error -5 [ 32.650355][ T6236] hfsplus: can't free extent [ 32.652468][ T6236] hfsplus: unable to mark blocks free: error -5 [ 32.654325][ T6236] hfsplus: can't free extent