hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6259 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583 Modules linked in: CPU: 1 PID: 6259 Comm: syz.4.447 Not tainted 5.15.173-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/0x4ec fs/hfsplus/bnode.c:583 lr : hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583 sp : ffff8000208e6d50 x29: ffff8000208e6d60 x28: ffff0000eeba50f8 x27: ffff0000eeba5000 x26: 00000000000000f8 x25: dfff800000000000 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000d43140e0 x21: ffff0000d4314000 x20: 0000000000000000 x19: ffff0000da467e00 x18: 1fffe00036835d8e x17: 1fffe00036835d8e x16: ffff800011ab8a34 x15: ffff800008a24364 x14: ffff800008a26278 x13: ffff800008a26278 x12: 0000000000080000 x11: 0000000000008968 x10: ffff80002799c000 x9 : f12f4fd83aad3200 x8 : f12f4fd83aad3200 x7 : 0000000000000000 x6 : ffff80000805d400 x5 : ffff0000e55fb858 x4 : 0000000000000000 x3 : ffff80000a98269c x2 : ffff0001b41aed10 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583 hfsplus_bmap_alloc+0x5a4/0x698 fs/hfsplus/btree.c:414 hfs_btree_inc_height+0xf8/0xa60 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 hfsplus_create_attr+0x3b0/0x568 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x9a8/0x1df0 fs/hfsplus/xattr.c:354 hfsplus_osx_setxattr+0xec/0x128 fs/hfsplus/xattr.c:878 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x1a8/0x344 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x250/0x2b4 fs/xattr.c:611 path_setxattr+0x17c/0x258 fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 230 hardirqs last enabled at (229): [] __call_rcu kernel/rcu/tree.c:3041 [inline] hardirqs last enabled at (229): [] call_rcu+0x644/0xb40 kernel/rcu/tree.c:3087 hardirqs last disabled at (230): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (184): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (184): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (111): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (111): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (111): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (111): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace 987822f02cd7e81c ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:631! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6259 Comm: syz.4.447 Tainted: G W 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 lr : hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 sp : ffff8000208e6e60 x29: ffff8000208e6e60 x28: dfff800000000000 x27: ffff70000411cde4 x26: 1fffe0001a862803 x25: ffff0000d4314000 x24: 1fffe0001b48cfc0 x23: dfff800000000000 x22: ffff0000da467e00 x21: ffff0000da467e80 x20: 0000000000000000 x19: ffff0000da467e00 x18: 1fffe00036835d8e x17: 1fffe00036835d8e x16: ffff800011ab8a34 x15: ffff800008a24364 x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000080000 x11: 000000000001f461 x10: ffff80002799c000 x9 : 000000000001f462 x8 : ffff800008fc6c50 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008fc6724 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x588/0x594 fs/hfsplus/bnode.c:631 hfs_btree_inc_height+0x4fc/0xa60 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x11c/0xaa0 fs/hfsplus/brec.c:75 hfsplus_create_attr+0x3b0/0x568 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x9a8/0x1df0 fs/hfsplus/xattr.c:354 hfsplus_osx_setxattr+0xec/0x128 fs/hfsplus/xattr.c:878 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x1a8/0x344 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x250/0x2b4 fs/xattr.c:611 path_setxattr+0x17c/0x258 fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e43b51 17ffff77 97d3f5ac (d4210000) ---[ end trace 987822f02cd7e81d ]---