Warning: Permanently added '10.128.1.216' (ED25519) to the list of known hosts. executing program [ 33.947889][ T6414] loop0: detected capacity change from 0 to 1024 [ 33.960361][ T6414] [ 33.960885][ T6414] ============================================ [ 33.962043][ T6414] WARNING: possible recursive locking detected [ 33.963300][ T6414] 6.12.0-rc3-syzkaller-g9ec59cb3edc7 #0 Tainted: G W [ 33.964860][ T6414] -------------------------------------------- [ 33.966110][ T6414] syz-executor295/6414 is trying to acquire lock: [ 33.967383][ T6414] ffff0000d3e71548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 33.969596][ T6414] [ 33.969596][ T6414] but task is already holding lock: [ 33.971010][ T6414] ffff0000d3e72988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 33.973190][ T6414] [ 33.973190][ T6414] other info that might help us debug this: [ 33.974771][ T6414] Possible unsafe locking scenario: [ 33.974771][ T6414] [ 33.976250][ T6414] CPU0 [ 33.976887][ T6414] ---- [ 33.977546][ T6414] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.978721][ T6414] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.979869][ T6414] [ 33.979869][ T6414] *** DEADLOCK *** [ 33.979869][ T6414] [ 33.981511][ T6414] May be due to missing lock nesting notation [ 33.981511][ T6414] [ 33.983225][ T6414] 4 locks held by syz-executor295/6414: [ 33.984327][ T6414] #0: ffff0000da352420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 33.986186][ T6414] #1: ffff0000d3e72b78 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 33.988328][ T6414] #2: ffff0000d3e72988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x24c/0xa18 [ 33.990719][ T6414] #3: ffff0000c1cb70f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b8 [ 33.992832][ T6414] [ 33.992832][ T6414] stack backtrace: [ 33.994009][ T6414] CPU: 0 UID: 0 PID: 6414 Comm: syz-executor295 Tainted: G W 6.12.0-rc3-syzkaller-g9ec59cb3edc7 #0 [ 33.996463][ T6414] Tainted: [W]=WARN [ 33.997250][ T6414] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 33.999285][ T6414] Call trace: [ 33.999936][ T6414] show_stack+0x2c/0x3c (C) [ 34.000850][ T6414] dump_stack_lvl+0xe4/0x150 [ 34.001782][ T6414] dump_stack+0x1c/0x28 [ 34.002600][ T6414] print_deadlock_bug+0x4e8/0x668 [ 34.003582][ T6414] __lock_acquire+0x6180/0x77c8 [ 34.004531][ T6414] lock_acquire+0x240/0x728 [ 34.005422][ T6414] __mutex_lock_common+0x190/0x21a0 [ 34.006468][ T6414] mutex_lock_nested+0x2c/0x38 [ 34.007420][ T6414] hfsplus_get_block+0x2c4/0x1168 [ 34.008449][ T6414] block_read_full_folio+0x3c4/0xbe0 [ 34.009566][ T6414] hfsplus_read_folio+0x28/0x38 [ 34.010542][ T6414] filemap_read_folio+0x108/0x318 [ 34.011543][ T6414] do_read_cache_folio+0x368/0x5c0 [ 34.012572][ T6414] read_cache_page+0x6c/0x15c [ 34.013512][ T6414] hfsplus_block_free+0x11c/0x4b8 [ 34.014524][ T6414] hfsplus_free_extents+0x148/0x8d4 [ 34.015598][ T6414] hfsplus_file_truncate+0x674/0xa18 [ 34.016707][ T6414] hfsplus_setattr+0x184/0x24c [ 34.017651][ T6414] notify_change+0x9f0/0xca0 [ 34.018574][ T6414] do_truncate+0x1c0/0x28c [ 34.019448][ T6414] path_openat+0x2494/0x2b14 [ 34.020351][ T6414] do_filp_open+0x1bc/0x3cc [ 34.021257][ T6414] do_sys_openat2+0x124/0x1b8 [ 34.022252][ T6414] __arm64_sys_openat+0x1f0/0x240 [ 34.023255][ T6414] invoke_syscall+0x98/0x2b8 [ 34.024165][ T6414] el0_svc_common+0x130/0x23c [ 34.025111][ T6414] do_el0_svc+0x48/0x58 [ 34.025948][ T6414] el0_svc+0x54/0x168 [ 34.026781][ T6414] el0t_64_sync_handler+0x84/0x108 [ 34.027813][ T6414] el0t_64_sync+0x198/0x19c [ 34.029862][ T6414] hfsplus: unable to mark blocks free: error -5 [ 34.031077][ T6414] hfsplus: can't free extent