============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- syz.3.1391/13267 is trying to acquire lock: ffff88803b8c20b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x273/0x330 fs/hfs/bfind.c:36 but task is already holding lock: ffff88803b8c20b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x273/0x330 fs/hfs/bfind.c:36 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tree->tree_lock/1); lock(&tree->tree_lock/1); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz.3.1391/13267: #0: ffff88802da6a420 (sb_writers#21){.+.+}-{0:0}, at: vfs_truncate+0x336/0x720 fs/open.c:96 #1: ffff88808e69e420 (&sb->s_type->i_mutex_key #33){+.+.}-{4:4}, at: inode_lock_killable include/linux/fs.h:1033 [inline] #33){+.+.}-{4:4}, at: do_truncate+0x14e/0x240 fs/open.c:63 #2: ffff88808e69e278 (&HFS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xa6/0xcf0 fs/hfs/extent.c:397 #3: ffff88803b8c20b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x273/0x330 fs/hfs/bfind.c:36 #4: ffff88808e69f5f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xa6/0xcf0 fs/hfs/extent.c:397 stack backtrace: CPU: 1 UID: 0 PID: 13267 Comm: syz.3.1391 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_deadlock_bug.cold+0xbd/0xca kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x12bb/0x2630 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __mutex_lock_common kernel/locking/mutex.c:614 [inline] __mutex_lock+0x1a2/0x1b90 kernel/locking/mutex.c:776 hfs_find_init+0x273/0x330 fs/hfs/bfind.c:36 hfs_ext_read_extent+0x19d/0x9d0 fs/hfs/extent.c:200 hfs_extend_file+0x4ff/0xcf0 fs/hfs/extent.c:401 hfs_bmap_reserve+0x2ab/0x3a0 fs/hfs/btree.c:269 __hfs_ext_write_extent+0x3c4/0x510 fs/hfs/extent.c:121 __hfs_ext_cache_extent fs/hfs/extent.c:174 [inline] hfs_ext_read_extent+0x805/0x9d0 fs/hfs/extent.c:202 hfs_extend_file+0x4ff/0xcf0 fs/hfs/extent.c:401 hfs_get_block+0x17f/0x830 fs/hfs/extent.c:353 __block_write_begin_int+0x57a/0x19c0 fs/buffer.c:2142 block_write_begin+0x9d/0x1d0 fs/buffer.c:2253 cont_write_begin+0x573/0xa10 fs/buffer.c:2591 hfs_write_begin+0x64/0x120 fs/hfs/inode.c:53 cont_expand_zero fs/buffer.c:2519 [inline] cont_write_begin+0x2b9/0xa10 fs/buffer.c:2581 hfs_write_begin+0x64/0x120 fs/hfs/inode.c:53 hfs_file_truncate+0xd2c/0x10f0 fs/hfs/extent.c:495 hfs_inode_setattr+0x499/0x5e0 fs/hfs/inode.c:684 notify_change+0xb25/0x1330 fs/attr.c:556 do_truncate+0x1df/0x240 fs/open.c:68 vfs_truncate+0x538/0x720 fs/open.c:118 do_sys_truncate+0xee/0x190 fs/open.c:142 __do_sys_truncate fs/open.c:154 [inline] __se_sys_truncate fs/open.c:152 [inline] __x64_sys_truncate+0x54/0x80 fs/open.c:152 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f923e19c799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f923f113028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f923e415fa0 RCX: 00007f923e19c799 RDX: 0000000000000000 RSI: 0000000003000000 RDI: 0000200000000900 RBP: 00007f923e232c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f923e416038 R14: 00007f923e415fa0 R15: 00007ffc7ce0c858