Warning: Permanently added '10.128.0.224' (ED25519) to the list of known hosts. executing program [ 37.606890][ T4290] loop0: detected capacity change from 0 to 1024 [ 37.652426][ T4289] [ 37.653012][ T4289] ============================================ [ 37.654489][ T4289] WARNING: possible recursive locking detected [ 37.655926][ T4289] 6.1.129-syzkaller #0 Not tainted [ 37.657105][ T4289] -------------------------------------------- [ 37.658546][ T4289] syz-executor336/4289 is trying to acquire lock: [ 37.660048][ T4289] ffff0000d9b10e88 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 37.662613][ T4289] [ 37.662613][ T4289] but task is already holding lock: [ 37.664340][ T4289] ffff0000d9b122c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 37.667000][ T4289] [ 37.667000][ T4289] other info that might help us debug this: [ 37.668894][ T4289] Possible unsafe locking scenario: [ 37.668894][ T4289] [ 37.670621][ T4289] CPU0 [ 37.671377][ T4289] ---- [ 37.672147][ T4289] lock(&HFSPLUS_I(inode)->extents_lock); [ 37.673496][ T4289] lock(&HFSPLUS_I(inode)->extents_lock); [ 37.674878][ T4289] [ 37.674878][ T4289] *** DEADLOCK *** [ 37.674878][ T4289] [ 37.676839][ T4289] May be due to missing lock nesting notation [ 37.676839][ T4289] [ 37.678812][ T4289] 6 locks held by syz-executor336/4289: [ 37.680125][ T4289] #0: ffff0000dcc78460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 37.682314][ T4289] #1: ffff0000d9b11740 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2d0/0x70c [ 37.684762][ T4289] #2: ffff0000d9b124c0 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 37.687136][ T4289] #3: ffff0000d517c998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x6a0 [ 37.689379][ T4289] #4: ffff0000d9b122c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 37.692165][ T4289] #5: ffff0000d517c8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b0 [ 37.694623][ T4289] [ 37.694623][ T4289] stack backtrace: [ 37.696039][ T4289] CPU: 1 PID: 4289 Comm: syz-executor336 Not tainted 6.1.129-syzkaller #0 [ 37.698034][ T4289] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 37.700405][ T4289] Call trace: [ 37.701174][ T4289] dump_backtrace+0x1c8/0x1f4 [ 37.702302][ T4289] show_stack+0x2c/0x3c [ 37.703277][ T4289] dump_stack_lvl+0x108/0x170 [ 37.704384][ T4289] dump_stack+0x1c/0x58 [ 37.705366][ T4289] __lock_acquire+0x6310/0x7680 [ 37.706481][ T4289] lock_acquire+0x26c/0x7cc [ 37.707566][ T4289] __mutex_lock_common+0x190/0x21a0 [ 37.708806][ T4289] mutex_lock_nested+0x38/0x44 [ 37.709984][ T4289] hfsplus_get_block+0x2c4/0x1168 [ 37.711167][ T4289] block_read_full_folio+0x2f4/0x98c [ 37.712430][ T4289] hfsplus_read_folio+0x28/0x38 [ 37.713578][ T4289] filemap_read_folio+0x14c/0x39c [ 37.714797][ T4289] do_read_cache_folio+0x24c/0x544 [ 37.716013][ T4289] read_cache_page+0x6c/0x180 [ 37.717121][ T4289] hfsplus_block_free+0x11c/0x4b0 [ 37.718319][ T4289] hfsplus_free_extents+0x148/0x8d4 [ 37.719552][ T4289] hfsplus_file_truncate+0x674/0xa18 [ 37.720803][ T4289] hfsplus_delete_inode+0x154/0x200 [ 37.722062][ T4289] hfsplus_unlink+0x414/0x6a0 [ 37.723155][ T4289] vfs_unlink+0x2f0/0x508 [ 37.724185][ T4289] do_unlinkat+0x4cc/0x70c [ 37.725253][ T4289] __arm64_sys_unlinkat+0xcc/0xfc [ 37.726431][ T4289] invoke_syscall+0x98/0x2bc [ 37.727538][ T4289] el0_svc_common+0x138/0x258 [ 37.728637][ T4289] do_el0_svc+0x58/0x13c [ 37.729616][ T4289] el0_svc+0x58/0x168 [ 37.730548][ T4289] el0t_64_sync_handler+0x84/0xf0 [ 37.731734][ T4289] el0t_64_sync+0x18c/0x190 [ 37.735015][ T4289] hfsplus: unable to mark blocks free: error -5 [ 37.736891][ T4289] hfsplus: can't free extent [ 37.738984][ T4289] hfsplus: unable to mark blocks free: error -5 [ 37.740472][ T4289] hfsplus: can't free extent [ 37.742669][ T4289] hfsplus: unable to mark blocks free: error -5 [ 37.744149][ T4289] hfsplus: can't free extent