loop8: detected capacity change from 0 to 1024 ============================================ WARNING: possible recursive locking detected 6.15.0-rc7-syzkaller-00099-g94305e83eccb #0 Not tainted -------------------------------------------- syz.8.490/10329 is trying to acquire lock: ffff8880651e3708 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x1fc/0x1990 fs/hfsplus/extents.c:458 but task is already holding lock: ffff8880651e4488 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x1fc/0x1990 fs/hfsplus/extents.c:458 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&HFSPLUS_I(inode)->extents_lock); lock(&HFSPLUS_I(inode)->extents_lock); *** DEADLOCK *** May be due to missing lock nesting notation 6 locks held by syz.8.490/10329: #0: ffff888032ca40e0 (&type->s_umount_key#63/1){+.+.}-{4:4}, at: alloc_super+0x204/0x970 fs/super.c:344 #1: ffff888030689998 (&sbi->vh_mutex){+.+.}-{4:4}, at: hfsplus_fill_super+0x1297/0x1b70 fs/hfsplus/super.c:554 #2: ffff888053a000b0 (&tree->tree_lock){+.+.}-{4:4}, at: hfsplus_find_init+0x15a/0x1d0 fs/hfsplus/bfind.c:28 #3: ffff88805bd340b0 (&tree->tree_lock/2){+.+.}-{4:4}, at: hfsplus_find_init+0x15a/0x1d0 fs/hfsplus/bfind.c:28 #4: ffff8880651e4488 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x1fc/0x1990 fs/hfsplus/extents.c:458 #5: ffff88807f5780b0 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfsplus_find_init+0x15a/0x1d0 fs/hfsplus/bfind.c:28 stack backtrace: CPU: 0 UID: 0 PID: 10329 Comm: syz.8.490 Not tainted 6.15.0-rc7-syzkaller-00099-g94305e83eccb #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_deadlock_bug+0x28b/0x2a0 kernel/locking/lockdep.c:3042 check_deadlock kernel/locking/lockdep.c:3094 [inline] validate_chain+0x1a3f/0x2140 kernel/locking/lockdep.c:3896 __lock_acquire+0xaac/0xd20 kernel/locking/lockdep.c:5235 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5866 __mutex_lock_common kernel/locking/mutex.c:601 [inline] __mutex_lock+0x182/0xe80 kernel/locking/mutex.c:746 hfsplus_file_extend+0x1fc/0x1990 fs/hfsplus/extents.c:458 hfsplus_bmap_reserve+0x122/0x500 fs/hfsplus/btree.c:358 __hfsplus_ext_write_extent+0x28d/0x5b0 fs/hfsplus/extents.c:104 __hfsplus_ext_cache_extent+0x89/0xe30 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x444/0x1990 fs/hfsplus/extents.c:462 hfsplus_bmap_reserve+0x122/0x500 fs/hfsplus/btree.c:358 hfsplus_create_attr+0x1a9/0x3a0 fs/hfsplus/attributes.c:221 __hfsplus_setxattr+0x644/0x1ec0 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x1ae/0x280 fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x2a0/0x3f0 security/security.c:1852 hfsplus_fill_super+0x1423/0x1b70 fs/hfsplus/super.c:568 get_tree_bdev_flags+0x40b/0x4d0 fs/super.c:1636 vfs_get_tree+0x92/0x2b0 fs/super.c:1759 do_new_mount+0x24a/0xa40 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3ecd19010a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3ecdfa0e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3ecdfa0ef0 RCX: 00007f3ecd19010a RDX: 0000200000000100 RSI: 0000200000000140 RDI: 00007f3ecdfa0eb0 RBP: 0000200000000100 R08: 00007f3ecdfa0ef0 R09: 0000000002000010 R10: 0000000002000010 R11: 0000000000000246 R12: 0000200000000140 R13: 00007f3ecdfa0eb0 R14: 00000000000006e8 R15: 00002000000022c0