hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5544 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 Modules linked in: CPU: 1 PID: 5544 Comm: syz-executor.2 Not tainted 6.1.74-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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 : ffff800022246fd0 x29: ffff800022246fe0 x28: dfff800000000000 x27: dfff800000000000 x26: 000000000000016c x25: ffff0000d3e07088 x24: 0000000000000000 x23: 0000000000000000 x22: ffff00012298c0e0 x21: ffff00012298c000 x20: 0000000000000000 x19: ffff0000d3e07000 x18: 1fffe0003686ff76 x17: ffff80001582d000 x16: ffff80001214bb4c x15: ffff0001b437fbbc x14: 1ffff00002b060b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff80001f129000 x9 : ce1d384255070c00 x8 : ce1d384255070c00 x7 : ffff80000827c3a8 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000aa8616c x2 : ffff0001b437fcd0 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_btree_inc_height+0xf8/0x9d0 fs/hfs/brec.c:471 hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124 hfs_ext_write_extent+0x148/0x1c0 fs/hfs/extent.c:144 hfs_write_inode+0xc0/0xc1c fs/hfs/inode.c:431 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x614/0x1770 fs/fs-writeback.c:1677 writeback_single_inode+0x1c0/0x79c fs/fs-writeback.c:1733 write_inode_now+0x198/0x230 fs/fs-writeback.c:2769 hfs_file_fsync+0xac/0x148 fs/hfs/inode.c:679 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2941 [inline] generic_file_write_iter+0x228/0x2b4 mm/filemap.c:3981 call_write_iter include/linux/fs.h:2249 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __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:585 irq event stamp: 2854 hardirqs last enabled at (2853): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (2853): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (2854): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2846): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (2846): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (2669): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ 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: 5544 Comm: syz-executor.2 Tainted: G W 6.1.74-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 60400005 (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 : ffff8000222470f0 x29: ffff8000222470f0 x28: dfff800000000000 x27: ffff700004448e34 x26: 1fffe00024531803 x25: 0000000000000200 x24: 1fffe0001a7c0e00 x23: dfff800000000000 x22: ffff00012298c000 x21: ffff0000d3e07080 x20: 0000000000000000 x19: ffff0000d3e07000 x18: 1fffe0003686ff76 x17: ffff80001582d000 x16: ffff80001214bc7c x15: ffff0001b437fbbc x14: 1ffff00002b060b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff80001f129000 x9 : ffff800009097f40 x8 : 0000000000040000 x7 : ffff8000089d0934 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800009097c80 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 hfs_btree_inc_height+0x4c0/0x9d0 fs/hfs/brec.c:525 hfs_brec_insert+0x580/0x97c fs/hfs/brec.c:148 __hfs_ext_write_extent+0x240/0x468 fs/hfs/extent.c:124 hfs_ext_write_extent+0x148/0x1c0 fs/hfs/extent.c:144 hfs_write_inode+0xc0/0xc1c fs/hfs/inode.c:431 write_inode fs/fs-writeback.c:1460 [inline] __writeback_single_inode+0x614/0x1770 fs/fs-writeback.c:1677 writeback_single_inode+0x1c0/0x79c fs/fs-writeback.c:1733 write_inode_now+0x198/0x230 fs/fs-writeback.c:2769 hfs_file_fsync+0xac/0x148 fs/hfs/inode.c:679 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2941 [inline] generic_file_write_iter+0x228/0x2b4 mm/filemap.c:3981 call_write_iter include/linux/fs.h:2249 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x914 fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __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:585 Code: aa1503e0 97e3669b 17ffffd5 97d1843f (d4210000) ---[ end trace 0000000000000000 ]---