Warning: Permanently added '10.128.1.38' (ECDSA) to the list of known hosts. executing program [ 41.760424][ T5970] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5970 'syz-executor198' [ 41.764280][ T5970] loop0: detected capacity change from 0 to 64 [ 41.821193][ T5970] [ 41.821738][ T5970] ============================================ [ 41.822995][ T5970] WARNING: possible recursive locking detected [ 41.824295][ T5970] 6.4.0-rc5-syzkaller-g177239177378 #0 Not tainted [ 41.825673][ T5970] -------------------------------------------- [ 41.826879][ T5970] syz-executor198/5970 is trying to acquire lock: [ 41.828174][ T5970] ffff0000de4c60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 41.830130][ T5970] [ 41.830130][ T5970] but task is already holding lock: [ 41.831740][ T5970] ffff0000de4c60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 41.833813][ T5970] [ 41.833813][ T5970] other info that might help us debug this: [ 41.835550][ T5970] Possible unsafe locking scenario: [ 41.835550][ T5970] [ 41.837161][ T5970] CPU0 [ 41.837848][ T5970] ---- [ 41.838522][ T5970] lock(&tree->tree_lock/1); [ 41.839498][ T5970] lock(&tree->tree_lock/1); [ 41.840501][ T5970] [ 41.840501][ T5970] *** DEADLOCK *** [ 41.840501][ T5970] [ 41.842303][ T5970] May be due to missing lock nesting notation [ 41.842303][ T5970] [ 41.844138][ T5970] 5 locks held by syz-executor198/5970: [ 41.845270][ T5970] #0: ffff0000de4c4460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x240/0x918 [ 41.847161][ T5970] #1: ffff0000de4a1628 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: generic_file_write_iter+0x88/0x2b4 [ 41.849634][ T5970] #2: ffff0000de4a1478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 41.851981][ T5970] #3: ffff0000de4c60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 [ 41.854012][ T5970] #4: ffff0000de4a00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 [ 41.856439][ T5970] [ 41.856439][ T5970] stack backtrace: [ 41.857725][ T5970] CPU: 1 PID: 5970 Comm: syz-executor198 Not tainted 6.4.0-rc5-syzkaller-g177239177378 #0 [ 41.859788][ T5970] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 41.861940][ T5970] Call trace: [ 41.862545][ T5970] dump_backtrace+0x1b8/0x1e4 [ 41.863460][ T5970] show_stack+0x2c/0x44 [ 41.864369][ T5970] dump_stack_lvl+0xd0/0x124 [ 41.865334][ T5970] dump_stack+0x1c/0x28 [ 41.866247][ T5970] __lock_acquire+0x62b8/0x7604 [ 41.867289][ T5970] lock_acquire+0x23c/0x71c [ 41.868215][ T5970] __mutex_lock_common+0x190/0x21a0 [ 41.869385][ T5970] mutex_lock_nested+0x2c/0x38 [ 41.870411][ T5970] hfs_find_init+0x148/0x1c8 [ 41.871419][ T5970] hfs_extend_file+0x270/0x1130 [ 41.872412][ T5970] hfs_bmap_reserve+0xd0/0x3b4 [ 41.873366][ T5970] __hfs_ext_write_extent+0x1a0/0x468 [ 41.874581][ T5970] __hfs_ext_cache_extent+0x84/0x754 [ 41.875668][ T5970] hfs_extend_file+0x29c/0x1130 [ 41.876720][ T5970] hfs_get_block+0x3b8/0x9e0 [ 41.877726][ T5970] __block_write_begin_int+0x460/0x1790 [ 41.878942][ T5970] cont_write_begin+0x7b8/0xc78 [ 41.879943][ T5970] hfs_write_begin+0x98/0xe4 [ 41.880960][ T5970] generic_perform_write+0x278/0x55c [ 41.882019][ T5970] __generic_file_write_iter+0x168/0x388 [ 41.883319][ T5970] generic_file_write_iter+0xb8/0x2b4 [ 41.884599][ T5970] vfs_write+0x618/0x918 [ 41.885621][ T5970] ksys_write+0x15c/0x26c [ 41.886535][ T5970] __arm64_sys_write+0x7c/0x90 [ 41.887545][ T5970] invoke_syscall+0x98/0x2c0 [ 41.888559][ T5970] el0_svc_common+0x138/0x244 [ 41.889543][ T5970] do_el0_svc+0x64/0x198 [ 41.890443][ T5970] el0_svc+0x4c/0x160 [ 41.891357][ T5970] el0t_64_sync_handler+0x84/0xfc [ 41.892423][ T5970] el0t_64_sync+0x190/0x194 [ 46.814920][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.814920][ T10] loop0: rw=1048577, sector=95, nr_sectors = 1 limit=64 [ 46.817945][ T10] Buffer I/O error on dev loop0, logical block 95, lost async page write [ 46.819696][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.819696][ T10] loop0: rw=1048577, sector=96, nr_sectors = 1 limit=64 [ 46.822609][ T10] Buffer I/O error on dev loop0, logical block 96, lost async page write [ 46.824390][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.824390][ T10] loop0: rw=1048577, sector=98, nr_sectors = 1 limit=64 [ 46.827568][ T10] Buffer I/O error on dev loop0, logical block 98, lost async page write [ 46.829362][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.829362][ T10] loop0: rw=1048577, sector=100, nr_sectors = 1 limit=64 [ 46.832367][ T10] Buffer I/O error on dev loop0, logical block 100, lost async page write [ 46.834197][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.834197][ T10] loop0: rw=1048577, sector=101, nr_sectors = 1 limit=64 [ 46.837348][ T10] Buffer I/O error on dev loop0, logical block 101, lost async page write [ 46.839199][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.839199][ T10] loop0: rw=1048577, sector=102, nr_sectors = 1 limit=64 [ 46.842199][ T10] Buffer I/O error on dev loop0, logical block 102, lost async page write [ 46.843938][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.843938][ T10] loop0: rw=1048577, sector=103, nr_sectors = 1 limit=64 [ 46.846950][ T10] Buffer I/O error on dev loop0, logical block 103, lost async page write [ 46.848760][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.848760][ T10] loop0: rw=1048577, sector=104, nr_sectors = 1 limit=64 [ 46.851682][ T10] Buffer I/O error on dev loop0, logical block 104, lost async page write [ 46.857794][ T10] kworker/u4:0: attempt to access beyond end of device [ 46.857794][ T10] loop0: rw=1048577, sector=105, nr_sectors = 4064 limit=64