syzbot


kernel BUG in ocfs2_truncate_file

Status: upstream: reported on 2026/05/25 17:28
Reported-by: syzbot+39ff851515fd3ee7c3c7@syzkaller.appspotmail.com
First crash: 1d12h, last: 1d12h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_truncate_file (2) ocfs2 -1 10 15d 29d 0/29 upstream: reported on 2026/04/27 09:02
upstream kernel BUG in ocfs2_truncate_file ocfs2 -1 C 179 166d 611d 29/29 fixed on 2026/01/07 12:29
linux-6.1 kernel BUG in ocfs2_truncate_file -1 2 199d 296d 0/3 auto-obsoleted due to no activity on 2026/02/17 03:34

Sample crash report:
(syz.0.202,7402,1):ocfs2_inode_lock_tracker:2695 ERROR: status = -30
(syz.0.202,7402,1):ocfs2_xattr_get:1335 ERROR: status = -30
(syz.0.202,7402,1):ocfs2_truncate_file:460 ERROR: bug expression: le64_to_cpu(fe->i_size) != i_size_read(inode)
(syz.0.202,7402,1):ocfs2_truncate_file:460 ERROR: Inode 17058, inode i_size = 0 != di i_size = 11961560610312814976, i_flags = 0xa6000000
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:460!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7402 Comm: syz.0.202 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:ocfs2_truncate_file+0x1273/0x1440 fs/ocfs2/file.c:454
Code: 60 e1 09 8b 49 89 d8 4d 89 f9 50 41 54 e8 b5 3d 16 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 18 c6 44 01 18 f8 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 03 f9 ff ff 48 89 df e8
RSP: 0018:ffffc90005467360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000a8ce7c
RDX: ffffc9000e33f000 RSI: 000000000002f514 RDI: 000000000002f515
RBP: ffffc90005467590 R08: ffffc90005466ee7 R09: 1ffff92000a8cddc
R10: dffffc0000000000 R11: fffff52000a8cddd R12: a600000001000180
R13: ffff888056fc042c R14: ffffc900054674a0 R15: 0000000000000000
FS:  00007fbf851b86c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b16b2c8078 CR3: 0000000076b56000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ocfs2_setattr+0x158d/0x1bc0 fs/ocfs2/file.c:1211
 notify_change+0xb0d/0xe10 fs/attr.c:499
 do_truncate+0x1b0/0x240 fs/open.c:66
 handle_truncate fs/namei.c:3299 [inline]
 do_open fs/namei.c:3644 [inline]
 path_openat+0x2a32/0x3230 fs/namei.c:3797
 do_filp_open+0x1f5/0x430 fs/namei.c:3824
 do_sys_openat2+0x134/0x1d0 fs/open.c:1421
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_creat fs/open.c:1514 [inline]
 __se_sys_creat fs/open.c:1508 [inline]
 __x64_sys_creat+0x90/0xb0 fs/open.c:1508
 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:0x7fbf8439ce59
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:00007fbf851b8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fbf84616090 RCX: 00007fbf8439ce59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000040
RBP: 00007fbf84432d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbf84616128 R14: 00007fbf84616090 R15: 00007ffd098574c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_file+0x1273/0x1440 fs/ocfs2/file.c:454
Code: 60 e1 09 8b 49 89 d8 4d 89 f9 50 41 54 e8 b5 3d 16 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 18 c6 44 01 18 f8 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 03 f9 ff ff 48 89 df e8
RSP: 0018:ffffc90005467360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000a8ce7c
RDX: ffffc9000e33f000 RSI: 000000000002f514 RDI: 000000000002f515
RBP: ffffc90005467590 R08: ffffc90005466ee7 R09: 1ffff92000a8cddc
R10: dffffc0000000000 R11: fffff52000a8cddd R12: a600000001000180
R13: ffff888056fc042c R14: ffffc900054674a0 R15: 0000000000000000
FS:  00007fbf851b86c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f9438f1950 CR3: 0000000076b56000 CR4: 00000000003506e0

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/25 17:36 linux-6.6.y 0a40c6fbd105 c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_file
2026/05/25 17:35 linux-6.6.y 0a40c6fbd105 c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_file
2026/05/25 17:27 linux-6.6.y 0a40c6fbd105 c69befb3 .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.