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: 417 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:hfs_btree_open+0xf04/0xf20 fs/hfs/btree.c:41 Code: 7f 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 66 0a 7f ff e9 86 fa ff ff e8 fc 6d 29 ff <0f> 0b e8 f5 6d 29 ff 0f 0b e8 ee 6d 29 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90012937798 EFLAGS: 00010293 RAX: ffffffff826267c4 RBX: ffff888027930000 RCX: ffff8880222dba80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff82625a23 R09: ffffed1004f2601c R10: ffffed1004f2601c R11: 1ffff11004f2601b R12: ffff8880281fe000 R13: ffff88802b58e008 R14: ffff88802b58e000 R15: dffffc0000000000 FS: 00007f512782a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9a6475b000 CR3: 000000002f018000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_mdb_get+0x1404/0x21a0 fs/hfs/mdb.c:199 hfs_fill_super+0xfc7/0x1690 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+0x2d3/0x3c0 fs/namespace.c:3674 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:0x7f5126a8d60a 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:00007f5127829f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000028b RCX: 00007f5126a8d60a RDX: 0000000020000100 RSI: 0000000020000140 RDI: 00007f5127829fe0 RBP: 00007f512782a020 R08: 00007f512782a020 R09: 0000000001000408 R10: 0000000001000408 R11: 0000000000000202 R12: 0000000020000100 R13: 0000000020000140 R14: 00007f5127829fe0 R15: 0000000020000940 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_btree_open+0xf04/0xf20 fs/hfs/btree.c:41 Code: 7f 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 66 0a 7f ff e9 86 fa ff ff e8 fc 6d 29 ff <0f> 0b e8 f5 6d 29 ff 0f 0b e8 ee 6d 29 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90012937798 EFLAGS: 00010293 RAX: ffffffff826267c4 RBX: ffff888027930000 RCX: ffff8880222dba80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff82625a23 R09: ffffed1004f2601c R10: ffffed1004f2601c R11: 1ffff11004f2601b R12: ffff8880281fe000 R13: ffff88802b58e008 R14: ffff88802b58e000 R15: dffffc0000000000 FS: 00007f512782a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8b06825000 CR3: 000000002f018000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400