hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7328 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 Modules linked in: CPU: 1 UID: 0 PID: 7328 Comm: syz.3.158 Not tainted 6.14.0-rc1-syzkaller-g2014c95afece #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 lr : hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 sp : ffff8000a10c6b70 x29: ffff8000a10c6b80 x28: 0000000000000400 x27: dfff800000000000 x26: ffff0000f3b6f000 x25: ffff0000f3b6f400 x24: ffff0000f690c000 x23: 0000000000000000 x22: ffff0000f690c0e0 x21: ffff0000f690c000 x20: 0000000000000000 x19: ffff0000cc6ea500 x18: 1fffe000366f6486 x17: ffff80008fbcd000 x16: ffff8000832d977c x15: 0000000000000001 x14: 1ffff00014218cc8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000004b8e x9 : 38c721f9a4774700 x8 : 38c721f9a4774700 x7 : ffff8000803d5ea8 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800083275f78 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x384/0x430 fs/hfsplus/bnode.c:572 (P) hfsplus_bmap_alloc+0x48c/0x538 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+0x9c4/0x2300 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1852 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_mknod+0x190/0x268 fs/hfsplus/dir.c:498 hfsplus_create+0x38/0x4c fs/hfsplus/dir.c:523 lookup_open fs/namei.c:3651 [inline] open_last_lookups fs/namei.c:3750 [inline] path_openat+0x13ec/0x2b1c fs/namei.c:3986 do_filp_open+0x1e8/0x404 fs/namei.c:4016 do_sys_openat2+0x124/0x1b8 fs/open.c:1427 do_sys_open fs/open.c:1442 [inline] __do_sys_openat fs/open.c:1458 [inline] __se_sys_openat fs/open.c:1453 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1453 __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+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 450 hardirqs last enabled at (449): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1533 [inline] hardirqs last enabled at (449): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5131 hardirqs last disabled at (450): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (442): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (442): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (209): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ 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 UID: 0 PID: 7328 Comm: syz.3.158 Tainted: G W 6.14.0-rc1-syzkaller-g2014c95afece #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 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 : ffff8000a10c6c60 x29: ffff8000a10c6c60 x28: dfff800000000000 x27: ffff700014218da4 x26: 1fffe0001ed21803 x25: 1fffe000198dd4a0 x24: ffff0000f690c000 x23: dfff800000000000 x22: ffff0000cc6ea500 x21: ffff0000cc6ea580 x20: 0000000000000000 x19: ffff0000cc6ea500 x18: 1fffe000366f6486 x17: ffff80008fbcd000 x16: ffff8000832d977c x15: 0000000000000001 x14: 1fffe000198dd4b0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000002301b x9 : ffff8000a542b000 x8 : 000000000002301c x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000000 x3 : ffff8000812d3d44 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x488/0x494 fs/hfsplus/bnode.c:618 (P) 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+0x9c4/0x2300 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1852 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_mknod+0x190/0x268 fs/hfsplus/dir.c:498 hfsplus_create+0x38/0x4c fs/hfsplus/dir.c:523 lookup_open fs/namei.c:3651 [inline] open_last_lookups fs/namei.c:3750 [inline] path_openat+0x13ec/0x2b1c fs/namei.c:3986 do_filp_open+0x1e8/0x404 fs/namei.c:4016 do_sys_openat2+0x124/0x1b8 fs/open.c:1427 do_sys_open fs/open.c:1442 [inline] __do_sys_openat fs/open.c:1458 [inline] __se_sys_openat fs/open.c:1453 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1453 __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+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1403e0 97e497c6 17ffffb7 97cf32f2 (d4210000) ---[ end trace 0000000000000000 ]---