hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5718 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 Modules linked in: CPU: 1 PID: 5718 Comm: syz.4.286 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 : ffff800021e971d0 x29: ffff800021e971e0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000000 x25: ffff800021e97260 x24: dfff800000000000 x23: 0000000000000000 x22: ffff0000db23a0e0 x21: ffff0000db23a000 x20: 0000000000000000 x19: ffff0000d28eda00 x18: 1fffe000367a0176 x17: ffff800015a8d000 x16: ffff80001232f264 x15: ffff0001b3d00bbc x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000080000 x11: 000000000000e56a x10: ffff800025ea9000 x9 : 6483e443d66e7800 x8 : 6483e443d66e7800 x7 : ffff800008278b14 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000ab3472c x2 : ffff0001b3d00cd0 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: 6324 hardirqs last enabled at (6323): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (6323): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (6324): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (6316): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (6316): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (6295): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ 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: 1 PID: 5718 Comm: syz.4.286 Tainted: G W 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_put+0x488/0x494 fs/hfsplus/bnode.c:618 lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 sp : ffff800021e972c0 x29: ffff800021e972c0 x28: dfff800000000000 x27: 000000000000000e x26: ffff0000f875d00e x25: 1fffe0001a51db40 x24: ffff0000db23a000 x23: dfff800000000000 x22: 1ffff000043d2e68 x21: ffff0000d28eda80 x20: 0000000000000000 x19: ffff0000d28eda00 x18: ffff800021e96d80 x17: ffff800018b7c000 x16: ffff80001232f264 x15: ffff80001865cf80 x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000080000 x11: 000000000007ffff x10: ffff800025ea9000 x9 : ffff80000908cdb4 x8 : 0000000000080000 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 ]---