loop5: detected capacity change from 0 to 64 ------------[ cut here ]------------ kernel BUG at fs/hfs/bnode.c:466! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 12918 Comm: syz-executor.5 Not tainted 6.1.0-syzkaller-11674-g84e57d292203 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:hfs_bnode_put+0x46f/0x480 fs/hfs/bnode.c:466 Code: 6b 7f ff e9 73 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a0 fe ff ff 48 89 df e8 ab 6b 7f ff e9 93 fe ff ff e8 b1 cf 29 ff <0f> 0b e8 aa cf 29 ff 0f 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 RSP: 0018:ffffc90003a7f2d8 EFLAGS: 00010283 RAX: ffffffff826203af RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000b11a000 RSI: 000000000000083a RDI: 000000000000083b RBP: ffffc90003a7f3f0 R08: ffffffff8261ffbb R09: ffffed100f143ed1 R10: ffffed100f143ed1 R11: 1ffff1100f143ed0 R12: ffff888078a1f680 R13: ffff8880453b0000 R14: dffffc0000000000 R15: ffff888078a1f600 FS: 00007fc832ea4700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002004a000 CR3: 000000002d854000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_bmap_alloc+0x58e/0x620 fs/hfs/btree.c:290 hfs_bnode_split+0xc3/0x10c0 fs/hfsplus/brec.c:245 hfs_brec_insert+0x369/0xc00 fs/hfs/brec.c:102 hfs_cat_create+0x44e/0x8a0 fs/hfs/catalog.c:118 hfs_create+0x62/0xd0 fs/hfs/dir.c:202 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x12ac/0x2dd0 fs/namei.c:3711 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 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] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc83208c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc832ea4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc8321abf80 RCX: 00007fc83208c0d9 RDX: 000000000000275a RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007fc8320e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc3ad0b97f R14: 00007fc832ea4300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_bnode_put+0x46f/0x480 fs/hfs/bnode.c:466 Code: 6b 7f ff e9 73 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a0 fe ff ff 48 89 df e8 ab 6b 7f ff e9 93 fe ff ff e8 b1 cf 29 ff <0f> 0b e8 aa cf 29 ff 0f 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 RSP: 0018:ffffc90003a7f2d8 EFLAGS: 00010283 RAX: ffffffff826203af RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000b11a000 RSI: 000000000000083a RDI: 000000000000083b RBP: ffffc90003a7f3f0 R08: ffffffff8261ffbb R09: ffffed100f143ed1 R10: ffffed100f143ed1 R11: 1ffff1100f143ed0 R12: ffff888078a1f680 R13: ffff8880453b0000 R14: dffffc0000000000 R15: ffff888078a1f600 FS: 00007fc832ea4700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32924000 CR3: 000000002d854000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400