Warning: Permanently added '10.128.0.173' (ED25519) to the list of known hosts. executing program syzkaller login: [ 36.579749][ T4220] loop0: detected capacity change from 0 to 1024 [ 36.594208][ T4220] [ 36.594815][ T4220] ============================================ [ 36.596294][ T4220] WARNING: possible recursive locking detected [ 36.597865][ T4220] 6.1.82-syzkaller #0 Not tainted [ 36.599023][ T4220] -------------------------------------------- [ 36.600321][ T4220] syz-executor428/4220 is trying to acquire lock: [ 36.601712][ T4220] ffff0000d5dd9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x2c4/0x1168 [ 36.604335][ T4220] [ 36.604335][ T4220] but task is already holding lock: [ 36.606128][ T4220] ffff0000d5dda988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14cc [ 36.608551][ T4220] [ 36.608551][ T4220] other info that might help us debug this: [ 36.610359][ T4220] Possible unsafe locking scenario: [ 36.610359][ T4220] [ 36.612100][ T4220] CPU0 [ 36.612864][ T4220] ---- [ 36.613590][ T4220] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.614985][ T4220] lock(&HFSPLUS_I(inode)->extents_lock); [ 36.616371][ T4220] [ 36.616371][ T4220] *** DEADLOCK *** [ 36.616371][ T4220] [ 36.618505][ T4220] May be due to missing lock nesting notation [ 36.618505][ T4220] [ 36.620454][ T4220] 4 locks held by syz-executor428/4220: [ 36.621642][ T4220] #0: ffff0000d6458460 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c [ 36.623748][ T4220] #1: ffff0000d5ddab80 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c [ 36.626127][ T4220] #2: ffff0000d5dda988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14cc [ 36.628859][ T4220] #3: ffff0000d81928f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x90/0x818 [ 36.631291][ T4220] [ 36.631291][ T4220] stack backtrace: [ 36.632700][ T4220] CPU: 0 PID: 4220 Comm: syz-executor428 Not tainted 6.1.82-syzkaller #0 [ 36.634646][ T4220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 36.636857][ T4220] Call trace: [ 36.637716][ T4220] dump_backtrace+0x1c8/0x1f4 [ 36.638772][ T4220] show_stack+0x2c/0x3c [ 36.639717][ T4220] dump_stack_lvl+0x108/0x170 [ 36.640772][ T4220] dump_stack+0x1c/0x58 [ 36.641848][ T4220] __lock_acquire+0x6310/0x7680 [ 36.643062][ T4220] lock_acquire+0x26c/0x7cc [ 36.644037][ T4220] __mutex_lock_common+0x190/0x21a0 [ 36.645176][ T4220] mutex_lock_nested+0x38/0x44 [ 36.646201][ T4220] hfsplus_get_block+0x2c4/0x1168 [ 36.647312][ T4220] block_read_full_folio+0x2f4/0x98c [ 36.648471][ T4220] hfsplus_read_folio+0x28/0x38 [ 36.649731][ T4220] filemap_read_folio+0x14c/0x39c [ 36.650935][ T4220] do_read_cache_folio+0x24c/0x544 [ 36.652117][ T4220] read_cache_page+0x6c/0x180 [ 36.653238][ T4220] hfsplus_block_allocate+0xe0/0x818 [ 36.654508][ T4220] hfsplus_file_extend+0x770/0x14cc [ 36.655701][ T4220] hfsplus_get_block+0x398/0x1168 [ 36.656859][ T4220] __block_write_begin_int+0x340/0x13b4 [ 36.658155][ T4220] cont_write_begin+0x5c0/0x7d8 [ 36.659235][ T4220] hfsplus_write_begin+0x98/0xe4 [ 36.660416][ T4220] cont_write_begin+0x2ac/0x7d8 [ 36.661609][ T4220] hfsplus_write_begin+0x98/0xe4 [ 36.662854][ T4220] generic_cont_expand_simple+0x160/0x258 [ 36.664157][ T4220] hfsplus_setattr+0x148/0x25c [ 36.665236][ T4220] notify_change+0xb58/0xe1c [ 36.666295][ T4220] do_truncate+0x1c0/0x28c [ 36.667302][ T4220] vfs_truncate+0x2c4/0x36c [ 36.668362][ T4220] do_sys_truncate+0xec/0x1b4 [ 36.669575][ T4220] __arm64_sys_truncate+0x5c/0x70 [ 36.670626][ T4220] invoke_syscall+0x98/0x2c0 [ 36.671723][ T4220] el0_svc_common+0x138/0x258 [ 36.672905][ T4220] do_el0_svc+0x64/0x218 [ 36.673852][ T4220] el0_svc+0x58/0x168 [ 36.674804][ T4220] el0t_64_sync_handler+0x84/0xf0 [ 36.675984][ T4220] el0t_64_sync+0x18c/0x190