hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 16059 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583 Modules linked in: CPU: 0 PID: 16059 Comm: syz-executor.2 Not tainted 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 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 : ffff80001e916cb0 x29: ffff80001e916cc0 x28: ffff000193f700f8 x27: ffff000193f70000 x26: 00000000000000f8 x25: dfff800000000000 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000ce53c0e0 x21: ffff0000ce53c000 x20: 0000000000000000 x19: ffff00013a894600 x18: 1fffe000368ff78e x17: 1fffe000368ff78e x16: ffff800011950fac x15: ffff80001497f100 x14: 1ffff0000291c06a x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000021bd2 x10: ffff80001e54b000 x9 : 69ac16d042a86b00 x8 : 69ac16d042a86b00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a953900 x2 : ffff0001b47fbd10 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_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245 hfsplus_brec_insert+0x2d4/0xaa0 fs/hfsplus/brec.c:100 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560 mount_bdev+0x26c/0x368 fs/super.c:1378 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 4874 hardirqs last enabled at (4873): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (4873): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (4874): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (4868): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (4868): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (4611): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4611): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (4611): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 6773d8dbd5877458 ]--- hfsplus: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 16059 at fs/hfsplus/bnode.c:584 hfsplus_bnode_create+0x428/0x4ec fs/hfsplus/bnode.c:583 Modules linked in: CPU: 0 PID: 16059 Comm: syz-executor.2 Tainted: G W 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 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 : ffff80001e916cf0 x29: ffff80001e916d00 x28: ffff000193f70134 x27: ffff000193f70000 x26: 0000000000000134 x25: dfff800000000000 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000ce53c0e0 x21: ffff0000ce53c000 x20: 0000000000000000 x19: ffff00013a894600 x18: 0000000000000001 x17: ff80800008335ea8 x16: ffff800011950fac x15: ffff800008335ea8 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000003b3f9 x10: ffff80001e54b000 x9 : 69ac16d042a86b00 x8 : 69ac16d042a86b00 x7 : 0000000000076140 x6 : 00000000000760d0 x5 : ffff80001e916458 x4 : ffff8000149a12f8 x3 : ffff80000a953900 x2 : ffff0001b47fbd10 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+0x594/0xaa0 fs/hfsplus/brec.c:148 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560 mount_bdev+0x26c/0x368 fs/super.c:1378 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 5158 hardirqs last enabled at (5157): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (5158): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (5100): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (5100): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (4877): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (4877): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (4877): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace 6773d8dbd5877459 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:631! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 16059 Comm: syz-executor.2 Tainted: G W 5.15.113-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 pstate: 60400005 (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 : ffff80001e916e00 x29: ffff80001e916e00 x28: dfff800000000000 x27: ffff700003d22dd8 x26: 1fffe00019ca7803 x25: ffff0000ce53c000 x24: 1fffe000275128c0 x23: dfff800000000000 x22: ffff00013a894600 x21: ffff00013a894680 x20: 0000000000000000 x19: ffff00013a894600 x18: 0000000000000001 x17: ff80800008335ea8 x16: ffff80000824cbf4 x15: ffff800008335ea8 x14: 1ffff0000291c06a x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000003ffff x10: ffff80001e54b000 x9 : ffff800008fb0384 x8 : 0000000000040000 x7 : ffff80000ab21a44 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fafe58 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+0x594/0xaa0 fs/hfsplus/brec.c:148 hfsplus_create_cat+0x3ac/0x1330 fs/hfsplus/catalog.c:292 hfsplus_fill_super+0xf64/0x167c fs/hfsplus/super.c:560 mount_bdev+0x26c/0x368 fs/super.c:1378 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e45d74 17ffff77 97d44b5f (d4210000) ---[ end trace 6773d8dbd587745a ]---