hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 26096 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 1 PID: 26096 Comm: syz-executor.1 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 : ffff800022f26d30 x29: ffff800022f26d40 x28: ffff00012c4b3000 x27: 000000000000008c x26: ffff00012c4b308c x25: dfff800000000000 x24: 1ffff000045e4dbc x23: 0000000000000000 x22: ffff0000dafe60e0 x21: ffff0000dafe6000 x20: 0000000000000000 x19: ffff0000cb7f2400 x18: 1fffe00036903d8e x17: 1fffe00036903d8e x16: ffff800011943d44 x15: ffff80001496eda0 x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000014ec1 x10: ffff80001dfd0000 x9 : e977c100ad9d1c00 x8 : e977c100ad9d1c00 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a94f720 x2 : ffff0001b481ed10 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_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_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x278/0x10e4 fs/hfs/extent.c:401 hfs_bmap_reserve+0xd0/0x3b4 fs/hfs/btree.c:231 hfs_cat_create+0x1bc/0x844 fs/hfs/catalog.c:104 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: 3532 hardirqs last enabled at (3531): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1337 [inline] hardirqs last enabled at (3531): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780 hardirqs last disabled at (3532): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (3454): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (3454): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (3427): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (3427): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (3427): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636 ---[ end trace fde32a8956f122b0 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 26096 Comm: syz-executor.1 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 : ffff800022f26e50 x29: ffff800022f26e50 x28: dfff800000000000 x27: ffff7000045e4de0 x26: 1fffe0001b5fcc03 x25: 0000000000000200 x24: 1fffe000196fe480 x23: dfff800000000000 x22: ffff0000dafe6000 x21: ffff0000cb7f2480 x20: 0000000000000000 x19: ffff0000cb7f2400 x18: 1fffe00036903d8e x17: 1fffe00036903d8e x16: ffff800011943ed4 x15: ffff80001496eda0 x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000002bd43 x10: ffff80001dfd0000 x9 : ffff800008fc4f2c x8 : 000000000002bd44 x7 : ffff8000089135ac x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008fc4b70 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 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_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x278/0x10e4 fs/hfs/extent.c:401 hfs_bmap_reserve+0xd0/0x3b4 fs/hfs/btree.c:231 hfs_cat_create+0x1bc/0x844 fs/hfs/catalog.c:104 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 fde32a8956f122b1 ]---