syzbot


kernel BUG in ocfs2_truncate_file

Status: upstream: reported on 2025/08/04 05:10
Reported-by: syzbot+8e188523131f22b94afd@syzkaller.appspotmail.com
First crash: 98d, last: 1d04h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_truncate_file ocfs2 -1 C 139 1d17h 413d 0/29 upstream: reported C repro on 2024/09/22 23:08

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:456!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4504 Comm: syz.0.11 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:ocfs2_truncate_file+0x128a/0x14d0 fs/ocfs2/file.c:450
Code: 45 00 4c 89 f7 48 c7 c6 7f fc 51 8c ba c8 01 00 00 48 c7 c1 80 13 cc 8a 49 89 d8 4d 89 f9 50 41 54 e8 ba 2d 15 00 48 83 c4 10 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef f8 ff ff 48 89 df e8
RSP: 0018:ffffc90004d0f340 EFLAGS: 00010282
RAX: 1616ec9e2a44a300 RBX: 00000000000042a3 RCX: 1616ec9e2a44a300
RDX: ffffc9000fc4e000 RSI: 000000000005ea22 RDI: 000000000005ea23
RBP: ffffc90004d0f570 R08: dffffc0000000000 R09: fffff520009a1dd9
R10: fffff520009a1dd9 R11: 1ffff920009a1dd8 R12: 0000000000000096
R13: ffff88804f6d662c R14: ffffc90004d0f480 R15: 00000000000096ef
FS:  00007fc4957446c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3cf99e7dac CR3: 0000000077fe7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_setattr+0x16a9/0x1cf0 fs/ocfs2/file.c:1212
 notify_change+0xc74/0xf40 fs/attr.c:499
 do_truncate+0x197/0x220 fs/open.c:65
 handle_truncate fs/namei.c:3293 [inline]
 do_open fs/namei.c:3638 [inline]
 path_openat+0x27f2/0x2e70 fs/namei.c:3791
 do_filp_open+0x1c1/0x3c0 fs/namei.c:3818
 do_sys_openat2+0x142/0x490 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_open fs/open.c:1342 [inline]
 __se_sys_open fs/open.c:1338 [inline]
 __x64_sys_open+0x11b/0x140 fs/open.c:1338
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc49498f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc495744038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fc494be6090 RCX: 00007fc49498f6c9
RDX: 0000000000000040 RSI: 0000000000141242 RDI: 0000200000000140
RBP: 00007fc494a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc494be6128 R14: 00007fc494be6090 R15: 00007fff1a1e8138
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_file+0x128a/0x14d0 fs/ocfs2/file.c:450
Code: 45 00 4c 89 f7 48 c7 c6 7f fc 51 8c ba c8 01 00 00 48 c7 c1 80 13 cc 8a 49 89 d8 4d 89 f9 50 41 54 e8 ba 2d 15 00 48 83 c4 10 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef f8 ff ff 48 89 df e8
RSP: 0018:ffffc90004d0f340 EFLAGS: 00010282
RAX: 1616ec9e2a44a300 RBX: 00000000000042a3 RCX: 1616ec9e2a44a300
RDX: ffffc9000fc4e000 RSI: 000000000005ea22 RDI: 000000000005ea23
RBP: ffffc90004d0f570 R08: dffffc0000000000 R09: fffff520009a1dd9
R10: fffff520009a1dd9 R11: 1ffff920009a1dd8 R12: 0000000000000096
R13: ffff88804f6d662c R14: ffffc90004d0f480 R15: 00000000000096ef
FS:  00007fc4957446c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056446b3c45f8 CR3: 0000000077fe7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/09 03:34 linux-6.1.y f6e38ae624cf 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ocfs2_truncate_file
2025/08/04 05:09 linux-6.1.y 3594f306da12 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ocfs2_truncate_file
* Struck through repros no longer work on HEAD.