hfs: new node 6 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5589 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 1 PID: 5589 Comm: syz-executor.4 Not tainted 5.15.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 lr : hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 sp : ffff80001f3a7510 x29: ffff80001f3a7520 x28: ffff00012c76e000 x27: 00000000000000f8 x26: ffff00012c76e0f8 x25: dfff800000000000 x24: 1ffff00003e74eb8 x23: 0000000000000006 x22: ffff0001267540e0 x21: ffff000126754000 x20: 0000000000000006 x19: ffff0000cef76a00 x18: 1fffe0003690338e x17: 1fffe0003690338e x16: ffff8000119534fc x15: ffff80001498f100 x14: 1ffff0000291e06a x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000832d950 x10: 0000000000000000 x9 : 317f2e38b03fdb00 x8 : 317f2e38b03fdb00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000854dc88 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 hfs_bmap_alloc+0x5c0/0x6b4 fs/hfs/btree.c:288 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245 hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_mkdir+0x70/0xe4 fs/hfs/dir.c:232 vfs_mkdir+0x350/0x514 fs/namei.c:3994 do_mkdirat+0x20c/0x610 fs/namei.c:4019 __do_sys_mkdirat fs/namei.c:4034 [inline] __se_sys_mkdirat fs/namei.c:4032 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4032 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 62 hardirqs last enabled at (61): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (61): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (62): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (8): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (6): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace a126c067c7a938f9 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5589 Comm: syz-executor.4 Tainted: G W 5.15.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 lr : hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 sp : ffff80001f3a7630 x29: ffff80001f3a7630 x28: dfff800000000000 x27: ffff80001f3a7a00 x26: ffff0000cef76a00 x25: 1ffff00003e74ee8 x24: 1fffe00019deed40 x23: dfff800000000000 x22: ffff000126754000 x21: ffff0000cef76a80 x20: 0000000000000000 x19: ffff0000cef76a00 x18: 1fffe0003690338e x17: 1fffe0003690338e x16: ffff80000824cbf4 x15: ffff80001498f100 x14: 1ffff0000291e06a x13: ffffffffffffffff x12: 0000000000000000 x11: ff80800008fc689c x10: 0000000000000000 x9 : ffff800008fc689c x8 : ffff0000d2d0b680 x7 : ffff80000ab22344 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fc64e0 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 hfs_bnode_split+0x228/0xd88 fs/hfsplus/brec.c:264 hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_mkdir+0x70/0xe4 fs/hfs/dir.c:232 vfs_mkdir+0x350/0x514 fs/namei.c:3994 do_mkdirat+0x20c/0x610 fs/namei.c:4019 __do_sys_mkdirat fs/namei.c:4034 [inline] __se_sys_mkdirat fs/namei.c:4032 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4032 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e40423 17ffffa5 97d3f219 (d4210000) ---[ end trace a126c067c7a938fa ]---