------------[ cut here ]------------ WARNING: CPU: 0 PID: 10105 at fs/hfs/bnode.c:422 hfs_bnode_create+0x428/0x4dc fs/hfs/bnode.c:421 Modules linked in: CPU: 0 PID: 10105 Comm: syz-executor.2 Not tainted 6.1.22-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 : ffff800023c27090 x29: ffff800023c270a0 x28: dfff800000000000 x27: dfff800000000000 x26: 0000000000000100 x25: ffff0000c9f0ee88 x24: 00000000000000fc x23: 0000000000000006 x22: ffff0000d50680e0 x21: ffff0000d5068000 x20: 0000000000000006 x19: ffff0000d28e0200 x18: 1fffe000368b6b76 x17: ffff80001557d000 x16: ffff8000120d9934 x15: ffff0001b45b5bbc x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000000545d x10: ffff800020deb000 x9 : d4a515539fe93a00 x8 : d4a515539fe93a00 x7 : ffff80000827b520 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff80000aa673ec x2 : ffff0001b45b5cd0 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: 3436 hardirqs last enabled at (3435): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (3435): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (3436): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (3428): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (3428): [] __do_softirq+0xc14/0xea0 kernel/softirq.c:600 softirqs last disabled at (3289): [] ____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: 0 PID: 10105 Comm: syz-executor.2 Tainted: G W 6.1.22-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_put+0x318/0x324 fs/hfs/bnode.c:467 lr : hfs_bnode_put+0x318/0x324 fs/hfs/bnode.c:467 sp : ffff800023c271b0 x29: ffff800023c271b0 x28: dfff800000000000 x27: ffff800023c27580 x26: ffff0000d28e0200 x25: 1ffff00004784e58 x24: 1fffe0001a51c040 x23: dfff800000000000 x22: ffff0000d5068000 x21: ffff0000d28e0280 x20: 0000000000000000 x19: ffff0000d28e0200 x18: 1fffe000368b6b76 x17: ffff80001557d000 x16: ffff8000084f70d0 x15: ffff0001b45b5bbc x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800020deb000 x9 : ffff80000908b1f0 x8 : 0000000000040000 x7 : ffff80001202cf60 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000908af30 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 97e37071 17ffffd5 97d1afb9 (d4210000) ---[ end trace 0000000000000000 ]---