syzbot


kernel BUG in ocfs2_clear_cow_buffer

Status: upstream: reported C repro on 2024/10/15 19:30
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+69c3bc471900052ecff5@syzkaller.appspotmail.com
First crash: 265d, last: 9d18h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_clear_cow_buffer 0 (2) 2024/10/27 16:02
Last patch testing requests (5)
Created Duration User Patch Repo Result
2025/06/24 18:52 14m retest repro upstream report log
2025/06/10 18:33 17m retest repro upstream report log
2025/04/03 10:47 16m retest repro upstream report log
2025/01/23 09:49 15m retest repro upstream report log
2024/11/14 09:31 13m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/refcounttree.c:2890!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5315 Comm: syz-executor403 Not tainted 6.15.0-syzkaller-01972-g914873bc7df9 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ocfs2_clear_cow_buffer+0x79/0x80 fs/ocfs2/refcounttree.c:2890
Code: 02 75 21 e8 09 64 1f fe 48 89 df be 08 00 00 00 e8 bc 46 82 fe 3e 80 23 ef 31 c0 5b 41 5e c3 cc cc cc cc cc e8 e8 63 1f fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d3fed78 EFLAGS: 00010293
RAX: ffffffff83a070c8 RBX: ffff888046d0bcb0 RCX: ffff8880003ec880
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffff888046d0bcb7 R09: 1ffff11008da1796
R10: dffffc0000000000 R11: ffffed1008da1797 R12: ffff888046d0bcb0
R13: ffff888046d0bbc8 R14: 0000000000000002 R15: 0000000000001000
FS:  00007f40099486c0(0000) GS:ffff88808d291000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4009948d58 CR3: 000000003615b000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 walk_page_buffers+0x91/0x1e0 fs/ocfs2/aops.c:419
 ocfs2_duplicate_clusters_by_page+0x720/0xc90 fs/ocfs2/refcounttree.c:2969
 ocfs2_replace_clusters fs/ocfs2/refcounttree.c:3120 [inline]
 ocfs2_make_clusters_writable fs/ocfs2/refcounttree.c:3252 [inline]
 ocfs2_replace_cow+0xac7/0x1b90 fs/ocfs2/refcounttree.c:3346
 ocfs2_refcount_cow_hunk fs/ocfs2/refcounttree.c:3424 [inline]
 ocfs2_refcount_cow+0x779/0xc90 fs/ocfs2/refcounttree.c:3467
 ocfs2_prepare_inode_for_write fs/ocfs2/file.c:2340 [inline]
 ocfs2_file_write_iter+0xe28/0x1d10 fs/ocfs2/file.c:2451
 iter_file_splice_write+0x93a/0x1000 fs/splice.c:738
 do_splice_from fs/splice.c:935 [inline]
 direct_splice_actor+0x101/0x160 fs/splice.c:1158
 splice_direct_to_actor+0x5a5/0xcc0 fs/splice.c:1102
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0x181/0x270 fs/splice.c:1227
 do_sendfile+0x4da/0x7e0 fs/read_write.c:1370
 __do_sys_sendfile64 fs/read_write.c:1431 [inline]
 __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1417
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf6/0x220 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f40099d64b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4009948168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f4009a61628 RCX: 00007f40099d64b9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f4009a61620 R08: 00007ffcb551e327 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 00007f4009a6162c
R13: 000000000000006e R14: 00007ffcb551e240 R15: 00007ffcb551e328
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_clear_cow_buffer+0x79/0x80 fs/ocfs2/refcounttree.c:2890
Code: 02 75 21 e8 09 64 1f fe 48 89 df be 08 00 00 00 e8 bc 46 82 fe 3e 80 23 ef 31 c0 5b 41 5e c3 cc cc cc cc cc e8 e8 63 1f fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d3fed78 EFLAGS: 00010293
RAX: ffffffff83a070c8 RBX: ffff888046d0bcb0 RCX: ffff8880003ec880
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffff888046d0bcb7 R09: 1ffff11008da1796
R10: dffffc0000000000 R11: ffffed1008da1797 R12: ffff888046d0bcb0
R13: ffff888046d0bbc8 R14: 0000000000000002 R15: 0000000000001000
FS:  00007f40099486c0(0000) GS:ffff88808d291000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559e837290e0 CR3: 000000003615b000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/27 18:24 upstream 914873bc7df9 874a1386 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
2024/10/27 16:02 upstream 850925a8133c 65e8686b .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
2025/05/27 17:27 upstream 914873bc7df9 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
2024/10/31 09:31 upstream 4236f913808c fb888278 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
2024/10/27 14:56 upstream 850925a8133c 65e8686b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
2024/10/11 19:20 upstream 1d227fcc7222 5e7b4bca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_clear_cow_buffer
* Struck through repros no longer work on HEAD.