hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 26005 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 Modules linked in: CPU: 0 PID: 26005 Comm: syz-executor.0 Not tainted 6.8.0-rc2-syzkaller-g41bccc98fb79 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 sp : ffff80009a6169d0 x29: ffff80009a6169e0 x28: dfff800000000000 x27: dfff800000000000 x26: ffff00012893f0f8 x25: dfff800000000000 x24: ffff0000d1cd8088 x23: 0000000000000000 x22: ffff0000dc9cc0e0 x21: ffff0000dc9cc000 x20: 0000000000000000 x19: ffff0000d1cd8000 x18: 1fffe000367ff796 x17: 0000000000000000 x16: ffff80008ad5b524 x15: 0000000000000001 x14: 1ffff000134c2c90 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000001b062 x9 : 0187359c6cc7a400 x8 : 0187359c6cc7a400 x7 : fffffffffffcdc30 x6 : fffffffffffcdc00 x5 : ffff80009a6162d8 x4 : ffff80008ed26988 x3 : ffff800082f20fb4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x428/0x4dc fs/hfsplus/bnode.c:572 hfsplus_bmap_alloc+0x570/0x638 fs/hfsplus/btree.c:415 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+0x980/0x1d00 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x264/0x428 security/security.c:1752 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_fill_super+0x1010/0x166c fs/hfsplus/super.c:567 mount_bdev+0x1d4/0x2a0 fs/super.c:1663 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1784 do_new_mount+0x278/0x900 fs/namespace.c:3352 path_mount+0x590/0xe04 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3875 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 4812 hardirqs last enabled at (4811): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (4811): [] __console_unlock kernel/printk/printk.c:2706 [inline] hardirqs last enabled at (4811): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3038 hardirqs last disabled at (4812): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (4266): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (4266): [] __do_softirq+0xac8/0xce4 kernel/softirq.c:582 softirqs last disabled at (4107): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 26005 Comm: syz-executor.0 Tainted: G W 6.8.0-rc2-syzkaller-g41bccc98fb79 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 lr : hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 sp : ffff80009a616ac0 x29: ffff80009a616ac0 x28: dfff800000000000 x27: ffff7000134c2d70 x26: 1fffe0001b939803 x25: 1fffe0001a39b000 x24: ffff0000dc9cc000 x23: dfff800000000000 x22: ffff0000d1cd8000 x21: ffff0000d1cd8080 x20: 0000000000000000 x19: ffff0000d1cd8000 x18: 1fffe000367ff796 x17: 0000000000000000 x16: ffff80008ad5b524 x15: 0000000000000001 x14: 1fffe0001a39b010 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003b30f x9 : ffff800097bd9000 x8 : 000000000003b310 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000000 x3 : ffff800081155ac0 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 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+0x980/0x1d00 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x264/0x428 security/security.c:1752 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_fill_super+0x1010/0x166c fs/hfsplus/super.c:567 mount_bdev+0x1d4/0x2a0 fs/super.c:1663 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1784 do_new_mount+0x278/0x900 fs/namespace.c:3352 path_mount+0x590/0xe04 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3875 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: aa1403e0 97e2974c 17ffffb7 97cf50df (d4210000) ---[ end trace 0000000000000000 ]---