syzbot


kernel BUG in ocfs2_write_begin_nolock (2)

Status: upstream: reported on 2025/06/05 05:16
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+f34f8bb121f222fb1f38@syzkaller.appspotmail.com
First crash: 152d, last: 15d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_write_begin_nolock (2) 1 (2) 2025/06/05 13:58
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_write_begin_nolock ocfs2 -1 4 327d 349d 0/29 auto-obsoleted due to no activity on 2025/03/18 16:58

Sample crash report:
loop7: detected capacity change from 0 to 32768
ocfs2: Mounting device (7,7) on (node local, slot 0) with writeback data mode.
------------[ cut here ]------------
kernel BUG at fs/ocfs2/aops.c:1159!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 23264 Comm: syz.7.4481 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1159 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc fs/ocfs2/aops.c:1219 [inline]
RIP: 0010:ocfs2_write_begin_nolock+0x6196/0x6c10 fs/ocfs2/aops.c:1796
Code: ff e8 de 49 78 fe e9 93 e1 ff ff e8 a4 49 78 fe e9 c1 e1 ff ff 48 8b 7c 24 18 e8 c5 49 78 fe e9 1e e1 ff ff e8 0b b5 10 fe 90 <0f> 0b e8 23 49 78 fe e9 3b e1 ff ff e8 49 49 78 fe e9 53 c8 ff ff
RSP: 0018:ffffc90004546e50 EFLAGS: 00010287
RAX: 0000000000007c33 RBX: 0000000000000000 RCX: ffffc900162e2000
RDX: 0000000000080000 RSI: ffffffff83ac7355 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888028dbc000
R13: ffff88807b404fb8 R14: 0000000000000000 R15: 0000000000000004
FS:  00007f00f8c7a6c0(0000) GS:ffff8881249dc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcfa1c2e000 CR3: 00000000653d3000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ocfs2_dio_wr_get_block+0x8d1/0x1800 fs/ocfs2/aops.c:2214
 get_more_blocks fs/direct-io.c:648 [inline]
 do_direct_IO fs/direct-io.c:936 [inline]
 __blockdev_direct_IO+0x2378/0x3c40 fs/direct-io.c:1243
 ocfs2_direct_IO+0x263/0x360 fs/ocfs2/aops.c:2441
 generic_file_direct_write+0x19a/0x410 mm/filemap.c:4176
 __generic_file_write_iter+0x11b/0x240 mm/filemap.c:4345
 ocfs2_file_write_iter+0xbc4/0x21b0 fs/ocfs2/file.c:2469
 iter_file_splice_write+0xa24/0x12e0 fs/splice.c:738
 do_splice_from fs/splice.c:938 [inline]
 direct_splice_actor+0x192/0x6c0 fs/splice.c:1161
 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1105
 do_splice_direct_actor fs/splice.c:1204 [inline]
 do_splice_direct+0x174/0x240 fs/splice.c:1230
 do_sendfile+0xb06/0xe50 fs/read_write.c:1370
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64 fs/read_write.c:1417 [inline]
 __x64_sys_sendfile64+0x1d8/0x220 fs/read_write.c:1417
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f00f7d8eec9
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:00007f00f8c7a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f00f7fe5fa0 RCX: 00007f00f7d8eec9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f00f7e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f00f7fe6038 R14: 00007f00f7fe5fa0 R15: 00007ffeeb3004d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1159 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc fs/ocfs2/aops.c:1219 [inline]
RIP: 0010:ocfs2_write_begin_nolock+0x6196/0x6c10 fs/ocfs2/aops.c:1796
Code: ff e8 de 49 78 fe e9 93 e1 ff ff e8 a4 49 78 fe e9 c1 e1 ff ff 48 8b 7c 24 18 e8 c5 49 78 fe e9 1e e1 ff ff e8 0b b5 10 fe 90 <0f> 0b e8 23 49 78 fe e9 3b e1 ff ff e8 49 49 78 fe e9 53 c8 ff ff
RSP: 0018:ffffc90004546e50 EFLAGS: 00010287
RAX: 0000000000007c33 RBX: 0000000000000000 RCX: ffffc900162e2000
RDX: 0000000000080000 RSI: ffffffff83ac7355 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888028dbc000
R13: ffff88807b404fb8 R14: 0000000000000000 R15: 0000000000000004
FS:  00007f00f8c7a6c0(0000) GS:ffff888124adc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5a2ebb3ad8 CR3: 00000000653d3000 CR4: 0000000000350ef0

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/17 00:46 upstream 634ec1fc7982 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ocfs2_write_begin_nolock
2025/10/17 00:44 upstream 634ec1fc7982 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ocfs2_write_begin_nolock
2025/07/21 09:01 upstream 89be9a83ccf1 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ocfs2_write_begin_nolock
2025/07/21 09:00 upstream 89be9a83ccf1 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ocfs2_write_begin_nolock
2025/07/21 08:58 upstream 89be9a83ccf1 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ocfs2_write_begin_nolock
2025/08/29 14:37 upstream 07d9df80082b 3e1beec6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_write_begin_nolock
2025/06/01 05:08 linux-next 3a83b350b5be 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ocfs2_write_begin_nolock
* Struck through repros no longer work on HEAD.