hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5171 at fs/hfsplus/bnode.c:671 hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:670 Modules linked in: CPU: 1 PID: 5171 Comm: syz.1.138 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:670 lr : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:670 sp : ffff800023296de0 x29: ffff800023296e00 x28: 1ffff00004652dd0 x27: dfff800000000000 x26: 0000000000000000 x25: 0000000000000080 x24: 0000000000000000 x23: ffff0000ce3fa488 x22: 0000000000000000 x21: ffff0000c4022000 x20: 0000000000000000 x19: ffff0000ce3fa400 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082d22e0 x15: 0000000000000002 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000080000 x11: 00000000000096d7 x10: ffff8000221bb000 x9 : c600e83e08e4cf00 x8 : c600e83e08e4cf00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000232968b8 x4 : ffff8000151a4820 x3 : ffff80000a84556c x2 : ffff00019f6ddd10 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:670 hfsplus_bmap_alloc+0x4e8/0x590 fs/hfsplus/btree.c:415 hfs_btree_inc_height+0xf8/0x8e0 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0x108/0xaa8 fs/hfsplus/brec.c:75 hfsplus_create_attr+0x394/0x4c8 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x934/0x1a3c fs/hfsplus/xattr.c:358 hfsplus_setxattr+0xdc/0x12c fs/hfsplus/xattr.c:438 hfsplus_security_setxattr+0x54/0x6c fs/hfsplus/xattr_security.c:31 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __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/0x138 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: 10202 hardirqs last enabled at (10201): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (10202): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (10144): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (10142): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:716! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5171 Comm: syz.1.138 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:716 lr : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:716 sp : ffff800023296ee0 x29: ffff800023296ee0 x28: 0000000000000000 x27: dfff800000000000 x26: ffff700004652df0 x25: ffff800023296f80 x24: 1fffe00019c7f480 x23: ffff0000c4022000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000ce3fa480 x19: ffff0000ce3fa400 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000082d22e0 x15: 0000000000000002 x14: 0000000000000001 x13: 1ffff00002a180b1 x12: 0000000000080000 x11: 000000000007ffff x10: ffff8000221bb000 x9 : ffff800008f6f150 x8 : 0000000000080000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008f6ed1c x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:716 hfs_btree_inc_height+0x48c/0x8e0 fs/hfsplus/brec.c:530 hfsplus_brec_insert+0x108/0xaa8 fs/hfsplus/brec.c:75 hfsplus_create_attr+0x394/0x4c8 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x934/0x1a3c fs/hfsplus/xattr.c:358 hfsplus_setxattr+0xdc/0x12c fs/hfsplus/xattr.c:438 hfsplus_security_setxattr+0x54/0x6c fs/hfsplus/xattr_security.c:31 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __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/0x138 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: aa1403e0 97e59fd3 17ffffb4 97d4c9d3 (d4210000) ---[ end trace 0000000000000000 ]---