syzbot


kernel BUG in ocfs2_write_block

Status: upstream: reported C repro on 2024/11/29 21:33
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+0ca3bc36acd2a4f2c89e@syzkaller.appspotmail.com
First crash: 229d, last: 15d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/11/30 upstream (ToT) 2ba9f676d0a2 C [report] kernel BUG in ocfs2_write_block
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in ocfs2_write_block origin:upstream -1 C error 3 167d 261d 0/3 upstream: reported C repro on 2024/10/28 08:07
upstream kernel BUG in ocfs2_write_block ocfs2 -1 C inconclusive 20 5d03h 300d 0/29 upstream: reported C repro on 2024/09/19 00:02
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/07/01 04:02 11m retest repro linux-5.15.y report log
2025/07/01 04:02 13m retest repro linux-5.15.y report log
2025/05/21 04:49 14m retest repro linux-5.15.y report log
2025/04/06 21:31 13m retest repro linux-5.15.y report log
2025/03/12 03:21 13m retest repro linux-5.15.y report log
2024/12/15 10:58 15m retest repro linux-5.15.y report log

Sample crash report:
loop0: detected capacity change from 0 to 32768
ocfs2: Slot 0 on device (7,0) was already allocated to this node!
------------[ cut here ]------------
kernel BUG at fs/ocfs2/buffer_head_io.c:45!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4022 Comm: syz-executor542 Not tainted 5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_write_block+0x5cc/0x6ec fs/ocfs2/buffer_head_io.c:45
lr : ocfs2_write_block+0x5cc/0x6ec fs/ocfs2/buffer_head_io.c:45
sp : ffff80001f516ba0
x29: ffff80001f516c40 x28: 1fffe0001bcea6b1 x27: dfff800000000000
x26: ffff80001f516bc0 x25: ffff700003ea2d78 x24: ffff80001415d310
x23: 0000000000000002 x22: 0000000000000000 x21: ffff0000d496c000
x20: ffff0000de753570 x19: ffff0000de7a32f0 x18: 0000000000000002
x17: 0000000000000000 x16: ffff8000111a97c4 x15: 00000000ffffffff
x14: 0000000000ff0100 x13: 1ffff0000282c06b x12: 0000000000ff0100
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff800009c1ccc0
x8 : ffff0000c1779b40 x7 : ffff800009cd51c8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000082d4d5c
x2 : ffff0000de7a32f0 x1 : 0000000000000000 x0 : 0000000000000002
Call trace:
 ocfs2_write_block+0x5cc/0x6ec fs/ocfs2/buffer_head_io.c:45
 ocfs2_update_disk_slot+0x3d4/0x5a8 fs/ocfs2/slot_map.c:197
 ocfs2_find_slot+0x40c/0x950 fs/ocfs2/slot_map.c:482
 ocfs2_mount_volume+0x168/0x1174 fs/ocfs2/super.c:1809
 ocfs2_fill_super+0x238c/0x4074 fs/ocfs2/super.c:1083
 mount_bdev+0x264/0x358 fs/super.c:1400
 ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1187
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1530
 do_new_mount+0x228/0x810 fs/namespace.c:3010
 path_mount+0x5b4/0x1000 fs/namespace.c:3340
 do_mount fs/namespace.c:3353 [inline]
 __do_sys_mount fs/namespace.c:3561 [inline]
 __se_sys_mount fs/namespace.c:3538 [inline]
 __arm64_sys_mount+0x514/0x5e4 fs/namespace.c:3538
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: b4000957 97a16f5a 17fffebd 97a16f58 (d4210000) 
---[ end trace 76dbbb4618f7edb4 ]---

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/16 04:37 linux-5.15.y 1c700860e8bc 5f4b362d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
2024/11/29 21:59 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
2024/11/29 21:46 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
2025/02/17 03:54 linux-5.15.y c16c81c81336 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ocfs2_write_block
2025/06/16 04:21 linux-5.15.y 1c700860e8bc 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
2025/02/26 03:13 linux-5.15.y c16c81c81336 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
2024/11/29 21:32 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in ocfs2_write_block
* Struck through repros no longer work on HEAD.