syzbot


kernel BUG in ocfs2_search_chain

Status: upstream: reported C repro on 2025/09/08 23:36
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4bf1a50375cfc097f79d@syzkaller.appspotmail.com
First crash: 46d, last: 1d17h
Bug presence (2)
Date Name Commit Repro Result
2025/09/16 linux-6.6.y (ToT) 60a9e718726f C [report] kernel BUG in ocfs2_search_chain
2025/09/16 upstream (ToT) 46a51f4f5eda C Didn't crash
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ocfs2_search_chain -1 1 63d 63d 0/3 upstream: reported on 2025/08/23 08:18
linux-6.1 kernel BUG in ocfs2_search_chain origin:lts-only -1 C inconclusive 5 324d 330d 0/3 upstream: reported C repro on 2024/11/29 11:58
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/10/23 18:40 1h39m bisect fix linux-6.6.y OK (0) job log log

Sample crash report:
=======================================================
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
------------[ cut here ]------------
kernel BUG at fs/ocfs2/suballoc.c:1349!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5943 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ocfs2_block_group_set_bits+0x53e/0x670 fs/ocfs2/suballoc.c:1349
Code: ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 8e fd ff ff 4c 89 ff e8 63 27 83 fe e9 81 fd ff ff e8 49 e1 2b fe 0f 0b e8 42 e1 2b fe <0f> 0b f3 0f 1e fa 65 44 8b 3d a0 0b aa 7c bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc90002e46840 EFLAGS: 00010293
RAX: ffffffff8359ae5e RBX: 0000000000000040 RCX: ffff888026d65a00
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000040
RBP: ffffc90002e46930 R08: 0000000000000255 R09: 0000000000000040
R10: 00000000fffffffc R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000255 R14: ffff8880724ac000 R15: 0000000000000003
FS:  0000555555c79500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d463fff CR3: 000000007353b000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ocfs2_search_chain+0x1986/0x22c0 fs/ocfs2/suballoc.c:1847
 ocfs2_claim_suballoc_bits+0xfdf/0x2230 fs/ocfs2/suballoc.c:1930
 __ocfs2_claim_clusters+0x302/0x900 fs/ocfs2/suballoc.c:2338
 ocfs2_claim_clusters fs/ocfs2/suballoc.c:2375 [inline]
 ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:428 [inline]
 ocfs2_block_group_alloc fs/ocfs2/suballoc.c:695 [inline]
 ocfs2_reserve_suballoc_bits+0xe7e/0x4360 fs/ocfs2/suballoc.c:828
 ocfs2_reserve_new_metadata_blocks+0x404/0x940 fs/ocfs2/suballoc.c:978
 ocfs2_reserve_new_metadata fs/ocfs2/suballoc.c:1021 [inline]
 ocfs2_lock_allocators+0x29f/0x5b0 fs/ocfs2/suballoc.c:2658
 ocfs2_extend_allocation+0x39b/0x1760 fs/ocfs2/file.c:589
 ocfs2_allocate_unwritten_extents+0x2ea/0x7b0 fs/ocfs2/file.c:1495
 __ocfs2_change_file_space+0x8d6/0xe40 fs/ocfs2/file.c:2022
 ocfs2_fallocate+0x1f5/0x240 fs/ocfs2/file.c:2137
 vfs_fallocate+0x58e/0x700 fs/open.c:324
 ksys_fallocate fs/open.c:347 [inline]
 __do_sys_fallocate fs/open.c:355 [inline]
 __se_sys_fallocate fs/open.c:353 [inline]
 __x64_sys_fallocate+0xc1/0x110 fs/open.c:353
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f370498ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fffc9048aa8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f3704bc5fa0 RCX: 00007f370498ebe9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f3704a11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c62 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3704bc5fa0 R14: 00007f3704bc5fa0 R15: 0000000000000004
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_block_group_set_bits+0x53e/0x670 fs/ocfs2/suballoc.c:1349
Code: ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 8e fd ff ff 4c 89 ff e8 63 27 83 fe e9 81 fd ff ff e8 49 e1 2b fe 0f 0b e8 42 e1 2b fe <0f> 0b f3 0f 1e fa 65 44 8b 3d a0 0b aa 7c bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc90002e46840 EFLAGS: 00010293
RAX: ffffffff8359ae5e RBX: 0000000000000040 RCX: ffff888026d65a00
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000040
RBP: ffffc90002e46930 R08: 0000000000000255 R09: 0000000000000040
R10: 00000000fffffffc R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000255 R14: ffff8880724ac000 R15: 0000000000000003
FS:  0000555555c79500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d463fff CR3: 000000007353b000 CR4: 00000000003506e0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/09 00:36 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan kernel BUG in ocfs2_search_chain
2025/09/09 00:06 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan kernel BUG in ocfs2_search_chain
2025/09/08 23:36 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_search_chain
2025/09/08 23:36 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_search_chain
* Struck through repros no longer work on HEAD.