hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5668 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 Modules linked in: CPU: 1 PID: 5668 Comm: syz.5.233 Not tainted 6.1.128-syzkaller #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 : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 lr : hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 sp : ffff800021987090 x29: ffff8000219870a0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000100 x25: ffff0000d43fca88 x24: 0000000000000003 x23: 0000000000000000 x22: ffff0000d7bce0e0 x21: ffff0000d7bce000 x20: 0000000000000000 x19: ffff0000d43fca00 x18: ffff8000219865e0 x17: 0000000000000000 x16: ffff8000123313e4 x15: 0000000000000002 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000080000 x11: 0000000000005471 x10: ffff80003406d000 x9 : e263b1b52e221f00 x8 : e263b1b52e221f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800021986998 x4 : ffff800015b731c0 x3 : ffff80000ab33fec x2 : ffff0001b3d00cd0 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:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0xeac/0x2548 fs/namei.c:3780 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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/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:585 irq event stamp: 2254 hardirqs last enabled at (2253): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (2254): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2182): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (2180): [] 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: 5668 Comm: syz.5.233 Tainted: G W 6.1.128-syzkaller #0 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 : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 sp : ffff8000219871b0 x29: ffff8000219871b0 x28: dfff800000000000 x27: ffff800021987580 x26: ffff0000d43fca00 x25: 1ffff00004330e58 x24: 1fffe0001a87f940 x23: dfff800000000000 x22: ffff0000d7bce000 x21: ffff0000d43fca80 x20: 0000000000000000 x19: ffff0000d43fca00 x18: ffff800021986480 x17: ffff800018b7e000 x16: ffff8000084f309c x15: 0000000000000002 x14: 1ffff00002b520b2 x13: dfff800000000000 x12: 0000000000080000 x11: 000000000001ff7d x10: ffff80003406d000 x9 : ffff8000090a30ac x8 : 000000000001ff7e x7 : ffff800012283978 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000090a2dec 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:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0xeac/0x2548 fs/namei.c:3780 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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/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:585 Code: aa1503e0 97e34944 17ffffd5 97d13ffd (d4210000) ---[ end trace 0000000000000000 ]---