syzbot


kernel BUG in ocfs2_reserve_suballoc_bits (2)

Status: upstream: reported on 2025/09/08 12:17
Reported-by: syzbot+487e39304129321dd253@syzkaller.appspotmail.com
First crash: 112d, last: 13d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in ocfs2_reserve_suballoc_bits -1 1 287d 287d 0/3 auto-obsoleted due to no activity on 2025/06/25 12:34
linux-5.15 kernel BUG in ocfs2_reserve_suballoc_bits -1 1 105d 105d 0/3 auto-obsoleted due to no activity on 2025/12/24 10:29
linux-5.15 kernel BUG in ocfs2_reserve_suballoc_bits (2) -1 1 13h01m 13h01m 0/3 upstream: reported on 2025/12/29 06:32
upstream kernel BUG in ocfs2_reserve_suballoc_bits ocfs2 -1 C 386 2d10h 422d 0/29 upstream: reported C repro on 2024/11/01 20:51

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/suballoc.c:800!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4413 Comm: syz.1.6 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:ocfs2_reserve_suballoc_bits+0x3dae/0x4630 fs/ocfs2/suballoc.c:800
Code: 54 24 70 e9 70 f2 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 79 de ff ff 48 89 df e8 2c f1 8a fe e9 6c de ff ff e8 c2 c1 3a fe <0f> 0b 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 1c e0 ff ff 4c 89 ff
RSP: 0018:ffffc90004b3e360 EFLAGS: 00010283
RAX: ffffffff8346149e RBX: ffff888070af6e00 RCX: 0000000000080000
RDX: ffffc90010c49000 RSI: 000000000002403f RDI: 0000000000024040
RBP: ffffc90004b3e830 R08: dffffc0000000000 R09: fffffbfff1c3ed56
R10: fffffbfff1c3ed56 R11: 1ffffffff1c3ed55 R12: ffff8880551a4fb8
R13: dffffc0000000000 R14: 0000000000000000 R15: 00000000ffffffff
FS:  00007fdb952a16c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5e6f506b08 CR3: 0000000027eae000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_reserve_cluster_bitmap_bits fs/ocfs2/suballoc.c:1128 [inline]
 ocfs2_reserve_clusters_with_limit+0x2f8/0xba0 fs/ocfs2/suballoc.c:1173
 ocfs2_block_group_alloc fs/ocfs2/suballoc.c:670 [inline]
 ocfs2_reserve_suballoc_bits+0x74c/0x4630 fs/ocfs2/suballoc.c:828
 ocfs2_reserve_new_metadata_blocks+0x400/0x940 fs/ocfs2/suballoc.c:978
 ocfs2_reserve_new_metadata fs/ocfs2/suballoc.c:1021 [inline]
 ocfs2_lock_allocators+0x29b/0x5b0 fs/ocfs2/suballoc.c:2658
 ocfs2_write_begin_nolock+0x2286/0x4270 fs/ocfs2/aops.c:1740
 __ocfs2_page_mkwrite fs/ocfs2/mmap.c:93 [inline]
 ocfs2_page_mkwrite+0x606/0xcc0 fs/ocfs2/mmap.c:144
 do_page_mkwrite+0x16b/0x5c0 mm/memory.c:3011
 wp_page_shared+0x167/0x370 mm/memory.c:3360
 handle_pte_fault mm/memory.c:5049 [inline]
 __handle_mm_fault mm/memory.c:5173 [inline]
 handle_mm_fault+0x1ca6/0x3e60 mm/memory.c:5294
 do_user_addr_fault+0x51f/0xb10 arch/x86/mm/fault.c:1340
 handle_page_fault arch/x86/mm/fault.c:1431 [inline]
 exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1487
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0010:__put_user_nocheck_4+0x3/0x11
Code: 00 00 48 39 d9 73 54 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 90 90 90 90 90 48 bb fd ef ff ff ff 7f 00 00 48 39 d9 73 34 0f 01 cb <89> 01 31 c9 0f 01 ca c3 90 90 90 90 90 90 48 bb f9 ef ff ff ff 7f
RSP: 0018:ffffc90004b3fcb8 EFLAGS: 00050293
RAX: 0000000000000000 RBX: 00007fffffffeffd RCX: 0000200000001038
RDX: 0000000000000000 RSI: ffffffff8a8c1700 RDI: ffffffff8adef760
RBP: ffffc90004b3fee0 R08: dffffc0000000000 R09: fffffbfff1c3ed56
R10: fffffbfff1c3ed56 R11: 1ffffffff1c3ed55 R12: 1ffff92000967fa0
R13: 0000000000000016 R14: 0000200000001000 R15: 0000000000040000
 __sys_sendmmsg+0x2a9/0x490 net/socket.c:2664
 __do_sys_sendmmsg net/socket.c:2688 [inline]
 __se_sys_sendmmsg net/socket.c:2685 [inline]
 __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2685
 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:0x7fdb9438f749
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:00007fdb952a1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fdb945e6180 RCX: 00007fdb9438f749
RDX: 17fd147c801ae9ab RSI: 0000200000000ac0 RDI: 0000000000000003
RBP: 00007fdb94413f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdb945e6218 R14: 00007fdb945e6180 R15: 00007fff12fcef58
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_reserve_suballoc_bits+0x3dae/0x4630 fs/ocfs2/suballoc.c:800
Code: 54 24 70 e9 70 f2 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 79 de ff ff 48 89 df e8 2c f1 8a fe e9 6c de ff ff e8 c2 c1 3a fe <0f> 0b 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 1c e0 ff ff 4c 89 ff
RSP: 0018:ffffc90004b3e360 EFLAGS: 00010283
RAX: ffffffff8346149e RBX: ffff888070af6e00 RCX: 0000000000080000
RDX: ffffc90010c49000 RSI: 000000000002403f RDI: 0000000000024040
RBP: ffffc90004b3e830 R08: dffffc0000000000 R09: fffffbfff1c3ed56
R10: fffffbfff1c3ed56 R11: 1ffffffff1c3ed55 R12: ffff8880551a4fb8
R13: dffffc0000000000 R14: 0000000000000000 R15: 00000000ffffffff
FS:  00007fdb952a16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9577a3d000 CR3: 0000000027eae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	48 39 d9             	cmp    %rbx,%rcx
   5:	73 54                	jae    0x5b
   7:	0f 01 cb             	stac
   a:	66 89 01             	mov    %ax,(%rcx)
   d:	31 c9                	xor    %ecx,%ecx
   f:	0f 01 ca             	clac
  12:	c3                   	ret
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
  16:	90                   	nop
  17:	90                   	nop
  18:	48 bb fd ef ff ff ff 	movabs $0x7fffffffeffd,%rbx
  1f:	7f 00 00
  22:	48 39 d9             	cmp    %rbx,%rcx
  25:	73 34                	jae    0x5b
  27:	0f 01 cb             	stac
* 2a:	89 01                	mov    %eax,(%rcx) <-- trapping instruction
  2c:	31 c9                	xor    %ecx,%ecx
  2e:	0f 01 ca             	clac
  31:	c3                   	ret
  32:	90                   	nop
  33:	90                   	nop
  34:	90                   	nop
  35:	90                   	nop
  36:	90                   	nop
  37:	90                   	nop
  38:	48                   	rex.W
  39:	bb f9 ef ff ff       	mov    $0xffffeff9,%ebx
  3e:	ff                   	(bad)
  3f:	7f                   	.byte 0x7f

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/26 10:35 linux-6.1.y f6e38ae624cf 64219f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ocfs2_reserve_suballoc_bits
2025/12/16 06:38 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ocfs2_reserve_suballoc_bits
2025/11/10 16:25 linux-6.1.y f6e38ae624cf 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ocfs2_reserve_suballoc_bits
2025/09/08 12:16 linux-6.1.y 28c695c365e1 d291dd2d .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.