hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5418 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 0 PID: 5418 Comm: syz-executor.5 Not tainted 5.15.107-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/0x4ec fs/hfs/bnode.c:431 lr : hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 sp : ffff80001d297070 x29: ffff80001d297080 x28: ffff00012a37f000 x27: 00000000000000f8 x26: ffff00012a37f0f8 x25: dfff800000000000 x24: 1ffff00003a52e24 x23: 0000000000000000 x22: ffff0000d7fd80e0 x21: ffff0000d7fd8000 x20: 0000000000000000 x19: ffff0000c8b8f800 x18: 0000000000000001 x17: ff80800008333ebc x16: ffff800011943d44 x15: ffff800008333ebc x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000000da24 x10: ffff800022d3b000 x9 : 7852a5492ca0a200 x8 : 7852a5492ca0a200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001d2967d8 x4 : ffff8000149af940 x3 : ffff80000854a4a4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000001f Call trace: hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 hfs_bmap_alloc+0x5c0/0x6b4 fs/hfs/btree.c:288 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:3392 [inline] open_last_lookups fs/namei.c:3462 [inline] path_openat+0xec0/0x26f0 fs/namei.c:3669 do_filp_open+0x1a8/0x3b4 fs/namei.c:3699 do_sys_openat2+0x128/0x3d8 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238 __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: 2106 hardirqs last enabled at (2105): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (2106): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (2032): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (2030): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 41ee6e977750b12b ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5418 Comm: syz-executor.5 Tainted: G W 5.15.107-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+0x414/0x420 fs/hfs/bnode.c:479 lr : hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 sp : ffff80001d297310 x29: ffff80001d297310 x28: 0000000000000036 x27: ffff0000c8b8f800 x26: ffff0000c8b8f800 x25: ffff0000d7fd8000 x24: 1fffe00019171f00 x23: dfff800000000000 x22: ffff0000d7fd8000 x21: ffff0000c8b8f880 x20: 0000000000000000 x19: ffff0000c8b8f800 x18: 0000000000000000 x17: ff80800008fc6620 x16: 0000000000000002 x15: ffff800008fc6620 x14: 0000000000000000 x13: ffffffffffffffff x12: 0000000000040000 x11: 00000000000240ca x10: ffff800022d3b000 x9 : ffff800008fc4f2c x8 : 00000000000240cb x7 : 0000000000000000 x6 : 0000100000000025 x5 : ffff0000cf219f4d x4 : ffff00012a37f688 x3 : ffff800008fc4b70 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 hfs_brec_insert+0x648/0x97c fs/hfs/brec.c:162 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3392 [inline] open_last_lookups fs/namei.c:3462 [inline] path_openat+0xec0/0x26f0 fs/namei.c:3669 do_filp_open+0x1a8/0x3b4 fs/namei.c:3699 do_sys_openat2+0x128/0x3d8 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238 __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 97e40449 17ffffa5 97d3eac0 (d4210000) ---[ end trace 41ee6e977750b12c ]---