Warning: Permanently added '10.128.1.3' (ED25519) to the list of known hosts. executing program [ 38.719176][ T6241] loop0: detected capacity change from 0 to 64 [ 39.036645][ T6241] [ 39.037335][ T6241] ============================================ [ 39.039002][ T6241] WARNING: possible recursive locking detected [ 39.040583][ T6241] 6.9.0-rc7-syzkaller-gfda5695d692c #0 Not tainted [ 39.042308][ T6241] -------------------------------------------- [ 39.044050][ T6241] syz-executor266/6241 is trying to acquire lock: [ 39.045791][ T6241] ffff0000d80aa0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 39.048341][ T6241] [ 39.048341][ T6241] but task is already holding lock: [ 39.050290][ T6241] ffff0000d80aa0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 39.052876][ T6241] [ 39.052876][ T6241] other info that might help us debug this: [ 39.054996][ T6241] Possible unsafe locking scenario: [ 39.054996][ T6241] [ 39.056991][ T6241] CPU0 [ 39.057855][ T6241] ---- [ 39.058819][ T6241] lock(&tree->tree_lock/1); [ 39.060080][ T6241] lock(&tree->tree_lock/1); [ 39.061329][ T6241] [ 39.061329][ T6241] *** DEADLOCK *** [ 39.061329][ T6241] [ 39.063502][ T6241] May be due to missing lock nesting notation [ 39.063502][ T6241] [ 39.065681][ T6241] 5 locks held by syz-executor266/6241: [ 39.067115][ T6241] #0: ffff0000d80ac420 (sb_writers#8){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc [ 39.069545][ T6241] #1: ffff0000d7001628 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc [ 39.072337][ T6241] #2: ffff0000d7001478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 39.075208][ T6241] #3: ffff0000d80aa0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 39.077861][ T6241] #4: ffff0000d70000f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 39.081025][ T6241] [ 39.081025][ T6241] stack backtrace: [ 39.082574][ T6241] CPU: 0 PID: 6241 Comm: syz-executor266 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 [ 39.085200][ T6241] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 39.087934][ T6241] Call trace: [ 39.088787][ T6241] dump_backtrace+0x1b8/0x1e4 [ 39.090099][ T6241] show_stack+0x2c/0x3c [ 39.091223][ T6241] dump_stack_lvl+0xe4/0x150 [ 39.092441][ T6241] dump_stack+0x1c/0x28 [ 39.093519][ T6241] print_deadlock_bug+0x4e4/0x660 [ 39.094860][ T6241] __lock_acquire+0x5fe4/0x763c [ 39.096187][ T6241] lock_acquire+0x248/0x73c [ 39.097368][ T6241] __mutex_lock_common+0x190/0x21a0 [ 39.098812][ T6241] mutex_lock_nested+0x2c/0x38 [ 39.100121][ T6241] hfs_find_init+0x148/0x1c8 [ 39.101316][ T6241] hfs_extend_file+0x270/0x1130 [ 39.102609][ T6241] hfs_bmap_reserve+0xd0/0x3b4 [ 39.103901][ T6241] __hfs_ext_write_extent+0x1a0/0x468 [ 39.105356][ T6241] __hfs_ext_cache_extent+0x84/0x754 [ 39.106799][ T6241] hfs_extend_file+0x29c/0x1130 [ 39.108062][ T6241] hfs_get_block+0x3b8/0x9e0 [ 39.109304][ T6241] __block_write_begin_int+0x580/0x166c [ 39.110853][ T6241] cont_write_begin+0x79c/0xc40 [ 39.112145][ T6241] hfs_write_begin+0x98/0xe4 [ 39.113385][ T6241] cont_write_begin+0x2d8/0xc40 [ 39.114698][ T6241] hfs_write_begin+0x98/0xe4 [ 39.115924][ T6241] hfs_file_truncate+0x1a4/0xeb0 [ 39.117274][ T6241] hfs_inode_setattr+0x3a0/0x558 [ 39.118604][ T6241] notify_change+0x9d4/0xc84 [ 39.119816][ T6241] do_ftruncate+0x3e4/0x4cc [ 39.121001][ T6241] __arm64_sys_ftruncate+0x94/0xec [ 39.122397][ T6241] invoke_syscall+0x98/0x2b8 [ 39.123675][ T6241] el0_svc_common+0x130/0x23c [ 39.124926][ T6241] do_el0_svc+0x48/0x58 [ 39.126034][ T6241] el0_svc+0x54/0x168 [ 39.127117][ T6241] el0t_64_sync_handler+0x84/0xfc [ 39.128464][ T6241] el0t_64_sync+0x190/0x194 [ 43.803616][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.803616][ T42] loop0: rw=1048577, sector=4169, nr_sectors = 1 limit=64 [ 43.807362][ T42] Buffer I/O error on dev loop0, logical block 4169, lost async page write [ 43.809719][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.809719][ T42] loop0: rw=1048577, sector=4170, nr_sectors = 1 limit=64 [ 43.813392][ T42] Buffer I/O error on dev loop0, logical block 4170, lost async page write [ 43.815700][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.815700][ T42] loop0: rw=1048577, sector=4172, nr_sectors = 1 limit=64 [ 43.819315][ T42] Buffer I/O error on dev loop0, logical block 4172, lost async page write [ 43.821738][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.821738][ T42] loop0: rw=1048577, sector=4173, nr_sectors = 1 limit=64 [ 43.825434][ T42] Buffer I/O error on dev loop0, logical block 4173, lost async page write [ 43.827916][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.827916][ T42] loop0: rw=1048577, sector=4174, nr_sectors = 1 limit=64 [ 43.831789][ T42] Buffer I/O error on dev loop0, logical block 4174, lost async page write [ 43.834076][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.834076][ T42] loop0: rw=1048577, sector=4175, nr_sectors = 1 limit=64 [ 43.837844][ T42] Buffer I/O error on dev loop0, logical block 4175, lost async page write [ 43.840298][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.840298][ T42] loop0: rw=1048577, sector=4176, nr_sectors = 1 limit=64 [ 43.844133][ T42] Buffer I/O error on dev loop0, logical block 4176, lost async page write [ 43.846487][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.846487][ T42] loop0: rw=1048577, sector=4177, nr_sectors = 1 limit=64 [ 43.850312][ T42] Buffer I/O error on dev loop0, logical block 4177, lost async page write [ 43.852770][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.852770][ T42] loop0: rw=1048577, sector=4178, nr_sectors = 16 limit=64 [ 43.856814][ T42] kworker/u8:3: attempt to access beyond end of device [ 43.856814][ T42] loop0: rw=1048577, sector=4196, nr_sectors = 160 limit=64 [ 43.860826][ T42] Buffer I/O error on dev loop0, logical block 4356, lost async page write [ 43.863187][ T42] Buffer I/O error on dev loop0, logical block 4357, lost async page write