syzbot


kernel BUG in ocfs2_truncate_file

Status: upstream: reported C repro on 2026/05/25 17:28
Reported-by: syzbot+39ff851515fd3ee7c3c7@syzkaller.appspotmail.com
First crash: 51d, last: 2d18h
Similar bugs (4)
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 23d 79d 0/29 upstream: reported on 2026/04/27 09:02
upstream kernel BUG in ocfs2_truncate_file ocfs2 -1 C 179 216d 660d 29/29 fixed on 2026/01/07 12:29
linux-6.1 kernel BUG in ocfs2_truncate_file (2) -1 2 2d19h 4d19h 0/3 upstream: reported on 2026/07/10 23:07
linux-6.1 kernel BUG in ocfs2_truncate_file -1 2 248d 345d 0/3 auto-obsoleted due to no activity on 2026/02/17 03:34

Sample crash report:
(syz.0.17,5935,1):ocfs2_inode_lock_tracker:2695 ERROR: status = -30
(syz.0.17,5935,1):ocfs2_xattr_get:1335 ERROR: status = -30
(syz.0.17,5935,1):ocfs2_truncate_file:460 ERROR: bug expression: le64_to_cpu(fe->i_size) != i_size_read(inode)
(syz.0.17,5935,1):ocfs2_truncate_file:460 ERROR: Inode 17058, inode i_size = 0 != di i_size = 422212465065984, i_flags = 0x6a542d36
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:460!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5935 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:ocfs2_truncate_file+0x1358/0x1530 fs/ocfs2/file.c:454
Code: 20 41 0a 8b 49 89 d8 4d 89 f1 50 41 54 e8 50 41 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:ffffc900033a7360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000674e7c
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900033a7590 R08: ffffc900033a6ee7 R09: 1ffff92000674ddc
R10: dffffc0000000000 R11: fffff52000674ddd R12: 0001800000000000
R13: ffff88805d01342c R14: 0000000000000000 R15: ffffc900033a74a0
FS:  0000555555acf500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2534364000 CR3: 000000007c000000 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
 handle_truncate fs/namei.c:3299 [inline]
 do_open fs/namei.c:3644 [inline]
 path_openat+0x2a7e/0x3270 fs/namei.c:3797
 do_filp_open+0x1f2/0x430 fs/namei.c:3824
 do_sys_openat2+0x134/0x1d0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_creat fs/open.c:1515 [inline]
 __se_sys_creat fs/open.c:1509 [inline]
 __x64_sys_creat+0x90/0xb0 fs/open.c:1509
 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:0x7fd25959de59
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:00007fffd26fc018 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fd259825fa0 RCX: 00007fd25959de59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000100
RBP: 00007fd259633e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd259825fac R14: 00007fd259825fa0 R15: 00007fd259825fa0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_file+0x1358/0x1530 fs/ocfs2/file.c:454
Code: 20 41 0a 8b 49 89 d8 4d 89 f1 50 41 54 e8 50 41 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:ffffc900033a7360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000674e7c
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900033a7590 R08: ffffc900033a6ee7 R09: 1ffff92000674ddc
R10: dffffc0000000000 R11: fffff52000674ddd R12: 0001800000000000
R13: ffff88805d01342c R14: 0000000000000000 R15: ffffc900033a74a0
FS:  0000555555acf500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2534364000 CR3: 000000007c000000 CR4: 00000000003506f0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/13 00:11 linux-6.6.y da47cbc25466 d78ea535 .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_file
2026/07/12 23:22 linux-6.6.y da47cbc25466 d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ocfs2_truncate_file
2026/07/12 23:18 linux-6.6.y da47cbc25466 d78ea535 .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: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.