Warning: Permanently added '10.128.1.117' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 43.736739][ T3960] loop0: detected capacity change from 0 to 64 [ 43.809386][ T3960] [ 43.809935][ T3960] ============================================ [ 43.811166][ T3960] WARNING: possible recursive locking detected [ 43.812403][ T3960] 5.15.117-syzkaller #0 Not tainted [ 43.813511][ T3960] -------------------------------------------- [ 43.814805][ T3960] syz-executor280/3960 is trying to acquire lock: [ 43.816229][ T3960] ffff0000c94000b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 43.818176][ T3960] [ 43.818176][ T3960] but task is already holding lock: [ 43.819756][ T3960] ffff0000c94000b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 43.821675][ T3960] [ 43.821675][ T3960] other info that might help us debug this: [ 43.823314][ T3960] Possible unsafe locking scenario: [ 43.823314][ T3960] [ 43.824892][ T3960] CPU0 [ 43.825547][ T3960] ---- [ 43.826172][ T3960] lock(&tree->tree_lock/1); [ 43.827122][ T3960] lock(&tree->tree_lock/1); [ 43.828129][ T3960] [ 43.828129][ T3960] *** DEADLOCK *** [ 43.828129][ T3960] [ 43.829811][ T3960] May be due to missing lock nesting notation [ 43.829811][ T3960] [ 43.831502][ T3960] 5 locks held by syz-executor280/3960: [ 43.832668][ T3960] #0: ffff0000c1ee6460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x228/0xb3c [ 43.834508][ T3960] #1: ffff0000c2269628 (&sb->s_type->i_mutex_key#17){+.+.}-{3:3}, at: generic_file_write_iter+0x84/0x1b8 [ 43.836940][ T3960] #2: ffff0000c2269478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x10e4 [ 43.839209][ T3960] #3: ffff0000c94000b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 43.841375][ T3960] #4: ffff0000c22680f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x10e4 [ 43.843669][ T3960] [ 43.843669][ T3960] stack backtrace: [ 43.844776][ T3960] CPU: 0 PID: 3960 Comm: syz-executor280 Not tainted 5.15.117-syzkaller #0 [ 43.846549][ T3960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 43.848710][ T3960] Call trace: [ 43.849351][ T3960] dump_backtrace+0x0/0x530 [ 43.850308][ T3960] show_stack+0x2c/0x3c [ 43.851098][ T3960] dump_stack_lvl+0x108/0x170 [ 43.852047][ T3960] dump_stack+0x1c/0x58 [ 43.852919][ T3960] __lock_acquire+0x62b4/0x7620 [ 43.853948][ T3960] lock_acquire+0x240/0x77c [ 43.854935][ T3960] __mutex_lock_common+0x194/0x2154 [ 43.855986][ T3960] mutex_lock_nested+0xa4/0xf8 [ 43.857022][ T3960] hfs_find_init+0x148/0x1c8 [ 43.857977][ T3960] hfs_extend_file+0x24c/0x10e4 [ 43.858972][ T3960] hfs_bmap_reserve+0xd0/0x3b4 [ 43.859953][ T3960] __hfs_ext_write_extent+0x1a0/0x468 [ 43.861086][ T3960] __hfs_ext_cache_extent+0x84/0x754 [ 43.862242][ T3960] hfs_extend_file+0x278/0x10e4 [ 43.863278][ T3960] hfs_get_block+0x3ac/0x9fc [ 43.864251][ T3960] __block_write_begin_int+0x3ec/0x1608 [ 43.865415][ T3960] cont_write_begin+0x538/0x710 [ 43.866528][ T3960] hfs_write_begin+0xa8/0xf8 [ 43.867477][ T3960] generic_perform_write+0x24c/0x520 [ 43.868559][ T3960] __generic_file_write_iter+0x230/0x454 [ 43.869811][ T3960] generic_file_write_iter+0xb4/0x1b8 [ 43.871019][ T3960] vfs_write+0x87c/0xb3c [ 43.871946][ T3960] ksys_write+0x15c/0x26c [ 43.872881][ T3960] __arm64_sys_write+0x7c/0x90 [ 43.873879][ T3960] invoke_syscall+0x98/0x2b8 [ 43.874849][ T3960] el0_svc_common+0x138/0x258 [ 43.875851][ T3960] do_el0_svc+0x58/0x14c [ 43.876761][ T3960] el0_svc+0x7c/0x1f0 [ 43.877617][ T3960] el0t_64_sync_handler+0x84/0xe4 [ 43.878659][ T3960] el0t_64_sync+0x1a0/0x1a4 [ 48.753277][ T390] attempt to access beyond end of device [ 48.753277][ T390] loop0: rw=1048577, want=96, limit=64 [ 48.755609][ T390] Buffer I/O error on dev loop0, logical block 95, lost async page write [ 48.757339][ T390] attempt to access beyond end of device [ 48.757339][ T390] loop0: rw=1048577, want=97, limit=64 [ 48.759556][ T390] Buffer I/O error on dev loop0, logical block 96, lost async page write [ 48.761259][ T390] attempt to access beyond end of device [ 48.761259][ T390] loop0: rw=1048577, want=99, limit=64 [ 48.763552][ T390] Buffer I/O error on dev loop0, logical block 98, lost async page write [ 48.765392][ T390] attempt to access beyond end of device [ 48.765392][ T390] loop0: rw=1048577, want=101, limit=64 [ 48.767733][ T390] Buffer I/O error on dev loop0, logical block 100, lost async page write [ 48.769549][ T390] attempt to access beyond end of device [ 48.769549][ T390] loop0: rw=1048577, want=102, limit=64 [ 48.771888][ T390] Buffer I/O error on dev loop0, logical block 101, lost async page write [ 48.773721][ T390] attempt to access beyond end of device [ 48.773721][ T390] loop0: rw=1048577, want=103, limit=64 [ 48.776074][ T390] Buffer I/O error on dev loop0, logical block 102, lost async page write [ 48.777980][ T390] attempt to access beyond end of device [ 48.777980][ T390] loop0: rw=1048577, want=104, limit=64 [ 48.780253][ T390] Buffer I/O error on dev loop0, logical block 103, lost async page write [ 48.782015][ T390] attempt to access beyond end of device [ 48.782015][ T390] loop0: rw=1048577, want=105, limit=64 [ 48.784452][ T390] Buffer I/O error on dev loop0, logical block 104, lost async page write [ 48.791877][ T390] attempt to access beyond end of device [ 48.791877][ T390] loop0: rw=1, want=4169, limit=64