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: 0 PID: 7938 Comm: syz-executor.2 Not tainted 6.1.0-rc7-syzkaller-00140-gbdaa78c6aa86 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:hfs_btree_open+0xca4/0xff0 fs/hfs/btree.c:41 Code: 12 ee 39 ff 44 8b 7c 24 08 bf 25 00 00 00 44 89 fe e8 b0 ea 39 ff 41 83 ff 25 0f 84 fc f7 ff ff e9 14 bd 65 07 e8 ec ed 39 ff <0f> 0b e8 15 c7 86 ff e9 32 f4 ff ff e8 0b c7 86 ff e9 5f f5 ff ff RSP: 0018:ffffc900150478f8 EFLAGS: 00010212 RAX: 0000000000007192 RBX: ffff88803dd211c0 RCX: ffffc9000b311000 RDX: 0000000000040000 RSI: ffffffff82462c54 RDI: 0000000000000007 RBP: 0000000000000003 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888084f3a000 R13: ffff888084f3a008 R14: ffff888076e6c000 R15: 0000000000000003 FS: 00007ff415567700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc09bfad988 CR3: 0000000074213000 CR4: 0000000000350ef0 Call Trace: hfs_mdb_get+0x15b8/0x1f10 fs/hfs/mdb.c:199 hfs_fill_super+0xa5f/0x1340 fs/hfs/super.c:406 mount_bdev+0x351/0x410 fs/super.c:1401 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff41488d60a 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:00007ff415566f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000029e RCX: 00007ff41488d60a RDX: 0000000020000100 RSI: 0000000020000380 RDI: 00007ff415566fe0 RBP: 00007ff415567020 R08: 00007ff415567020 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000202 R12: 0000000020000100 R13: 0000000020000380 R14: 00007ff415566fe0 R15: 0000000020000140 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_btree_open+0xca4/0xff0 fs/hfs/btree.c:41 Code: 12 ee 39 ff 44 8b 7c 24 08 bf 25 00 00 00 44 89 fe e8 b0 ea 39 ff 41 83 ff 25 0f 84 fc f7 ff ff e9 14 bd 65 07 e8 ec ed 39 ff <0f> 0b e8 15 c7 86 ff e9 32 f4 ff ff e8 0b c7 86 ff e9 5f f5 ff ff RSP: 0018:ffffc900150478f8 EFLAGS: 00010212 RAX: 0000000000007192 RBX: ffff88803dd211c0 RCX: ffffc9000b311000 RDX: 0000000000040000 RSI: ffffffff82462c54 RDI: 0000000000000007 RBP: 0000000000000003 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888084f3a000 R13: ffff888084f3a008 R14: ffff888076e6c000 R15: 0000000000000003 FS: 00007ff415567700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc0961ff000 CR3: 0000000074213000 CR4: 0000000000350ee0