loop1: detected capacity change from 0 to 1024 hfsplus: inconsistency in B*Tree (128,1,255,1,0) ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.1.351/8894 is trying to acquire lock: ffff88805d930ff8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_get_block+0x3a0/0x1670 fs/hfsplus/extents.c:260 but task is already holding lock: ffff88805d930878 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x215/0x1d70 fs/hfsplus/extents.c:453 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 7 locks held by syz.1.351/8894: #0: ffff888142782480 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:499 #1: ffff88805d9328d8 (&type->i_mutex_dir_key#23/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1072 [inline] #1: ffff88805d9328d8 (&type->i_mutex_dir_key#23/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2873 [inline] #1: ffff88805d9328d8 (&type->i_mutex_dir_key#23/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2884 [inline] #1: ffff88805d9328d8 (&type->i_mutex_dir_key#23/1){+.+.}-{4:4}, at: filename_create+0x200/0x370 fs/namei.c:4888 #2: ffff8880504e2978 (&sbi->vh_mutex){+.+.}-{4:4}, at: hfsplus_mknod+0x7e/0x290 fs/hfsplus/dir.c:486 #3: ffff88803774a0a0 (&tree->tree_lock#2){+.+.}-{4:4}, at: hfsplus_find_init+0x168/0x2d0 fs/hfsplus/bfind.c:28 #4: ffff888028a500a0 (&tree->tree_lock#2/2){+.+.}-{4:4}, at: hfsplus_find_init+0x168/0x2d0 fs/hfsplus/bfind.c:28 #5: ffff88805d930878 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{4:4}, at: hfsplus_file_extend+0x215/0x1d70 fs/hfsplus/extents.c:453 #6: ffff8880504e28e8 (&sbi->alloc_mutex){+.+.}-{4:4}, at: hfsplus_block_allocate+0xa7/0xce0 fs/hfsplus/bitmap.c:35 stack backtrace: CPU: 1 UID: 0 PID: 8894 Comm: syz.1.351 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/13/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x279/0x290 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x253f/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x330 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/rtmutex_api.c:533 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:552 hfsplus_get_block+0x3a0/0x1670 fs/hfsplus/extents.c:260 block_read_full_folio+0x29f/0x830 fs/buffer.c:2420 filemap_read_folio+0x137/0x3b0 mm/filemap.c:2496 do_read_cache_folio+0x2bf/0x560 mm/filemap.c:4096 do_read_cache_page mm/filemap.c:4162 [inline] read_cache_page+0x5d/0x170 mm/filemap.c:4171 read_mapping_page include/linux/pagemap.h:1022 [inline] hfsplus_block_allocate+0xf3/0xce0 fs/hfsplus/bitmap.c:37 hfsplus_file_extend+0xb2d/0x1d70 fs/hfsplus/extents.c:464 hfsplus_bmap_reserve+0x128/0x520 fs/hfsplus/btree.c:358 hfsplus_create_attr+0x1ce/0x490 fs/hfsplus/attributes.c:221 __hfsplus_setxattr+0x717/0x25a0 fs/hfsplus/xattr.c:356 hfsplus_initxattrs+0x1ae/0x280 fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x296/0x3d0 security/security.c:1344 hfsplus_mknod+0x1a9/0x290 fs/hfsplus/dir.c:498 hfsplus_mkdir+0x2c/0x40 fs/hfsplus/dir.c:529 vfs_mkdir+0x75d/0x870 fs/namei.c:5139 do_mkdirat+0x281/0x4c0 fs/namei.c:5173 __do_sys_mkdirat fs/namei.c:5195 [inline] __se_sys_mkdirat fs/namei.c:5193 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:5193 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd732739d97 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 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:00007fd730995e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fd730995ee0 RCX: 00007fd732739d97 RDX: 00000000000001ff RSI: 0000200000000040 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000200000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fd730995ea0 R14: 0000000000000000 R15: 0000000000000000 syz.1.351: attempt to access beyond end of device loop1: rw=8388608, sector=917504, nr_sectors = 2 limit=1024 Buffer I/O error on dev loop1, logical block 458752, async page read syz.1.351: attempt to access beyond end of device loop1: rw=8388608, sector=917504, nr_sectors = 2 limit=1024 Buffer I/O error on dev loop1, logical block 458752, async page read hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr search failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) syz.1.351: attempt to access beyond end of device loop1: rw=8388608, sector=917504, nr_sectors = 2 limit=1024 Buffer I/O error on dev loop1, logical block 458752, async page read syz.1.351: attempt to access beyond end of device loop1: rw=8388608, sector=917504, nr_sectors = 2 limit=1024 Buffer I/O error on dev loop1, logical block 458752, async page read hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr search failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr searching failed cifs: Unknown parameter 'h}# [bIT&:"1:ӭ'4,Zz-#F<]%gC SȘȞZ6' CIFS mount error: No usable UNC path provided in device string! CIFS: VFS: CIFS mount error: No usable UNC path provided in device string! hfsplus: inconsistency in B*Tree (128,1,255,1,0) hfsplus: xattr search failed