hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: fs/hfsplus/bnode.c:631 at hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630, CPU#0: syz.4.322/8693 Modules linked in: CPU: 0 UID: 0 PID: 8693 Comm: syz.4.322 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 lr : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 sp : ffff8000a2166cd0 x29: ffff8000a2166ce0 x28: 0000000000000700 x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000080 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000f7994000 x19: ffff0000d66ad100 x18: 0000000000000000 x17: ffff800093598000 x16: ffff800082e5c71c x15: 0000000000000001 x14: 1ffff0001442cd14 x13: 0000000000000000 x12: 0000000000000000 x11: ffff70001442cd15 x10: 0000000000ff0100 x9 : 383cbb2bd3689a00 x8 : 383cbb2bd3689a00 x7 : ffff800080575c38 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807f0b34 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 (P) hfsplus_bmap_alloc+0x580/0x87c fs/hfsplus/btree.c:421 hfs_bnode_split+0xc8/0xcec fs/hfsplus/brec.c:245 hfsplus_brec_insert+0x2f0/0xb18 fs/hfsplus/brec.c:100 hfsplus_create_cat+0x324/0xebc fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xe60/0x1460 fs/hfsplus/super.c:601 get_tree_bdev_flags+0x360/0x414 fs/super.c:1691 get_tree_bdev+0x2c/0x3c fs/super.c:1714 hfsplus_get_tree+0x28/0x38 fs/hfsplus/super.c:680 vfs_get_tree+0x90/0x28c fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x284/0x944 fs/namespace.c:3712 path_mount+0x5b4/0xdfc fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4201 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 2758 hardirqs last enabled at (2757): [] irqentry_exit+0x1b4/0x2f4 kernel/entry/common.c:219 hardirqs last disabled at (2758): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:412 softirqs last enabled at (2698): [] softirq_handle_end kernel/softirq.c:468 [inline] softirqs last enabled at (2698): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:650 softirqs last disabled at (2693): [] __do_softirq+0x14/0x20 kernel/softirq.c:656 ---[ end trace 0000000000000000 ]--- hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: fs/hfsplus/bnode.c:631 at hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630, CPU#1: syz.4.322/8693 Modules linked in: CPU: 1 UID: 0 PID: 8693 Comm: syz.4.322 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 lr : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 sp : ffff8000a2166d30 x29: ffff8000a2166d40 x28: 000000000000001c x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000080 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000f7994000 x19: ffff0000d66ad100 x18: 1fffe00033781890 x17: ffff80008f86e000 x16: ffff800082e5c71c x15: 0000000000000001 x14: 1ffff0001442cd20 x13: 0000000000000000 x12: 0000000000000000 x11: ffff70001442cd21 x10: 0000000000ff0100 x9 : 383cbb2bd3689a00 x8 : 383cbb2bd3689a00 x7 : ffff80008049e510 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff8000807f0b34 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:630 (P) hfsplus_bmap_alloc+0x580/0x87c fs/hfsplus/btree.c:421 hfs_btree_inc_height+0xf8/0x8e0 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x660/0xb18 fs/hfsplus/brec.c:148 hfsplus_create_cat+0x324/0xebc fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xe60/0x1460 fs/hfsplus/super.c:601 get_tree_bdev_flags+0x360/0x414 fs/super.c:1691 get_tree_bdev+0x2c/0x3c fs/super.c:1714 hfsplus_get_tree+0x28/0x38 fs/hfsplus/super.c:680 vfs_get_tree+0x90/0x28c fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x284/0x944 fs/namespace.c:3712 path_mount+0x5b4/0xdfc fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4201 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 2970 hardirqs last enabled at (2969): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1570 [inline] hardirqs last enabled at (2969): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:4995 hardirqs last disabled at (2970): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:412 softirqs last enabled at (2956): [] softirq_handle_end kernel/softirq.c:468 [inline] softirqs last enabled at (2956): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:650 softirqs last disabled at (2761): [] __do_softirq+0x14/0x20 kernel/softirq.c:656 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:676! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 8693 Comm: syz.4.322 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x42c/0x4a8 fs/hfsplus/bnode.c:676 lr : hfsplus_bnode_put+0x42c/0x4a8 fs/hfsplus/bnode.c:676 sp : ffff8000a2166e20 x29: ffff8000a2166e30 x28: ffff0000c8d9e900 x27: dfff800000000000 x26: ffff70001442cdd8 x25: ffff8000a2166ec0 x24: 0000000000001000 x23: ffff0000f7994000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000d66ad180 x19: ffff0000d66ad100 x18: 1fffe00033781890 x17: ffff80008f86e000 x16: ffff800080544804 x15: 0000000000000001 x14: 1fffe0001acd5a30 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001acd5a31 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d0963900 x7 : ffff80008af06ab8 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008134bc18 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x42c/0x4a8 fs/hfsplus/bnode.c:676 (P) hfs_btree_inc_height+0x48c/0x8e0 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x660/0xb18 fs/hfsplus/brec.c:148 hfsplus_create_cat+0x324/0xebc fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xe60/0x1460 fs/hfsplus/super.c:601 get_tree_bdev_flags+0x360/0x414 fs/super.c:1691 get_tree_bdev+0x2c/0x3c fs/super.c:1714 hfsplus_get_tree+0x28/0x38 fs/hfsplus/super.c:680 vfs_get_tree+0x90/0x28c fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x284/0x944 fs/namespace.c:3712 path_mount+0x5b4/0xdfc fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4201 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: f94007f7 f2fbfff6 17ffff0c 97d008d9 (d4210000) ---[ end trace 0000000000000000 ]---