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: 605d, last: 7d12h
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 syz, C error 17 6d02h 638d 0/3 upstream: reported C repro on 2024/10/28 08:07
upstream kernel BUG in ocfs2_write_block ocfs2 -1 syz, C inconclusive 29 203d 677d 29/29 fixed on 2026/05/06 16:40
Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/07/07 17:04 19m retest repro linux-5.15.y report log
2026/07/07 17:04 18m retest repro linux-5.15.y report log
2026/05/20 10:40 1h40m retest repro linux-5.15.y report log
2026/04/11 03:16 15m retest repro linux-5.15.y report log
2026/04/11 03:16 16m retest repro linux-5.15.y report log
2026/02/28 10:15 19m retest repro linux-5.15.y report log
2026/01/30 09:55 11m retest repro linux-5.15.y report log
2026/01/30 09:55 32m retest repro linux-5.15.y report log
2025/12/20 08:27 11m retest repro linux-5.15.y report log
2025/11/21 09:26 10m retest repro linux-5.15.y report log

Sample crash report:
loop0: detected capacity change from 0 to 32768
------------[ cut here ]------------
kernel BUG at fs/ocfs2/buffer_head_io.c:45!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4335 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026
RIP: 0010:ocfs2_write_block+0x5be/0x620 fs/ocfs2/buffer_head_io.c:45
Code: 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 c9 9e 9e fe 48 8b 3b 4c 89 ee 48 8b 54 24 08 e8 b9 36 0f 00 eb 1d e8 32 80 59 fe <0f> 0b e8 2b 80 59 fe 0f 0b e8 24 80 59 fe e9 52 fb ff ff e8 1a 80
RSP: 0018:ffffc90002f2ee80 EFLAGS: 00010293
RAX: ffffffff831f726e RBX: ffff88806849a3b8 RCX: ffff88807bd75940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90002f2ef50 R08: ffffffff8d8aeaef R09: 1ffffffff1b15d5d
R10: dffffc0000000000 R11: fffffbfff1b15d5e R12: 0000000000000000
R13: 0000000000000000 R14: ffff88806849a3a0 R15: ffff88807a910000
FS:  000055557a2fc500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f103b39d000 CR3: 0000000073052000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_update_disk_slot+0x535/0x750 fs/ocfs2/slot_map.c:197
 ocfs2_find_slot+0x4b1/0xa10 fs/ocfs2/slot_map.c:482
 ocfs2_mount_volume+0x19c/0x15a0 fs/ocfs2/super.c:1809
 ocfs2_fill_super+0x2eae/0x50c0 fs/ocfs2/super.c:1083
 mount_bdev+0x28a/0x3c0 fs/super.c:1400
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x247/0xa40 fs/namespace.c:3034
 do_mount fs/namespace.c:3377 [inline]
 __do_sys_mount fs/namespace.c:3585 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd4341af10a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe816dfd88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe816dfe10 RCX: 00007fd4341af10a
RDX: 0000200000004440 RSI: 0000200000000040 RDI: 00007ffe816dfdd0
RBP: 0000200000004440 R08: 00007ffe816dfe10 R09: 0000000000000004
R10: 0000000000000004 R11: 0000000000000246 R12: 0000200000000040
R13: 00007ffe816dfdd0 R14: 000000000000445c R15: 0000200000000080
 </TASK>
Modules linked in:
---[ end trace fdf6b1d55b36b991 ]---
RIP: 0010:ocfs2_write_block+0x5be/0x620 fs/ocfs2/buffer_head_io.c:45
Code: 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 c9 9e 9e fe 48 8b 3b 4c 89 ee 48 8b 54 24 08 e8 b9 36 0f 00 eb 1d e8 32 80 59 fe <0f> 0b e8 2b 80 59 fe 0f 0b e8 24 80 59 fe e9 52 fb ff ff e8 1a 80
RSP: 0018:ffffc90002f2ee80 EFLAGS: 00010293
RAX: ffffffff831f726e RBX: ffff88806849a3b8 RCX: ffff88807bd75940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90002f2ef50 R08: ffffffff8d8aeaef R09: 1ffffffff1b15d5d
R10: dffffc0000000000 R11: fffffbfff1b15d5e R12: 0000000000000000
R13: 0000000000000000 R14: ffff88806849a3a0 R15: ffff88807a910000
FS:  000055557a2fc500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f103b39f000 CR3: 0000000073052000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/21 08:06 linux-5.15.y c86c4726e7f0 de6a700d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in ocfs2_write_block
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
2026/07/21 07:50 linux-5.15.y c86c4726e7f0 de6a700d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan 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.