hfs: new node 6 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 8111 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 Modules linked in: CPU: 1 PID: 8111 Comm: syz-executor.2 Not tainted 6.1.23-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 lr : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 sp : ffff800021df7090 x29: ffff800021df70a0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000100 x25: ffff0000dd753e88 x24: 00000000000000fc x23: 0000000000000006 x22: ffff0000d84f20e0 x21: ffff0000d84f2000 x20: 0000000000000006 x19: ffff0000c91efc00 x18: 1fffe000368bab76 x17: ffff80001557d000 x16: ffff8000120db8f4 x15: ffff0001b45d5bbc x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000000001 x11: ff80800008341f24 x10: 0000000000000000 x9 : 9430044981032900 x8 : 9430044981032900 x7 : ffff80000827a538 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000aa69f4c x2 : ffff0001b45d5cd0 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 hfs_bmap_alloc+0x59c/0x664 fs/hfs/btree.c:291 hfs_bnode_split+0xcc/0xd88 fs/hfsplus/brec.c:245 hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0xeac/0x2548 fs/namei.c:3711 do_filp_open+0x1bc/0x3cc fs/namei.c:3741 do_sys_openat2+0x128/0x3d8 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1337 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 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:581 irq event stamp: 174 hardirqs last enabled at (173): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (173): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (174): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (114): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (112): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:467! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 8111 Comm: syz-executor.2 Tainted: G W 6.1.23-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 sp : ffff800021df71b0 x29: ffff800021df71b0 x28: dfff800000000000 x27: ffff800021df7580 x26: ffff0000c91efc00 x25: 1ffff000043bee58 x24: 1fffe0001923df80 x23: dfff800000000000 x22: ffff0000d84f2000 x21: ffff0000c91efc80 x20: 0000000000000000 x19: ffff0000c91efc00 x18: 1fffe000368bab76 x17: ffff80001557d000 x16: ffff8000084f40fc x15: ffff0001b45d5bbc x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000000001 x11: ff808000090891c8 x10: 0000000000000000 x9 : ffff8000090891c8 x8 : ffff0000cba13680 x7 : ffff80001202ef20 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800009088f08 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 hfs_bnode_split+0x228/0xd88 fs/hfsplus/brec.c:264 hfs_brec_insert+0x2bc/0x97c fs/hfs/brec.c:102 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0xeac/0x2548 fs/namei.c:3711 do_filp_open+0x1bc/0x3cc fs/namei.c:3741 do_sys_openat2+0x128/0x3d8 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1337 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 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:581 Code: aa1503e0 97e37087 17ffffd5 97d1abce (d4210000) ---[ end trace 0000000000000000 ]---