loop4: detected capacity change from 0 to 64 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5259 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 1 PID: 5259 Comm: syz.4.190 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 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 : ffff800020a170b0 x29: ffff800020a170c0 x28: ffff0000ef9bc000 x27: 00000000000000f2 x26: ffff0000ef9bc0f2 x25: dfff800000000000 x24: 1ffff00004142e2c x23: 0000000000000000 x22: ffff0000d65800e0 x21: ffff0000d6580000 x20: 0000000000000000 x19: ffff0000cf347800 x18: 0000000000000001 x17: 0000000000000002 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000e93d3680 x13: 0000000000000001 x12: 0000000000040000 x11: 00000000000075b1 x10: ffff800021cea000 x9 : c5ca2b895ce6be00 x8 : c5ca2b895ce6be00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020a16818 x4 : ffff800014b9fae0 x3 : ffff80000a987d1c x2 : ffff0001b41aed10 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_cat_create+0x4f0/0x844 fs/hfs/catalog.c:131 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0xf18/0x26cc fs/namei.c:3739 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 do_sys_openat2+0x128/0x3e0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 5064 hardirqs last enabled at (5063): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (5064): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (4948): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (4946): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 55e1aa14fcc5d7b3 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 5259 Comm: syz.4.190 Tainted: G W 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (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 : ffff800020a171d0 x29: ffff800020a171d0 x28: dfff800000000000 x27: ffff700004142e50 x26: 1fffe0001acb0003 x25: 0000000000000200 x24: 1fffe00019e68f00 x23: dfff800000000000 x22: ffff0000d6580000 x21: ffff0000cf347880 x20: 0000000000000000 x19: ffff0000cf347800 x18: 0000000000000001 x17: 0000000000000002 x16: ffff80000824ecc0 x15: 00000000ffffffff x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800021cea000 x9 : 0000000000040000 x8 : ffff800008fde26c x7 : ffff80000ab555f4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008fddeb0 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_cat_create+0x4f0/0x844 fs/hfs/catalog.c:131 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0xf18/0x26cc fs/namei.c:3739 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 do_sys_openat2+0x128/0x3e0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1403e0 97e3e000 17ffffa5 97d39f14 (d4210000) ---[ end trace 55e1aa14fcc5d7b4 ]---