loop5: 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: 28742 Comm: syz-executor.5 Not tainted 6.3.0-rc3-syzkaller-00021-ga1effab7a3a3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:hfs_btree_open+0xf09/0xf20 fs/hfs/btree.c:41 Code: 7f ff e9 7e fa ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9b fa ff ff 4c 89 f7 e8 e1 cf 7f ff e9 8e fa ff ff e8 c7 1d 2a ff <0f> 0b e8 c0 1d 2a ff 0f 0b e8 b9 1d 2a ff 0f 0b 0f 1f 80 00 00 00 RSP: 0018:ffffc9000bfb7798 EFLAGS: 00010287 RAX: ffffffff82604f59 RBX: ffff88803100c740 RCX: 0000000000040000 RDX: ffffc9000cade000 RSI: 00000000000020a9 RDI: 00000000000020aa RBP: 0000000000000000 R08: ffffffff826041b7 R09: ffffed1006201904 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888040812000 R13: ffff888040916008 R14: ffff888040916000 R15: dffffc0000000000 FS: 00007f75676a4700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbb71f821b8 CR3: 000000002ae18000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfs_mdb_get+0x1446/0x21b0 fs/hfs/mdb.c:199 hfs_fill_super+0x107d/0x1790 fs/hfs/super.c:406 mount_bdev+0x271/0x3a0 fs/super.c:1380 legacy_get_tree+0xef/0x190 fs/fs_context.c:610 vfs_get_tree+0x8c/0x270 fs/super.c:1510 do_new_mount+0x28f/0xae0 fs/namespace.c:3042 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f756688d62a 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:00007f75676a3f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000270 RCX: 00007f756688d62a RDX: 00000000200000c0 RSI: 0000000020000140 RDI: 00007f75676a3fe0 RBP: 00007f75676a4020 R08: 00007f75676a4020 R09: 000000000000840a R10: 000000000000840a R11: 0000000000000202 R12: 00000000200000c0 R13: 0000000020000140 R14: 00007f75676a3fe0 R15: 0000000020000180 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfs_btree_open+0xf09/0xf20 fs/hfs/btree.c:41 Code: 7f ff e9 7e fa ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9b fa ff ff 4c 89 f7 e8 e1 cf 7f ff e9 8e fa ff ff e8 c7 1d 2a ff <0f> 0b e8 c0 1d 2a ff 0f 0b e8 b9 1d 2a ff 0f 0b 0f 1f 80 00 00 00 RSP: 0018:ffffc9000bfb7798 EFLAGS: 00010287 RAX: ffffffff82604f59 RBX: ffff88803100c740 RCX: 0000000000040000 RDX: ffffc9000cade000 RSI: 00000000000020a9 RDI: 00000000000020aa RBP: 0000000000000000 R08: ffffffff826041b7 R09: ffffed1006201904 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888040812000 R13: ffff888040916008 R14: ffff888040916000 R15: dffffc0000000000 FS: 00007f75676a4700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4da4315889 CR3: 000000002ae18000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400