Warning: Permanently added '10.128.0.74' (ED25519) to the list of known hosts. executing program [ 35.897776][ T4226] loop0: detected capacity change from 0 to 1024 [ 35.910061][ T4226] [ 35.910764][ T4226] ============================================ [ 35.912461][ T4226] WARNING: possible recursive locking detected [ 35.914132][ T4226] 6.1.80-syzkaller #0 Not tainted [ 35.915464][ T4226] -------------------------------------------- [ 35.917106][ T4226] syz-executor161/4226 is trying to acquire lock: [ 35.918826][ T4226] ffff0000d8011548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 35.921851][ T4226] [ 35.921851][ T4226] but task is already holding lock: [ 35.923870][ T4226] ffff0000d8012988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0x9b8 [ 35.926970][ T4226] [ 35.926970][ T4226] other info that might help us debug this: [ 35.929158][ T4226] Possible unsafe locking scenario: [ 35.929158][ T4226] [ 35.931174][ T4226] CPU0 [ 35.932037][ T4226] ---- [ 35.932937][ T4226] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.934551][ T4226] lock(&HFSPLUS_I(inode)->extents_lock); [ 35.936119][ T4226] [ 35.936119][ T4226] *** DEADLOCK *** [ 35.936119][ T4226] [ 35.938268][ T4226] May be due to missing lock nesting notation [ 35.938268][ T4226] [ 35.940512][ T4226] 4 locks held by syz-executor161/4226: [ 35.941984][ T4226] #0: ffff0000d8000460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 35.944510][ T4226] #1: ffff0000d8012b80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 35.947385][ T4226] #2: ffff0000d8012988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x250/0x9b8 [ 35.950626][ T4226] #3: ffff0000d55be8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xcc/0x4b0 [ 35.953358][ T4226] [ 35.953358][ T4226] stack backtrace: [ 35.955014][ T4226] CPU: 1 PID: 4226 Comm: syz-executor161 Not tainted 6.1.80-syzkaller #0 [ 35.957286][ T4226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 35.959940][ T4226] Call trace: [ 35.960822][ T4226] dump_backtrace+0x1c8/0x1f4 [ 35.962154][ T4226] show_stack+0x2c/0x3c [ 35.963247][ T4226] dump_stack_lvl+0x108/0x170 [ 35.964479][ T4226] dump_stack+0x1c/0x58 [ 35.965624][ T4226] __lock_acquire+0x6310/0x7680 [ 35.966971][ T4226] lock_acquire+0x26c/0x7cc [ 35.968142][ T4226] __mutex_lock_common+0x190/0x21a0 [ 35.969550][ T4226] mutex_lock_nested+0x38/0x44 [ 35.970862][ T4226] hfsplus_get_block+0x2c4/0x1168 [ 35.972212][ T4226] block_read_full_folio+0x2f4/0x98c [ 35.973629][ T4226] hfsplus_read_folio+0x28/0x38 [ 35.975007][ T4226] filemap_read_folio+0x14c/0x39c [ 35.976371][ T4226] do_read_cache_folio+0x24c/0x544 [ 35.977724][ T4226] read_cache_page+0x6c/0x180 [ 35.978956][ T4226] hfsplus_block_free+0x11c/0x4b0 [ 35.980375][ T4226] hfsplus_free_extents+0x148/0x8d4 [ 35.981786][ T4226] hfsplus_file_truncate+0x698/0x9b8 [ 35.983236][ T4226] hfsplus_setattr+0x18c/0x25c [ 35.984549][ T4226] notify_change+0xb58/0xe1c [ 35.985789][ T4226] do_truncate+0x1c0/0x28c [ 35.986957][ T4226] vfs_truncate+0x2c4/0x36c [ 35.988241][ T4226] do_sys_truncate+0xec/0x1b4 [ 35.989441][ T4226] __arm64_sys_truncate+0x5c/0x70 [ 35.990843][ T4226] invoke_syscall+0x98/0x2c0 [ 35.992105][ T4226] el0_svc_common+0x138/0x258 [ 35.993362][ T4226] do_el0_svc+0x64/0x218 [ 35.994477][ T4226] el0_svc+0x58/0x168 [ 35.995529][ T4226] el0t_64_sync_handler+0x84/0xf0 [ 35.996849][ T4226] el0t_64_sync+0x18c/0x190 [ 35.998600][ T4226] hfsplus: request for non-existent node 16777216 in B*Tree [ 36.001264][ T4226] hfsplus: request for non-existent node 16777216 in B*Tree [ 36.003446][ T4226] hfsplus: unable to mark blocks free: error -5 [ 36.005121][ T4226] hfsplus: can't free extent