Warning: Permanently added '10.128.0.34' (ED25519) to the list of known hosts. executing program [ 33.289581][ T6388] loop0: detected capacity change from 0 to 64 [ 33.560584][ T6388] [ 33.561271][ T6388] ============================================ [ 33.563012][ T6388] WARNING: possible recursive locking detected [ 33.564635][ T6388] 6.11.0-rc5-syzkaller-gdf54f4a16f82 #0 Not tainted [ 33.566398][ T6388] -------------------------------------------- [ 33.568110][ T6388] syz-executor108/6388 is trying to acquire lock: [ 33.569880][ T6388] ffff0000d89ce0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 33.572582][ T6388] [ 33.572582][ T6388] but task is already holding lock: [ 33.574623][ T6388] ffff0000d89ce0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 33.577174][ T6388] [ 33.577174][ T6388] other info that might help us debug this: [ 33.579496][ T6388] Possible unsafe locking scenario: [ 33.579496][ T6388] [ 33.581583][ T6388] CPU0 [ 33.582452][ T6388] ---- [ 33.583372][ T6388] lock(&tree->tree_lock/1); [ 33.584637][ T6388] lock(&tree->tree_lock/1); [ 33.585960][ T6388] [ 33.585960][ T6388] *** DEADLOCK *** [ 33.585960][ T6388] [ 33.588212][ T6388] May be due to missing lock nesting notation [ 33.588212][ T6388] [ 33.590465][ T6388] 5 locks held by syz-executor108/6388: [ 33.591949][ T6388] #0: ffff0000d89cc420 (sb_writers#8){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc [ 33.594523][ T6388] #1: ffff0000d8511620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc [ 33.597191][ T6388] #2: ffff0000d8511478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 33.599818][ T6388] #3: ffff0000d89ce0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 33.602500][ T6388] #4: ffff0000d85100f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 33.605695][ T6388] [ 33.605695][ T6388] stack backtrace: [ 33.607331][ T6388] CPU: 1 UID: 0 PID: 6388 Comm: syz-executor108 Not tainted 6.11.0-rc5-syzkaller-gdf54f4a16f82 #0 [ 33.610312][ T6388] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 33.612964][ T6388] Call trace: [ 33.613864][ T6388] dump_backtrace+0x1b8/0x1e4 [ 33.615235][ T6388] show_stack+0x2c/0x3c [ 33.616390][ T6388] dump_stack_lvl+0xe4/0x150 [ 33.617688][ T6388] dump_stack+0x1c/0x28 [ 33.618950][ T6388] print_deadlock_bug+0x4e4/0x660 [ 33.620268][ T6388] __lock_acquire+0x6160/0x779c [ 33.621682][ T6388] lock_acquire+0x240/0x728 [ 33.622915][ T6388] __mutex_lock_common+0x190/0x21a0 [ 33.624283][ T6388] mutex_lock_nested+0x2c/0x38 [ 33.625628][ T6388] hfs_find_init+0x148/0x1c8 [ 33.626893][ T6388] hfs_extend_file+0x270/0x1130 [ 33.628299][ T6388] hfs_bmap_reserve+0xd0/0x3b4 [ 33.629641][ T6388] __hfs_ext_write_extent+0x1a0/0x468 [ 33.631136][ T6388] __hfs_ext_cache_extent+0x84/0x754 [ 33.632621][ T6388] hfs_extend_file+0x29c/0x1130 [ 33.633963][ T6388] hfs_get_block+0x3b8/0x9e0 [ 33.635282][ T6388] __block_write_begin_int+0x580/0x166c [ 33.636797][ T6388] cont_write_begin+0x79c/0xc40 [ 33.638103][ T6388] hfs_write_begin+0x98/0xe4 [ 33.639350][ T6388] cont_write_begin+0x2d8/0xc40 [ 33.640693][ T6388] hfs_write_begin+0x98/0xe4 [ 33.641951][ T6388] hfs_file_truncate+0x1a4/0xeb0 [ 33.643341][ T6388] hfs_inode_setattr+0x3a0/0x558 [ 33.644708][ T6388] notify_change+0x9d4/0xc84 [ 33.645959][ T6388] do_ftruncate+0x3e4/0x4cc [ 33.647213][ T6388] __arm64_sys_ftruncate+0x94/0xec [ 33.648629][ T6388] invoke_syscall+0x98/0x2b8 [ 33.649849][ T6388] el0_svc_common+0x130/0x23c [ 33.651161][ T6388] do_el0_svc+0x48/0x58 [ 33.652291][ T6388] el0_svc+0x54/0x168 [ 33.653371][ T6388] el0t_64_sync_handler+0x84/0xfc [ 33.654762][ T6388] el0t_64_sync+0x190/0x194 [ 38.341182][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.341182][ T431] loop0: rw=1048577, sector=4169, nr_sectors = 1 limit=64 [ 38.344798][ T431] Buffer I/O error on dev loop0, logical block 4169, lost async page write [ 38.347127][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.347127][ T431] loop0: rw=1048577, sector=4170, nr_sectors = 1 limit=64 [ 38.351012][ T431] Buffer I/O error on dev loop0, logical block 4170, lost async page write [ 38.353338][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.353338][ T431] loop0: rw=1048577, sector=4172, nr_sectors = 1 limit=64 [ 38.356972][ T431] Buffer I/O error on dev loop0, logical block 4172, lost async page write [ 38.359291][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.359291][ T431] loop0: rw=1048577, sector=4173, nr_sectors = 1 limit=64 [ 38.362932][ T431] Buffer I/O error on dev loop0, logical block 4173, lost async page write [ 38.365280][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.365280][ T431] loop0: rw=1048577, sector=4174, nr_sectors = 1 limit=64 [ 38.368965][ T431] Buffer I/O error on dev loop0, logical block 4174, lost async page write [ 38.371440][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.371440][ T431] loop0: rw=1048577, sector=4175, nr_sectors = 1 limit=64 [ 38.375115][ T431] Buffer I/O error on dev loop0, logical block 4175, lost async page write [ 38.377423][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.377423][ T431] loop0: rw=1048577, sector=4176, nr_sectors = 1 limit=64 [ 38.381277][ T431] Buffer I/O error on dev loop0, logical block 4176, lost async page write [ 38.383555][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.383555][ T431] loop0: rw=1048577, sector=4177, nr_sectors = 1 limit=64 [ 38.387195][ T431] Buffer I/O error on dev loop0, logical block 4177, lost async page write [ 38.389514][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.389514][ T431] loop0: rw=1048577, sector=4178, nr_sectors = 16 limit=64 [ 38.393246][ T431] kworker/u8:5: attempt to access beyond end of device [ 38.393246][ T431] loop0: rw=1048577, sector=4196, nr_sectors = 160 limit=64 [ 38.397050][ T431] Buffer I/O error on dev loop0, logical block 4356, lost async page write [ 38.399534][ T431] Buffer I/O error on dev loop0, logical block 4357, lost async page write