hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8051 at fs/hfsplus/bnode.c:579 hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 Modules linked in: CPU: 0 PID: 8051 Comm: syz.1.907 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 lr : hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 sp : ffff800021516e40 x29: ffff800021516e60 x28: 1ffff000042a2ddc x27: dfff800000000000 x26: 0000000000000000 x25: 0000000000000080 x24: 0000000000000000 x23: ffff0000dd60fe88 x22: 0000000000000000 x21: ffff0000e98de000 x20: 0000000000000000 x19: ffff0000dd60fe00 x18: ffff800011a7bce0 x17: 1fffe00033ee2f76 x16: ffff8000082d1c00 x15: 0000000040000002 x14: 0000000000000002 x13: 1ffff00002a0e0b1 x12: 0000000000080000 x11: 0000000000004dfd x10: ffff800032e8d000 x9 : deb020ab01e3f600 x8 : deb020ab01e3f600 x7 : ffff8000082516dc x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000a83c7ec x2 : ffff00019f717cd0 x1 : 0000000100000000 x0 : 0000000000000023 Call trace: hfsplus_bnode_create+0x40c/0x4c8 fs/hfsplus/bnode.c:578 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+0x938/0x1a30 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+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: 248 hardirqs last enabled at (247): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (247): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5003 hardirqs last disabled at (248): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (240): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (240): [] handle_softirqs+0xaf8/0xc6c kernel/softirq.c:624 softirqs last disabled at (133): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:624! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 8051 Comm: syz.1.907 Tainted: G W 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 lr : hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 sp : ffff800021516f40 x29: ffff800021516f40 x28: 0000000000000000 x27: dfff800000000000 x26: ffff7000042a2dfc x25: ffff800021516fe0 x24: 1fffe0001bac1fc0 x23: ffff0000e98de000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000dd60fe80 x19: ffff0000dd60fe00 x18: ffff800011a7bce0 x17: 1fffe00033ee2f76 x16: ffff8000082d1c00 x15: 0000000040000002 x14: 0000000000000001 x13: 1ffff00002a0e0b1 x12: 0000000000080000 x11: 000000000001fe88 x10: ffff800032e8d000 x9 : ffff800008f6be0c x8 : 000000000001fe89 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008f6b9d8 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfsplus_bnode_put+0x490/0x49c fs/hfsplus/bnode.c:624 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+0x938/0x1a30 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+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 97e5a743 17ffffb4 97d4d56f (d4210000) ---[ end trace 0000000000000000 ]---