Warning: Permanently added '10.128.0.241' (ED25519) to the list of known hosts. executing program [ 38.712243][ T4291] loop0: detected capacity change from 0 to 1024 [ 38.724976][ T4291] [ 38.725673][ T4291] ============================================ [ 38.727140][ T4291] WARNING: possible recursive locking detected [ 38.728736][ T4291] 6.1.128-syzkaller #0 Not tainted [ 38.730158][ T4291] -------------------------------------------- [ 38.731769][ T4291] syz-executor384/4291 is trying to acquire lock: [ 38.733581][ T4291] ffff0000d9621548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 38.736520][ T4291] [ 38.736520][ T4291] but task is already holding lock: [ 38.738519][ T4291] ffff0000d9622988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.741505][ T4291] [ 38.741505][ T4291] other info that might help us debug this: [ 38.743536][ T4291] Possible unsafe locking scenario: [ 38.743536][ T4291] [ 38.745530][ T4291] CPU0 [ 38.746435][ T4291] ---- [ 38.747280][ T4291] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.748801][ T4291] lock(&HFSPLUS_I(inode)->extents_lock); [ 38.750351][ T4291] [ 38.750351][ T4291] *** DEADLOCK *** [ 38.750351][ T4291] [ 38.752542][ T4291] May be due to missing lock nesting notation [ 38.752542][ T4291] [ 38.754749][ T4291] 4 locks held by syz-executor384/4291: [ 38.756243][ T4291] #0: ffff0000d9768460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 38.758723][ T4291] #1: ffff0000d9622b80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 38.761533][ T4291] #2: ffff0000d9622988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 38.764642][ T4291] #3: ffff0000c2f9f0f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b0 [ 38.767346][ T4291] [ 38.767346][ T4291] stack backtrace: [ 38.768889][ T4291] CPU: 1 PID: 4291 Comm: syz-executor384 Not tainted 6.1.128-syzkaller #0 [ 38.771102][ T4291] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 38.773817][ T4291] Call trace: [ 38.774701][ T4291] dump_backtrace+0x1c8/0x1f4 [ 38.775898][ T4291] show_stack+0x2c/0x3c [ 38.777009][ T4291] dump_stack_lvl+0x108/0x170 [ 38.778265][ T4291] dump_stack+0x1c/0x58 [ 38.779359][ T4291] __lock_acquire+0x6310/0x7680 [ 38.780570][ T4291] lock_acquire+0x26c/0x7cc [ 38.781726][ T4291] __mutex_lock_common+0x190/0x21a0 [ 38.783130][ T4291] mutex_lock_nested+0x38/0x44 [ 38.784448][ T4291] hfsplus_get_block+0x2c4/0x1168 [ 38.785811][ T4291] block_read_full_folio+0x2f4/0x98c [ 38.787225][ T4291] hfsplus_read_folio+0x28/0x38 [ 38.788444][ T4291] filemap_read_folio+0x14c/0x39c [ 38.789774][ T4291] do_read_cache_folio+0x24c/0x544 [ 38.791114][ T4291] read_cache_page+0x6c/0x180 [ 38.792323][ T4291] hfsplus_block_free+0x11c/0x4b0 [ 38.793727][ T4291] hfsplus_free_extents+0x3a4/0x8d4 [ 38.795113][ T4291] hfsplus_file_truncate+0x674/0xa18 [ 38.796573][ T4291] hfsplus_setattr+0x18c/0x25c [ 38.797810][ T4291] notify_change+0xb58/0xe1c [ 38.799140][ T4291] do_truncate+0x1c0/0x28c [ 38.800293][ T4291] vfs_truncate+0x2c4/0x36c [ 38.801514][ T4291] do_sys_truncate+0xec/0x1b4 [ 38.802767][ T4291] __arm64_sys_truncate+0x5c/0x70 [ 38.804196][ T4291] invoke_syscall+0x98/0x2bc [ 38.805365][ T4291] el0_svc_common+0x138/0x258 [ 38.806669][ T4291] do_el0_svc+0x58/0x13c [ 38.807777][ T4291] el0_svc+0x58/0x168 [ 38.808842][ T4291] el0t_64_sync_handler+0x84/0xf0 [ 38.810240][ T4291] el0t_64_sync+0x18c/0x190 [ 38.812407][ T4291] hfsplus: unable to mark blocks free: error -5 [ 38.814107][ T4291] hfsplus: can't free extent