Warning: Permanently added '10.128.1.47' (ED25519) to the list of known hosts. executing program [ 31.175598][ T6408] loop0: detected capacity change from 0 to 64 [ 31.471536][ T6408] [ 31.472041][ T6408] ============================================ [ 31.473307][ T6408] WARNING: possible recursive locking detected [ 31.474629][ T6408] 6.11.0-rc7-syzkaller-g5f5673607153 #0 Not tainted [ 31.475978][ T6408] -------------------------------------------- [ 31.477324][ T6408] syz-executor207/6408 is trying to acquire lock: [ 31.478611][ T6408] ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 31.480513][ T6408] [ 31.480513][ T6408] but task is already holding lock: [ 31.482003][ T6408] ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 31.483919][ T6408] [ 31.483919][ T6408] other info that might help us debug this: [ 31.485624][ T6408] Possible unsafe locking scenario: [ 31.485624][ T6408] [ 31.487101][ T6408] CPU0 [ 31.487802][ T6408] ---- [ 31.488459][ T6408] lock(&tree->tree_lock/1); [ 31.489412][ T6408] lock(&tree->tree_lock/1); [ 31.490394][ T6408] [ 31.490394][ T6408] *** DEADLOCK *** [ 31.490394][ T6408] [ 31.492126][ T6408] May be due to missing lock nesting notation [ 31.492126][ T6408] [ 31.493947][ T6408] 5 locks held by syz-executor207/6408: [ 31.495153][ T6408] #0: ffff0000c2fba420 (sb_writers#8){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc [ 31.497112][ T6408] #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc [ 31.499273][ T6408] #2: ffff0000c43b1478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 31.501491][ T6408] #3: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 31.503601][ T6408] #4: ffff0000c43b00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 31.506177][ T6408] [ 31.506177][ T6408] stack backtrace: [ 31.507434][ T6408] CPU: 1 UID: 0 PID: 6408 Comm: syz-executor207 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 [ 31.509626][ T6408] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 [ 31.511821][ T6408] Call trace: [ 31.512463][ T6408] dump_backtrace+0x1b8/0x1e4 [ 31.513466][ T6408] show_stack+0x2c/0x3c [ 31.514328][ T6408] dump_stack_lvl+0xe4/0x150 [ 31.515331][ T6408] dump_stack+0x1c/0x28 [ 31.516271][ T6408] print_deadlock_bug+0x4e4/0x660 [ 31.517326][ T6408] __lock_acquire+0x6160/0x779c [ 31.518364][ T6408] lock_acquire+0x240/0x728 [ 31.519344][ T6408] __mutex_lock_common+0x190/0x21a0 [ 31.520471][ T6408] mutex_lock_nested+0x2c/0x38 [ 31.521427][ T6408] hfs_find_init+0x148/0x1c8 [ 31.522370][ T6408] hfs_extend_file+0x270/0x1130 [ 31.523441][ T6408] hfs_bmap_reserve+0xd0/0x3b4 [ 31.524509][ T6408] __hfs_ext_write_extent+0x1a0/0x468 [ 31.525739][ T6408] __hfs_ext_cache_extent+0x84/0x754 [ 31.526848][ T6408] hfs_extend_file+0x29c/0x1130 [ 31.527881][ T6408] hfs_get_block+0x3b8/0x9e0 [ 31.528921][ T6408] __block_write_begin_int+0x580/0x166c [ 31.530036][ T6408] cont_write_begin+0x79c/0xc40 [ 31.531080][ T6408] hfs_write_begin+0x98/0xe4 [ 31.532152][ T6408] cont_write_begin+0x2d8/0xc40 [ 31.533261][ T6408] hfs_write_begin+0x98/0xe4 [ 31.534257][ T6408] hfs_file_truncate+0x1a4/0xeb0 [ 31.535448][ T6408] hfs_inode_setattr+0x3a0/0x558 [ 31.536471][ T6408] notify_change+0x9f0/0xca0 [ 31.537416][ T6408] do_ftruncate+0x3e4/0x4cc [ 31.538317][ T6408] __arm64_sys_ftruncate+0x94/0xec [ 31.539425][ T6408] invoke_syscall+0x98/0x2b8 [ 31.540405][ T6408] el0_svc_common+0x130/0x23c [ 31.541389][ T6408] do_el0_svc+0x48/0x58 [ 31.542335][ T6408] el0_svc+0x54/0x168 [ 31.543173][ T6408] el0t_64_sync_handler+0x84/0xfc [ 31.544356][ T6408] el0t_64_sync+0x190/0x194 [ 36.258891][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.258891][ T4452] loop0: rw=1048577, sector=4169, nr_sectors = 1 limit=64 [ 36.261851][ T4452] Buffer I/O error on dev loop0, logical block 4169, lost async page write [ 36.263591][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.263591][ T4452] loop0: rw=1048577, sector=4170, nr_sectors = 1 limit=64 [ 36.266413][ T4452] Buffer I/O error on dev loop0, logical block 4170, lost async page write [ 36.268220][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.268220][ T4452] loop0: rw=1048577, sector=4172, nr_sectors = 1 limit=64 [ 36.271111][ T4452] Buffer I/O error on dev loop0, logical block 4172, lost async page write [ 36.272795][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.272795][ T4452] loop0: rw=1048577, sector=4173, nr_sectors = 1 limit=64 [ 36.275642][ T4452] Buffer I/O error on dev loop0, logical block 4173, lost async page write [ 36.277540][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.277540][ T4452] loop0: rw=1048577, sector=4174, nr_sectors = 1 limit=64 [ 36.280377][ T4452] Buffer I/O error on dev loop0, logical block 4174, lost async page write [ 36.282154][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.282154][ T4452] loop0: rw=1048577, sector=4175, nr_sectors = 1 limit=64 [ 36.284920][ T4452] Buffer I/O error on dev loop0, logical block 4175, lost async page write [ 36.286645][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.286645][ T4452] loop0: rw=1048577, sector=4176, nr_sectors = 1 limit=64 [ 36.289610][ T4452] Buffer I/O error on dev loop0, logical block 4176, lost async page write [ 36.291412][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.291412][ T4452] loop0: rw=1048577, sector=4177, nr_sectors = 1 limit=64 [ 36.294177][ T4452] Buffer I/O error on dev loop0, logical block 4177, lost async page write [ 36.295967][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.295967][ T4452] loop0: rw=1048577, sector=4178, nr_sectors = 16 limit=64 [ 36.298962][ T4452] kworker/u8:12: attempt to access beyond end of device [ 36.298962][ T4452] loop0: rw=1048577, sector=4196, nr_sectors = 160 limit=64 [ 36.301895][ T4452] Buffer I/O error on dev loop0, logical block 4356, lost async page write [ 36.303649][ T4452] Buffer I/O error on dev loop0, logical block 4357, lost async page write