kernel BUG in ocfs2_truncate_file (2)

Status: upstream: reported syz repro on 2026/09/02 23:32
Reported-by: syzbot+22f572a4b4fb1ec778ec@syzkaller.appspotmail.com
First crash: 12d, last: 9d06h
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_truncate_file (2) prio:normal ocfs2 -1 36 84d 140d 0/29 auto-obsoleted due to no activity on 2026/08/31 06:29
upstream kernel BUG in ocfs2_truncate_file ocfs2 -1 syz, C 179 277d 722d 29/29 fixed on 2026/01/07 12:29
linux-6.1 kernel BUG in ocfs2_truncate_file (2) -1 2 64d 66d 0/3 upstream: reported on 2026/07/10 23:07
linux-6.6 kernel BUG in ocfs2_truncate_file -1 syz, C done 6 64d 112d 2/2 fixed on 2026/08/17 10:37
linux-6.1 kernel BUG in ocfs2_truncate_file -1 2 310d 407d 0/3 auto-obsoleted due to no activity on 2026/02/17 03:34

Sample crash report:
(syz.9.44,7557,0):ocfs2_truncate_file:460 ERROR: bug expression: le64_to_cpu(fe->i_size) != i_size_read(inode)
(syz.9.44,7557,0):ocfs2_truncate_file:460 ERROR: Inode 17058, inode i_size = 589824 != di i_size = 524288, i_flags = 0x2001
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:460!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7557 Comm: syz.9.44 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:ocfs2_truncate_file+0x1358/0x1530 fs/ocfs2/file.c:454
Code: a0 50 0a 8b 49 89 d8 4d 89 f1 50 41 54 e8 d0 4d 16 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 30 c6 44 01 18 f8 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a3 f8 ff ff 48 89 df e8
RSP: 0018:ffffc9000b7b7860 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff920016f6f1c
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000b7b7a90 R08: ffffc9000b7b73e7 R09: 1ffff920016f6e7c
R10: dffffc0000000000 R11: fffff520016f6e7d R12: 0000000000080000
R13: ffff88805bc8842c R14: 0000000000090000 R15: ffffc9000b7b79a0
FS:  00007f88133fe6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8284f4b000 CR3: 0000000025ecf000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ocfs2_setattr+0x15b8/0x1bf0 fs/ocfs2/file.c:1211
 notify_change+0xb05/0xde0 fs/attr.c:499
 do_truncate+0x1b0/0x240 fs/open.c:66
 do_sys_ftruncate+0x325/0x3d0 fs/open.c:194
 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:0x7f8813d9e159
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:00007f88133fe028 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f8814026180 RCX: 00007f8813d9e159
RDX: 0000000000000000 RSI: 0000000000010001 RDI: 0000000000000006
RBP: 00007f8813e35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8814026218 R14: 00007f8814026180 R15: 00007ffd8267b848
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_file+0x1358/0x1530 fs/ocfs2/file.c:454
Code: a0 50 0a 8b 49 89 d8 4d 89 f1 50 41 54 e8 d0 4d 16 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 30 c6 44 01 18 f8 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a3 f8 ff ff 48 89 df e8
RSP: 0018:ffffc9000b7b7860 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff920016f6f1c
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000b7b7a90 R08: ffffc9000b7b73e7 R09: 1ffff920016f6e7c
R10: dffffc0000000000 R11: fffff520016f6e7d R12: 0000000000080000
R13: ffff88805bc8842c R14: 0000000000090000 R15: ffffc9000b7b79a0
FS:  00007f88133fe6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8284f4b000 CR3: 0000000025ecf000 CR4: 00000000003506e0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/05 23:24 linux-6.6.y 8b73de7da85f 4f7b22a0 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (clean fs)] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_file
2026/09/02 23:31 linux-6.6.y 8b73de7da85f 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_file
* Struck through repros no longer work on HEAD.