syzbot


kernel BUG in hfs_btree_open

Status: upstream: reported on 2022/11/28 10:21
Reported-by: syzbot+e5896dff7bbe057e5fff@syzkaller.appspotmail.com
First crash: 69d, last: 1d06h

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/hfs/btree.c:41!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5624 Comm: syz-executor.2 Not tainted 6.2.0-rc6-syzkaller-00050-g9f266ccaa2f5 #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: 7e 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 06 f7 7e ff e9 86 fa ff ff e8 cc 3c 29 ff <0f> 0b e8 c5 3c 29 ff 0f 0b e8 be 3c 29 ff 0f 0b 66 2e 0f 1f 84 00
RSP: 0018:ffffc9000592f798 EFLAGS: 00010293
RAX: ffffffff82618fa4 RBX: ffff8880317dd070 RCX: ffff8880304e57c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff82618203 R09: ffffed10062fba2a
R10: ffffed10062fba2a R11: 1ffff110062fba29 R12: ffff88802cc10000
R13: ffff888078e62008 R14: ffff888078e62000 R15: dffffc0000000000
FS:  00007f1e0703d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f51c650e263 CR3: 000000002b56e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 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:0x7f1e0628d5fa
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:00007f1e0703cf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000245 RCX: 00007f1e0628d5fa
RDX: 0000000020000000 RSI: 00000000200001c0 RDI: 00007f1e0703cfe0
RBP: 00007f1e0703d020 R08: 00007f1e0703d020 R09: 0000000000000003
R10: 0000000000000003 R11: 0000000000000202 R12: 0000000020000000
R13: 00000000200001c0 R14: 00007f1e0703cfe0 R15: 0000000020000240
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfs_btree_open+0xf04/0xf20 fs/hfs/btree.c:41
Code: 7e 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 06 f7 7e ff e9 86 fa ff ff e8 cc 3c 29 ff <0f> 0b e8 c5 3c 29 ff 0f 0b e8 be 3c 29 ff 0f 0b 66 2e 0f 1f 84 00
RSP: 0018:ffffc9000592f798 EFLAGS: 00010293
RAX: ffffffff82618fa4 RBX: ffff8880317dd070 RCX: ffff8880304e57c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff82618203 R09: ffffed10062fba2a
R10: ffffed10062fba2a R11: 1ffff110062fba29 R12: ffff88802cc10000
R13: ffff888078e62008 R14: ffff888078e62000 R15: dffffc0000000000
FS:  00007f1e0703d700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0daffad988 CR3: 000000002b56e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2023/02/02 17:59 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-kasan-gce-smack-root 2023/01/27 09:18 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/12/19 06:22 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/12/14 13:27 upstream e2ca6ba6ba01 f6511626 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/12/12 05:42 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/12/04 15:37 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/12/04 09:57 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-kasan-gce-root 2022/12/03 18:49 upstream bdaa78c6aa86 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci2-upstream-fs 2022/11/30 18:02 upstream 01f856ae6d0c 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-kasan-gce-smack-root 2022/11/27 17:27 upstream faf68e3523c2 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-gce-arm64 2023/02/04 04:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-gce-arm64 2023/02/03 15:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-gce-arm64 2022/12/13 06:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-gce-arm64 2022/12/06 15:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
ci-upstream-gce-arm64 2022/12/05 01:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e3cb714fb489 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in hfs_btree_open
* Struck through repros no longer work on HEAD.