hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7422 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 Modules linked in: CPU: 0 PID: 7422 Comm: syz.5.446 Not tainted 6.1.134-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 lr : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 sp : ffff800021d17090 x29: ffff800021d170a0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000100 x25: ffff0000d9c37088 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000f153a0e0 x21: ffff0000f153a000 x20: 0000000000000000 x19: ffff0000d9c37000 x18: 1fffe00036798576 x17: ffff800015afd000 x16: ffff80001232ab6c x15: ffff0001b3cc2bbc x14: 1ffff00002b600b2 x13: dfff800000000000 x12: 0000000000080000 x11: 000000000000671e x10: ffff800033fad000 x9 : cc6484f72b65dc00 x8 : cc6484f72b65dc00 x7 : ffff800008279464 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000ab36038 x2 : ffff0001b3cc2cd0 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 hfs_bmap_alloc+0x59c/0x664 fs/hfs/btree.c:291 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245 hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102 hfs_cat_create+0x458/0x71c fs/hfs/catalog.c:131 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0xeac/0x2548 fs/namei.c:3780 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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: 2130 hardirqs last enabled at (2129): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (2129): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5003 hardirqs last disabled at (2130): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2122): [] softirq_handle_end kernel/softirq.c:421 [inline] softirqs last enabled at (2122): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:606 softirqs last disabled at (2103): [] __do_softirq+0x14/0x20 kernel/softirq.c:612 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:467! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 7422 Comm: syz.5.446 Tainted: G W 6.1.134-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 sp : ffff800021d17330 x29: ffff800021d17330 x28: 000000000000008c x27: ffff0000d9c37000 x26: ffff0000d09dbe00 x25: ffff0000f153a000 x24: 1fffe0001b386e00 x23: dfff800000000000 x22: ffff0000f153a000 x21: ffff0000d9c37080 x20: 0000000000000000 x19: ffff0000d9c37000 x18: ffff800021d17588 x17: 0000000000000000 x16: ffff8000122784c0 x15: 0000000000000002 x14: 00000000000000ff x13: 705f65676173752e x12: 0000000000080000 x11: 0000000000021442 x10: ffff800033fad000 x9 : ffff8000090a25c8 x8 : 0000000000021443 x7 : 0000000000000004 x6 : 0000150000000025 x5 : ffff0000f3ac094d x4 : ffff0000f5bc8634 x3 : ffff8000090a2308 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 hfs_brec_insert+0x648/0x97c fs/hfs/brec.c:162 hfs_cat_create+0x458/0x71c fs/hfs/catalog.c:131 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0xeac/0x2548 fs/namei.c:3780 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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: aa1503e0 97e34da4 17ffffd5 97d145c7 (d4210000) ---[ end trace 0000000000000000 ]---