syzbot


kernel BUG in ocfs2_reserve_suballoc_bits

Status: upstream: reported on 2025/03/17 12:34
Reported-by: syzbot+0bd0b59b490fa19f4998@syzkaller.appspotmail.com
First crash: 32d, last: 32d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_reserve_suballoc_bits ocfs2 C 335 23d 167d 0/28 upstream: reported C repro on 2024/11/01 20:51

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/suballoc.c:800!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 5784 Comm: syz.5.311 Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_reserve_suballoc_bits+0x391c/0x4428 fs/ocfs2/suballoc.c:800
lr : ocfs2_reserve_suballoc_bits+0x391c/0x4428 fs/ocfs2/suballoc.c:800
sp : ffff800021956200
x29: ffff8000219566e0 x28: ffff0000f4fe4fb8 x27: ffff800021956620
x26: ffff0000fa3e1e00 x25: 0000000000000001 x24: 000000000000ffff
x23: dfff800000000000 x22: ffff70000432ac70 x21: 0000000000000000
x20: 00000000ffffffff x19: ffff800021956380 x18: ffff800021956360
x17: ffff800018c58000 x16: ffff8000122dd0e4 x15: 0000000000000002
x14: 1ffff00002b600b2 x13: dfff800000000000 x12: 0000000000080000
x11: 000000000007ffff x10: ffff80002650b000 x9 : ffff800009fea2c0
x8 : 0000000000080000 x7 : ffff800009f6f410 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000123fb894
x2 : 0000000000000000 x1 : 00000000ffffffff x0 : 0000000000000000
Call trace:
 ocfs2_reserve_suballoc_bits+0x391c/0x4428 fs/ocfs2/suballoc.c:800
 ocfs2_reserve_cluster_bitmap_bits+0xcc/0x1e0 fs/ocfs2/suballoc.c:1128
 ocfs2_local_alloc_reserve_for_window fs/ocfs2/localalloc.c:1112 [inline]
 ocfs2_local_alloc_slide_window fs/ocfs2/localalloc.c:1248 [inline]
 ocfs2_reserve_local_alloc_bits+0x758/0x2610 fs/ocfs2/localalloc.c:668
 ocfs2_reserve_clusters_with_limit+0x194/0xabc fs/ocfs2/suballoc.c:1162
 ocfs2_reserve_clusters fs/ocfs2/suballoc.c:1223 [inline]
 ocfs2_lock_allocators+0x294/0x584 fs/ocfs2/suballoc.c:2669
 ocfs2_write_begin_nolock+0x22fc/0x3f6c fs/ocfs2/aops.c:1740
 ocfs2_write_begin+0x1ac/0x38c fs/ocfs2/aops.c:1904
 generic_perform_write+0x278/0x55c mm/filemap.c:3845
 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3973
 ocfs2_file_write_iter+0x156c/0x1f48 fs/ocfs2/file.c:2469
 call_write_iter include/linux/fs.h:2265 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x91c fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: aa1803e0 97a6365b 17fff8c3 97942a50 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/17 12:34 linux-6.1.y 344a09659766 948c34e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ocfs2_reserve_suballoc_bits
* Struck through repros no longer work on HEAD.