loop0: detected capacity change from 0 to 64 hfs: new node 0 already hashed? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3958 at fs/hfs/bnode.c:432 hfs_bnode_create+0x428/0x4ec fs/hfs/bnode.c:431 Modules linked in: CPU: 0 PID: 3958 Comm: syz-executor813 Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/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 : ffff80001c937510 x29: ffff80001c937520 x28: ffff0001894a8000 x27: 00000000000000f8 x26: ffff0001894a80f8 x25: dfff800000000000 x24: 1ffff00003926eb8 x23: 0000000000000000 x22: ffff0000c5fd40e0 x21: ffff0000c5fd4000 x20: 0000000000000000 x19: ffff0000c0875200 x18: 0000000000000001 x17: 0000000000000000 x16: ffff80001197c3d4 x15: 00000000ffffffff x14: ffff0000da998000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 17e863a730318d00 x8 : 17e863a730318d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001c936c78 x4 : ffff8000149ef7a0 x3 : ffff80000a9623a0 x2 : ffff0001b47f3d10 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_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_mkdir+0x70/0xe4 fs/hfs/dir.c:232 vfs_mkdir+0x350/0x514 fs/namei.c:4065 do_mkdirat+0x20c/0x610 fs/namei.c:4090 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4103 __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: 15686 hardirqs last enabled at (15685): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (15686): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (15682): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (15682): [] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587 softirqs last disabled at (15675): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (15675): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (15675): [] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637 ---[ end trace 34326198235adb23 ]--- ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:479! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 3958 Comm: syz-executor813 Tainted: G W 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 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 : ffff80001c9377b0 x29: ffff80001c9377b0 x28: 0000000000000036 x27: ffff0000c0875200 x26: ffff0000c0875200 x25: ffff0000c5fd4000 x24: 1fffe0001810ea40 x23: dfff800000000000 x22: ffff0000c5fd4000 x21: ffff0000c0875280 x20: 0000000000000000 x19: ffff0000c0875200 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800008fceb08 x15: 00000000000000ff x14: ffff0000da998000 x13: 0000000020000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000da998000 x8 : ffff800008fcd414 x7 : 0000000000000008 x6 : 0000100000000025 x5 : ffff0000c26f5b4d x4 : ffff0001894a8688 x3 : ffff800008fcd058 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: hfs_bnode_put+0x414/0x420 fs/hfs/bnode.c:479 hfs_brec_insert+0x648/0x97c fs/hfs/brec.c:162 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_mkdir+0x70/0xe4 fs/hfs/dir.c:232 vfs_mkdir+0x350/0x514 fs/namei.c:4065 do_mkdirat+0x20c/0x610 fs/namei.c:4090 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4103 __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 97e3fd09 17ffffa5 97d3d537 (d4210000) ---[ end trace 34326198235adb24 ]---