Warning: Permanently added '10.128.0.100' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 36.950074][ T4214] loop0: detected capacity change from 0 to 1024 [ 36.962239][ T4214] [ 36.962721][ T4214] ============================================ [ 36.963937][ T4214] WARNING: possible recursive locking detected [ 36.965216][ T4214] 6.1.28-syzkaller #0 Not tainted [ 36.966243][ T4214] -------------------------------------------- [ 36.967586][ T4214] syz-executor375/4214 is trying to acquire lock: [ 36.968876][ T4214] ffff0000d8119548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 36.971143][ T4214] [ 36.971143][ T4214] but task is already holding lock: [ 36.972603][ T4214] ffff0000d811a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14cc [ 36.974993][ T4214] [ 36.974993][ T4214] other info that might help us debug this: [ 36.976726][ T4214] Possible unsafe locking scenario: [ 36.976726][ T4214] [ 36.978280][ T4214] CPU0 [ 36.978963][ T4214] ---- [ 36.979631][ T4214] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.980896][ T4214] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.982026][ T4214] [ 36.982026][ T4214] *** DEADLOCK *** [ 36.982026][ T4214] [ 36.983671][ T4214] May be due to missing lock nesting notation [ 36.983671][ T4214] [ 36.985380][ T4214] 4 locks held by syz-executor375/4214: [ 36.986518][ T4214] #0: ffff0000d7ea0460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x244/0x914 [ 36.988437][ T4214] #1: ffff0000d811ab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: generic_file_write_iter+0x88/0x2b4 [ 36.990793][ T4214] #2: ffff0000d811a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14cc [ 36.993306][ T4214] #3: ffff0000d81128f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x90/0x818 [ 36.995463][ T4214] [ 36.995463][ T4214] stack backtrace: [ 36.996693][ T4214] CPU: 0 PID: 4214 Comm: syz-executor375 Not tainted 6.1.28-syzkaller #0 [ 36.998431][ T4214] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 37.000543][ T4214] Call trace: [ 37.001199][ T4214] dump_backtrace+0x1c8/0x1f4 [ 37.002137][ T4214] show_stack+0x2c/0x3c [ 37.002938][ T4214] dump_stack_lvl+0x108/0x170 [ 37.003994][ T4214] dump_stack+0x1c/0x5c [ 37.004896][ T4214] __lock_acquire+0x6310/0x764c [ 37.005930][ T4214] lock_acquire+0x26c/0x7cc [ 37.006936][ T4214] __mutex_lock_common+0x190/0x21a0 [ 37.008024][ T4214] mutex_lock_nested+0x38/0x44 [ 37.009058][ T4214] hfsplus_get_block+0x2c4/0x1168 [ 37.010129][ T4214] block_read_full_folio+0x2f4/0x98c [ 37.011300][ T4214] hfsplus_read_folio+0x28/0x38 [ 37.012328][ T4214] filemap_read_folio+0x14c/0x39c [ 37.013374][ T4214] do_read_cache_folio+0x24c/0x544 [ 37.014473][ T4214] read_cache_page+0x6c/0x180 [ 37.015448][ T4214] hfsplus_block_allocate+0xe0/0x818 [ 37.016568][ T4214] hfsplus_file_extend+0x770/0x14cc [ 37.017632][ T4214] hfsplus_get_block+0x398/0x1168 [ 37.018704][ T4214] __block_write_begin_int+0x340/0x13b4 [ 37.019952][ T4214] cont_write_begin+0x5c0/0x7d8 [ 37.020982][ T4214] hfsplus_write_begin+0x98/0xe4 [ 37.022033][ T4214] generic_perform_write+0x278/0x55c [ 37.023105][ T4214] __generic_file_write_iter+0x168/0x388 [ 37.024311][ T4214] generic_file_write_iter+0xb8/0x2b4 [ 37.025459][ T4214] vfs_write+0x610/0x914 [ 37.026279][ T4214] ksys_write+0x15c/0x26c [ 37.027152][ T4214] __arm64_sys_write+0x7c/0x90 [ 37.028117][ T4214] invoke_syscall+0x98/0x2c0 [ 37.029130][ T4214] el0_svc_common+0x138/0x258 [ 37.030079][ T4214] do_el0_svc+0x64/0x218 [ 37.030973][ T4214] el0_svc+0x58/0x168 [ 37.031883][ T4214] el0t_64_sync_handler+0x84/0xf0 [ 37.032959][ T4214] el0t_64_sync+0x18c/0x190