Warning: Permanently added '10.128.0.165' (ED25519) to the list of known hosts. executing program [ 38.725332][ T4296] loop0: detected capacity change from 0 to 1024 [ 38.737791][ T4296] [ 38.738402][ T4296] ============================================ [ 38.740011][ T4296] WARNING: possible recursive locking detected [ 38.741659][ T4296] 6.1.128-syzkaller #0 Not tainted [ 38.743010][ T4296] -------------------------------------------- [ 38.744645][ T4296] syz-executor239/4296 is trying to acquire lock: [ 38.746297][ T4296] ffff0000d9739548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 38.749280][ T4296] [ 38.749280][ T4296] but task is already holding lock: [ 38.751168][ T4296] ffff0000d973a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.754057][ T4296] [ 38.754057][ T4296] other info that might help us debug this: [ 38.756113][ T4296] Possible unsafe locking scenario: [ 38.756113][ T4296] [ 38.758053][ T4296] CPU0 [ 38.758964][ T4296] ---- [ 38.759798][ T4296] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.761347][ T4296] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.762941][ T4296] [ 38.762941][ T4296] *** DEADLOCK *** [ 38.762941][ T4296] [ 38.765012][ T4296] May be due to missing lock nesting notation [ 38.765012][ T4296] [ 38.767107][ T4296] 4 locks held by syz-executor239/4296: [ 38.768508][ T4296] #0: ffff0000d9962460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.770934][ T4296] #1: ffff0000d973ab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 38.773545][ T4296] #2: ffff0000d973a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.776684][ T4296] #3: ffff0000c38300f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b0 [ 38.779213][ T4296] [ 38.779213][ T4296] stack backtrace: [ 38.780833][ T4296] CPU: 0 PID: 4296 Comm: syz-executor239 Not tainted 6.1.128-syzkaller #0 [ 38.782954][ T4296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 38.785405][ T4296] Call trace: [ 38.786187][ T4296] dump_backtrace+0x1c8/0x1f4 [ 38.787390][ T4296] show_stack+0x2c/0x3c [ 38.788471][ T4296] dump_stack_lvl+0x108/0x170 [ 38.789662][ T4296] dump_stack+0x1c/0x58 [ 38.790774][ T4296] __lock_acquire+0x6310/0x7680 [ 38.792084][ T4296] lock_acquire+0x26c/0x7cc [ 38.793200][ T4296] __mutex_lock_common+0x190/0x21a0 [ 38.794603][ T4296] mutex_lock_nested+0x38/0x44 [ 38.795849][ T4296] hfsplus_get_block+0x2c4/0x1168 [ 38.797073][ T4296] block_read_full_folio+0x2f4/0x98c [ 38.798341][ T4296] hfsplus_read_folio+0x28/0x38 [ 38.799585][ T4296] filemap_read_folio+0x14c/0x39c [ 38.800943][ T4296] do_read_cache_folio+0x24c/0x544 [ 38.802230][ T4296] read_cache_page+0x6c/0x180 [ 38.803437][ T4296] hfsplus_block_free+0x11c/0x4b0 [ 38.804807][ T4296] hfsplus_free_extents+0x3a4/0x8d4 [ 38.806139][ T4296] hfsplus_file_truncate+0x674/0xa18 [ 38.807559][ T4296] hfsplus_setattr+0x18c/0x25c [ 38.808835][ T4296] notify_change+0xb58/0xe1c [ 38.810019][ T4296] do_truncate+0x1c0/0x28c [ 38.811125][ T4296] vfs_truncate+0x2c4/0x36c [ 38.812312][ T4296] do_sys_truncate+0xec/0x1b4 [ 38.813534][ T4296] __arm64_sys_truncate+0x5c/0x70 [ 38.814834][ T4296] invoke_syscall+0x98/0x2bc [ 38.816034][ T4296] el0_svc_common+0x138/0x258 [ 38.817215][ T4296] do_el0_svc+0x58/0x13c [ 38.818295][ T4296] el0_svc+0x58/0x168 [ 38.819304][ T4296] el0t_64_sync_handler+0x84/0xf0 [ 38.820697][ T4296] el0t_64_sync+0x18c/0x190 [ 38.823353][ T4296] hfsplus: unable to mark blocks free: error -5 [ 38.824892][ T4296] hfsplus: can't free extent