loop0: detected capacity change from 0 to 1024 hfsplus: xattr searching failed ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.0.17/4496 is trying to acquire lock: ffff0000d45c40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x148/0x1c0 fs/hfsplus/bfind.c:28 but task is already holding lock: ffff0000d45c40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x148/0x1c0 fs/hfsplus/bfind.c:28 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.0.17/4496: #0: ffff0000d45c0460 (sb_writers#12){.+.+}-{0:0}, at: do_sys_ftruncate+0x210/0x318 fs/open.c:190 #1: ffff0000de5909c0 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff0000de5909c0 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: do_truncate+0x174/0x20c fs/open.c:63 #2: ffff0000de5907c8 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x188/0x1324 fs/hfsplus/extents.c:455 #3: ffff0000d45c40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x148/0x1c0 fs/hfsplus/bfind.c:28 #4: ffff0000d2040108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x188/0x1324 fs/hfsplus/extents.c:455 stack backtrace: CPU: 0 PID: 4496 Comm: syz.0.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 __lock_acquire+0x15d0/0x6634 kernel/locking/lockdep.c:-1 lock_acquire+0x20c/0x638 kernel/locking/lockdep.c:5676 __mutex_lock_common+0x1a0/0x1f3c kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 hfsplus_find_init+0x148/0x1c0 fs/hfsplus/bfind.c:28 hfsplus_ext_read_extent fs/hfsplus/extents.c:216 [inline] hfsplus_file_extend+0x348/0x1324 fs/hfsplus/extents.c:459 hfsplus_bmap_reserve+0xd0/0x458 fs/hfsplus/btree.c:358 __hfsplus_ext_write_extent+0x1e4/0x4b0 fs/hfsplus/extents.c:104 __hfsplus_ext_cache_extent+0x84/0x924 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x388/0x1324 fs/hfsplus/extents.c:459 hfsplus_get_block+0x318/0x11a0 fs/hfsplus/extents.c:245 __block_write_begin_int+0x3d8/0x13c0 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin fs/buffer.c:2102 [inline] cont_write_begin+0x5b4/0x820 fs/buffer.c:2456 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 cont_expand_zero fs/buffer.c:2383 [inline] cont_write_begin+0x290/0x820 fs/buffer.c:2446 hfsplus_write_begin+0x98/0xe4 fs/hfsplus/inode.c:52 generic_cont_expand_simple+0x130/0x208 fs/buffer.c:2347 hfsplus_setattr+0x14c/0x25c fs/hfsplus/inode.c:283 notify_change+0xb5c/0xe20 fs/attr.c:499 do_truncate+0x188/0x20c fs/open.c:65 do_sys_ftruncate+0x284/0x318 fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585