syzbot


kernel BUG in ocfs2_truncate_log_needs_flush

Status: upstream: reported C repro on 2026/06/14 22:34
Reported-by: syzbot+edaf0f370858d1ad746a@syzkaller.appspotmail.com
First crash: 7d05h, last: 7d05h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_truncate_log_needs_flush ocfs2 -1 5 449d 631d 0/29 auto-obsoleted due to no activity on 2025/07/07 05:53
upstream kernel BUG in ocfs2_truncate_log_needs_flush (2) ocfs2 -1 C 6 248d 345d 0/29 auto-obsoleted due to no activity on 2026/01/24 19:05
linux-5.15 kernel BUG in ocfs2_truncate_log_needs_flush -1 1 392d 392d 0/3 auto-obsoleted due to no activity on 2025/09/02 10:37
linux-6.1 kernel BUG in ocfs2_truncate_log_needs_flush -1 1 602d 602d 0/3 auto-obsoleted due to no activity on 2025/02/05 02:34

Sample crash report:
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
(syz.0.17,5938,1):ocfs2_truncate_log_needs_flush:5822 ERROR: bug expression: le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count)
(syz.0.17,5938,1):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 128, count = 39
------------[ cut here ]------------
kernel BUG at fs/ocfs2/alloc.c:5822!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5938 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:ocfs2_truncate_log_needs_flush+0x300/0x310 fs/ocfs2/alloc.c:5819
Code: c7 c1 a0 90 09 8b 45 89 e8 45 89 f9 50 e8 c8 de 1d 00 48 83 c4 08 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 10 c6 44 01 08 f8 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 55 48
RSP: 0018:ffffc90003397660 EFLAGS: 00010296
RAX: dffffc0000000000 RBX: 1ffff1100bdc4958 RCX: 1ffff92000672ed0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003397730 R08: ffffc90003397207 R09: 1ffff92000672e40
R10: dffffc0000000000 R11: fffff52000672e41 R12: ffffc900033976c0
R13: 0000000000000000 R14: 1ffff1100bdc4958 R15: 0000000000000080
FS:  0000555573e54500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9147a1a000 CR3: 0000000073cb2000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ocfs2_xattr_set+0xbb1/0x13e0 fs/ocfs2/xattr.c:3624
 __vfs_setxattr+0x431/0x470 fs/xattr.c:201
 __vfs_setxattr_noperm+0x12d/0x5e0 fs/xattr.c:235
 vfs_setxattr+0x16b/0x2f0 fs/xattr.c:322
 do_setxattr fs/xattr.c:630 [inline]
 path_setxattr+0x3f3/0x5d0 fs/xattr.c:659
 __do_sys_setxattr fs/xattr.c:677 [inline]
 __se_sys_setxattr fs/xattr.c:673 [inline]
 __x64_sys_setxattr+0xbb/0xd0 fs/xattr.c:673
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f72fe19ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc977b4338 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f72fe415fa0 RCX: 00007f72fe19ce59
RDX: 0000200000001400 RSI: 0000200000000240 RDI: 00002000000001c0
RBP: 00007f72fe232d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000841 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f72fe415fac R14: 00007f72fe415fa0 R15: 00007f72fe415fa0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_log_needs_flush+0x300/0x310 fs/ocfs2/alloc.c:5819
Code: c7 c1 a0 90 09 8b 45 89 e8 45 89 f9 50 e8 c8 de 1d 00 48 83 c4 08 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 10 c6 44 01 08 f8 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 55 48
RSP: 0018:ffffc90003397660 EFLAGS: 00010296
RAX: dffffc0000000000 RBX: 1ffff1100bdc4958 RCX: 1ffff92000672ed0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003397730 R08: ffffc90003397207 R09: 1ffff92000672e40
R10: dffffc0000000000 R11: fffff52000672e41 R12: ffffc900033976c0
R13: 0000000000000000 R14: 1ffff1100bdc4958 R15: 0000000000000080
FS:  0000555573e54500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9147a1a000 CR3: 0000000073cb2000 CR4: 00000000003506e0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/14 22:34 linux-6.6.y 924b4a879cbb 1d2f3589 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_log_needs_flush
* Struck through repros no longer work on HEAD.