loop2: detected capacity change from 0 to 64 ------------[ cut here ]------------ kernel BUG at fs/hfs/btree.c:41! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 29126 Comm: syz-executor.2 Not tainted 6.2.0-rc5-syzkaller-00047-g7c46948a6e9c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:hfs_btree_open+0xf04/0xf20 fs/hfs/btree.c:41 Code: 7d ff e9 77 fa ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 93 fa ff ff 4c 89 f7 e8 46 06 7d ff e9 86 fa ff ff e8 ac 40 26 ff <0f> 0b e8 a5 40 26 ff 0f 0b e8 9e 40 26 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90005dbf7b8 EFLAGS: 00010283 RAX: ffffffff8267a844 RBX: ffff888073266250 RCX: 0000000000040000 RDX: ffffc9000c96e000 RSI: 0000000000001d1f RDI: 0000000000001d20 RBP: 0000000000000000 R08: ffffffff82679aa3 R09: ffffed100e64cc66 R10: ffffed100e64cc66 R11: 1ffff1100e64cc65 R12: ffff888075c68000 R13: ffff8880925a2008 R14: ffff8880925a2000 R15: dffffc0000000000 FS: 00007f945bc91700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f43f4662a08 CR3: 0000000078f16000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_mdb_get+0x1466/0x21d0 fs/hfs/mdb.c:199 hfs_fill_super+0x10a2/0x1800 fs/hfs/super.c:406 mount_bdev+0x26c/0x3a0 fs/super.c:1359 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1489 do_new_mount+0x289/0xad0 fs/namespace.c:3145 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f945ae8d5fa Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f945bc90f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000278 RCX: 00007f945ae8d5fa RDX: 0000000020000400 RSI: 0000000020000100 RDI: 00007f945bc90fe0 RBP: 00007f945bc91020 R08: 00007f945bc91020 R09: 0000000003000400 R10: 0000000003000400 R11: 0000000000000202 R12: 0000000020000400 R13: 0000000020000100 R14: 00007f945bc90fe0 R15: 0000000020000440 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_btree_open+0xf04/0xf20 fs/hfs/btree.c:41 Code: 7d ff e9 77 fa ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 93 fa ff ff 4c 89 f7 e8 46 06 7d ff e9 86 fa ff ff e8 ac 40 26 ff <0f> 0b e8 a5 40 26 ff 0f 0b e8 9e 40 26 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90005dbf7b8 EFLAGS: 00010283 RAX: ffffffff8267a844 RBX: ffff888073266250 RCX: 0000000000040000 RDX: ffffc9000c96e000 RSI: 0000000000001d1f RDI: 0000000000001d20 RBP: 0000000000000000 R08: ffffffff82679aa3 R09: ffffed100e64cc66 R10: ffffed100e64cc66 R11: 1ffff1100e64cc65 R12: ffff888075c68000 R13: ffff8880925a2008 R14: ffff8880925a2000 R15: dffffc0000000000 FS: 00007f945bc91700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fec20dc8958 CR3: 0000000078f16000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400