loop0: detected capacity change from 0 to 1024
hfsplus: new node 0 already hashed?
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4289 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572
Modules linked in:
CPU: 0 PID: 4289 Comm: syz-executor310 Not tainted 6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572
lr : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572
sp : ffff8000218371d0
x29: ffff8000218371e0 x28: dfff800000000000 x27: dfff800000000000
x26: 0000000000000000 x25: ffff800021837260 x24: dfff800000000000
x23: 0000000000000000 x22: ffff0000cefe60e0 x21: ffff0000cefe6000
x20: 0000000000000000 x19: ffff0000c0b75400 x18: ffff800021836720
x17: 0000000000000000 x16: ffff80001232f264 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : aef7ad88698e3d00
x8 : aef7ad88698e3d00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800021836ad8 x4 : ffff800015b731c0 x3 : ffff80000ab3472c
x2 : ffff0001b3cdfcd0 x1 : 0000000100000000 x0 : 0000000000000023
Call trace:
 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572
 hfs_bmap_new_bmap+0xac/0x414 fs/hfsplus/btree.c:320
 hfsplus_bmap_alloc+0x3ac/0x638 fs/hfsplus/btree.c:432
 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245
 hfsplus_brec_insert+0x2d4/0xaa0 fs/hfsplus/brec.c:100
 hfsplus_create_cat+0xa68/0x1330 fs/hfsplus/catalog.c:308
 hfsplus_mknod+0x14c/0x268 fs/hfsplus/dir.c:494
 hfsplus_mkdir+0x38/0x4c fs/hfsplus/dir.c:529
 vfs_mkdir+0x334/0x4e4 fs/namei.c:4106
 do_mkdirat+0x220/0x510 fs/namei.c:4131
 __do_sys_mkdirat fs/namei.c:4146 [inline]
 __se_sys_mkdirat fs/namei.c:4144 [inline]
 __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4144
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 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
irq event stamp: 20328
hardirqs last  enabled at (20327): [<ffff80000833f25c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261
hardirqs last disabled at (20328): [<ffff80001232af44>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (20224): [<ffff800008030408>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (20222): [<ffff8000080303d4>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at fs/hfsplus/bnode.c:618!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4289 Comm: syz-executor310 Tainted: G        W          6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
sp : ffff8000218372c0
x29: ffff8000218372c0 x28: dfff800000000000 x27: 000000000000000e
x26: ffff00016b36f00e x25: 1fffe0001816ea80 x24: ffff0000cefe6000
x23: dfff800000000000 x22: 1ffff00004306e68 x21: ffff0000c0b75480
x20: 0000000000000000 x19: ffff0000c0b75400 x18: ffff800021836d80
x17: ffff800018b7c000 x16: ffff80001232f264 x15: ffff80001865cf80
x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000908cdb4
x8 : ffff0000c6e61bc0 x7 : ffff8000089d6494 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000908c988
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618
 hfsplus_bmap_alloc+0x564/0x638 fs/hfsplus/btree.c:414
 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245
 hfsplus_brec_insert+0x2d4/0xaa0 fs/hfsplus/brec.c:100
 hfsplus_create_cat+0xa68/0x1330 fs/hfsplus/catalog.c:308
 hfsplus_mknod+0x14c/0x268 fs/hfsplus/dir.c:494
 hfsplus_mkdir+0x38/0x4c fs/hfsplus/dir.c:529
 vfs_mkdir+0x334/0x4e4 fs/namei.c:4106
 do_mkdirat+0x220/0x510 fs/namei.c:4131
 __do_sys_mkdirat fs/namei.c:4146 [inline]
 __se_sys_mkdirat fs/namei.c:4144 [inline]
 __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4144
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 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
Code: aa1403e0 97e3a61e 17ffffb7 97d1988e (d4210000) 
---[ end trace 0000000000000000 ]---