syzbot


kernel BUG in hfs_btree_open (2)

Status: upstream: reported on 2025/02/24 07:31
Reported-by: syzbot+c477e4e8d821b324a209@syzkaller.appspotmail.com
First crash: 103d, last: 18d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in hfs_btree_open 2 208d 215d 0/3 auto-obsoleted due to no activity on 2025/02/19 11:13
linux-5.15 kernel BUG in hfs_btree_open (2) 1 613d 613d 0/3 auto-obsoleted due to no activity on 2024/01/11 08:28
upstream kernel BUG in hfs_btree_open hfs 20 781d 922d 0/28 auto-obsoleted due to no activity on 2023/08/17 04:22
linux-5.15 kernel BUG in hfs_btree_open (3) 1 399d 399d 0/3 auto-obsoleted due to no activity on 2024/08/12 21:24
upstream kernel BUG in hfs_btree_open (2) hfs 94 613d 635d 0/28 auto-obsoleted due to no activity on 2023/12/12 22:31
linux-5.15 kernel BUG in hfs_btree_open 1 729d 729d 0/3 auto-obsoleted due to no activity on 2023/09/17 17:47
linux-5.15 kernel BUG in hfs_btree_open (4) 1 243d 243d 0/3 auto-obsoleted due to no activity on 2025/01/15 22:49

Sample crash report:
loop0: 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: 15785 Comm: syz.0.2602 Not tainted 6.1.139-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:hfs_btree_open+0x10a7/0x10b0 fs/hfs/btree.c:41
Code: ff df e9 36 f9 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 55 f9 ff ff 4c 89 f7 e8 83 ca 89 ff e9 48 f9 ff ff e8 b9 56 38 ff <0f> 0b e8 b2 56 38 ff 0f 0b 55 41 57 41 56 41 54 53 48 89 fb 49 bc
RSP: 0018:ffffc90003f27850 EFLAGS: 00010283
RAX: ffffffff82488057 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc900052b1000 RSI: 0000000000002bfa RDI: 0000000000002bfb
RBP: ffff888054ecc700 R08: dffffc0000000000 R09: ffffed100a9d98fc
R10: ffffed100a9d98fc R11: 1ffff1100a9d98fb R12: ffff888024608000
R13: 0000000000000003 R14: ffff888056a6a000 R15: ffff888056a6a008
FS:  00007f59229ff6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2525d8dd30 CR3: 00000000661e2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hfs_mdb_get+0x12db/0x2010 fs/hfs/mdb.c:199
 hfs_fill_super+0xe0b/0x1410 fs/hfs/super.c:406
 mount_bdev+0x287/0x3c0 fs/super.c:1443
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x24a/0xa40 fs/namespace.c:3058
 do_mount fs/namespace.c:3401 [inline]
 __do_sys_mount fs/namespace.c:3609 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3586
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5922b9010a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f59229fee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f59229feef0 RCX: 00007f5922b9010a
RDX: 00002000000001c0 RSI: 0000200000000180 RDI: 00007f59229feeb0
RBP: 00002000000001c0 R08: 00007f59229feef0 R09: 00000000030000c8
R10: 00000000030000c8 R11: 0000000000000246 R12: 0000200000000180
R13: 00007f59229feeb0 R14: 00000000000002c6 R15: 0000200000000100
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfs_btree_open+0x10a7/0x10b0 fs/hfs/btree.c:41
Code: ff df e9 36 f9 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 55 f9 ff ff 4c 89 f7 e8 83 ca 89 ff e9 48 f9 ff ff e8 b9 56 38 ff <0f> 0b e8 b2 56 38 ff 0f 0b 55 41 57 41 56 41 54 53 48 89 fb 49 bc
RSP: 0018:ffffc90003f27850 EFLAGS: 00010283
RAX: ffffffff82488057 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc900052b1000 RSI: 0000000000002bfa RDI: 0000000000002bfb
RBP: ffff888054ecc700 R08: dffffc0000000000 R09: ffffed100a9d98fc
R10: ffffed100a9d98fc R11: 1ffff1100a9d98fb R12: ffff888024608000
R13: 0000000000000003 R14: ffff888056a6a000 R15: ffff888056a6a008
FS:  00007f59229ff6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000006000 CR3: 00000000661e2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/20 18:07 linux-6.1.y 325285d9fc86 b47f9e02 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in hfs_btree_open
2025/02/24 07:30 linux-6.1.y 3a8358583626 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in hfs_btree_open
* Struck through repros no longer work on HEAD.