hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6744 at fs/hfs/bnode.c:520 hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 Modules linked in: CPU: 1 UID: 0 PID: 6744 Comm: syz.0.25 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 lr : hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 sp : ffff8000a2a57190 x29: ffff8000a2a571a0 x28: 0000000000000000 x27: dfff800000000000 x26: 0000000000000080 x25: dfff800000000000 x24: 0000000000000000 x23: ffff0000fd2230f8 x22: 0000000000000000 x21: 0000000000000000 x20: ffff0000f54a8000 x19: ffff0000cb3e7300 x18: 00000000ffffffff x17: ffff800093524000 x16: ffff80008b0155d8 x15: 0000000000000001 x14: 1ffff0001454ada8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000000314f x9 : 74abefc3b9f5f300 x8 : 74abefc3b9f5f300 x7 : ffff800080563530 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807de538 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x384/0x430 fs/hfs/bnode.c:519 (P) hfs_bmap_alloc+0x5b0/0x688 fs/hfs/btree.c:326 hfs_bnode_split+0xc8/0xbb8 fs/hfsplus/brec.c:245 hfs_brec_insert+0x2e8/0x96c fs/hfs/brec.c:102 hfs_cat_create+0x2d0/0x590 fs/hfs/catalog.c:118 hfs_create+0x6c/0xe0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3708 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x12d8/0x2c40 fs/namei.c:4043 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1461 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 400 hardirqs last enabled at (399): [] irqentry_exit+0xd8/0x108 kernel/entry/common.c:214 hardirqs last disabled at (400): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (344): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (342): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:565! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6744 Comm: syz.0.25 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 lr : hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 sp : ffff8000a2a57400 x29: ffff8000a2a57400 x28: dfff800000000000 x27: ffff0000cb3e7300 x26: ffff0000cb3e7300 x25: ffff8000a2a57648 x24: 1fffe0001967ce60 x23: ffff0000f54a8000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000cb3e7380 x19: ffff0000cb3e7300 x18: 00000000ffffffff x17: ffff800093524000 x16: ffff80008b0156e8 x15: 0000000000000001 x14: 1fffe0001967ce70 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000001c9c9 x9 : ffff8000a4c0a000 x8 : 000000000001c9ca x7 : 0000000000000008 x6 : 0000100000000025 x5 : ffff0000f56412cd x4 : ffff0000fd223688 x3 : ffff80008130621c x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x358/0x364 fs/hfs/bnode.c:565 (P) hfs_brec_insert+0x678/0x96c fs/hfs/brec.c:162 hfs_cat_create+0x2d0/0x590 fs/hfs/catalog.c:118 hfs_create+0x6c/0xe0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3708 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x12d8/0x2c40 fs/namei.c:4043 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __arm64_sys_openat+0x120/0x158 fs/open.c:1461 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: aa1403e0 97e59f70 17ffffce 97d0a3ea (d4210000) ---[ end trace 0000000000000000 ]---