Warning: Permanently added '10.128.1.57' (ED25519) to the list of known hosts. executing program [ 46.860796][ T4018] loop0: detected capacity change from 0 to 1024 [ 46.953433][ T4018] [ 46.953966][ T4018] ============================================ [ 46.955437][ T4018] WARNING: possible recursive locking detected [ 46.956813][ T4018] 5.15.178-syzkaller #0 Not tainted [ 46.958053][ T4018] -------------------------------------------- [ 46.959526][ T4018] syz-executor993/4018 is trying to acquire lock: [ 46.961015][ T4018] ffff0000d45d1548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1194 [ 46.963906][ T4018] [ 46.963906][ T4018] but task is already holding lock: [ 46.965818][ T4018] ffff0000d45d2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 46.968639][ T4018] [ 46.968639][ T4018] other info that might help us debug this: [ 46.970627][ T4018] Possible unsafe locking scenario: [ 46.970627][ T4018] [ 46.972532][ T4018] CPU0 [ 46.973336][ T4018] ---- [ 46.974119][ T4018] lock(&HFSPLUS_I(inode)->extents_lock); [ 46.975566][ T4018] lock(&HFSPLUS_I(inode)->extents_lock); [ 46.977091][ T4018] [ 46.977091][ T4018] *** DEADLOCK *** [ 46.977091][ T4018] [ 46.979161][ T4018] May be due to missing lock nesting notation [ 46.979161][ T4018] [ 46.981313][ T4018] 6 locks held by syz-executor993/4018: [ 46.982730][ T4018] #0: ffff0000c8638460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 46.985229][ T4018] #1: ffff0000d45d1e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x2d0/0x830 [ 46.987891][ T4018] #2: ffff0000d45d2b80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: vfs_unlink+0xd8/0x508 [ 46.990524][ T4018] #3: ffff0000c4ca7198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x144/0x6a0 [ 46.993025][ T4018] #4: ffff0000d45d2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0xa2c [ 46.995963][ T4018] #5: ffff0000c4ca70f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x514 [ 46.998506][ T4018] [ 46.998506][ T4018] stack backtrace: [ 46.999914][ T4018] CPU: 1 PID: 4018 Comm: syz-executor993 Not tainted 5.15.178-syzkaller #0 [ 47.002097][ T4018] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 47.004718][ T4018] Call trace: [ 47.005594][ T4018] dump_backtrace+0x0/0x530 [ 47.006762][ T4018] show_stack+0x2c/0x3c [ 47.007895][ T4018] dump_stack_lvl+0x108/0x170 [ 47.009035][ T4018] dump_stack+0x1c/0x58 [ 47.010058][ T4018] __lock_acquire+0x62bc/0x7638 [ 47.011306][ T4018] lock_acquire+0x240/0x77c [ 47.012478][ T4018] __mutex_lock_common+0x194/0x2154 [ 47.013864][ T4018] mutex_lock_nested+0xa4/0xf8 [ 47.015102][ T4018] hfsplus_get_block+0x2c4/0x1194 [ 47.016412][ T4018] block_read_full_page+0x2a0/0xc4c [ 47.017752][ T4018] hfsplus_readpage+0x28/0x38 [ 47.018949][ T4018] do_read_cache_page+0x60c/0x950 [ 47.020245][ T4018] read_cache_page+0x68/0x84 [ 47.021425][ T4018] hfsplus_block_free+0x120/0x514 [ 47.022717][ T4018] hfsplus_free_extents+0x148/0x8d4 [ 47.024017][ T4018] hfsplus_file_truncate+0x678/0xa2c [ 47.025345][ T4018] hfsplus_delete_inode+0x154/0x200 [ 47.026609][ T4018] hfsplus_unlink+0x414/0x6a0 [ 47.027808][ T4018] vfs_unlink+0x2f0/0x508 [ 47.028945][ T4018] do_unlinkat+0x4cc/0x830 [ 47.030120][ T4018] __arm64_sys_unlinkat+0xcc/0xfc [ 47.031291][ T4018] invoke_syscall+0x98/0x2b8 [ 47.032442][ T4018] el0_svc_common+0x138/0x258 [ 47.033629][ T4018] do_el0_svc+0x58/0x14c [ 47.034705][ T4018] el0_svc+0x7c/0x1f0 [ 47.035714][ T4018] el0t_64_sync_handler+0x84/0xe4 [ 47.036992][ T4018] el0t_64_sync+0x1a0/0x1a4 [ 47.039209][ T4018] hfsplus: unable to mark blocks free: error -5 [ 47.040873][ T4018] hfsplus: can't free extent