syzbot


kernel BUG in ocfs2_truncate_file (2)

Status: upstream: reported on 2026/04/27 09:02
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+83b3e2bb16ee8eaf0e68@syzkaller.appspotmail.com
First crash: 26d, last: 7d15h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
71a2afde-75db-4c89-bdb2-c1ebb1cf3fa9 assessment-security 💥 kernel BUG in ocfs2_truncate_file (2) 2026/05/14 11:45 2026/05/14 11:45 2026/05/14 11:46 6ccb967e465e832a7bfd7a116ad00d52a0923a5d failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/40b4ba35a77e412e123fd832f7465fd0d0fb4265" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: error: unable to open output file 'sound/usb/caiaq/device.o': 'No such file or directory' error: unable to open output file 'arch/x86/kernel/fpu/init.o': 'No such file or directory' error: unable to open output file 'security/integrity/evm/evm_main.o': 'No such file or directory' /app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/lib/maple_tree.c:3514:20: warning: stack frame size (2424) exceeds limit (2048) in 'mas_wr_store_entry' [-Wframe-larger-than] 3514 | static inline void mas_wr_store_entry(struct ma_wr_state *wr_mas) | ^ 1 warning generated. /app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/security/apparmor/apparmorfs.c:177:28: warning: unused function 'get_loaddata_common_ref' [-Wunused-function] 177 | static struct aa_loaddata *get_loaddata_common_ref(struct aa_common_ref *ref) | ^~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. /app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/sound/usb/mixer_s1810c.c:634:5: warning: stack frame size (2360) exceeds limit (2048) in 'snd_sc1810_init_mixer' [-Wframe-larger-than] 634 | int snd_sc1810_init_mixer(struct usb_mixer_interface *mixer) | ^ 1 warning generated. /app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/security/apparmor/policy_unpack.c:1727:5: warning: stack frame size (2872) exceeds limit (2048) in 'aa_unpack' [-Wframe-larger-than] 1727 | int aa_unpack(struct aa_loaddata *udata, struct list_head *lh, | ^ 1 warning generated. fixdep: not all data was written to the output make[5]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:289: sound/soc/soc-component.o] Error 1 make[5]: *** Deleting file 'sound/soc/soc-component.o' fixdep: not all data was written to the output make[5]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:289: net/sched/sch_fifo.o] Error 1 make[5]: *** Deleting file 'net/sched/sch_fifo.o' make[4]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:548: net/sched] Error 2 make[4]: *** Waiting for unfinished jobs.... make[5]: *** Waiting for unfinished jobs.... mkdir: cannot create directory 'sound/usb/caiaq': No space left on device mkdir: cannot create directory 'arch/x86/kernel/fpu': No space left on device error: unable to open output file 'sound/usb/caiaq/device.o': 'No such file or directory' 1 error generated. make[6]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:289: sound/usb/caiaq/device.o] Error 1 make[5]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:548: sound/usb/caiaq] Error 2 make[5]: *** Waiting for unfinished jobs.... error: unable to open output file 'arch/x86/kernel/fpu/init.o': 'No such file or directory' 1 error generated. make[6]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:289: arch/x86/kernel/fpu/init.o] Error 1 make[5]: *** [/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/scripts/Makefile.build:548: arch/x86/kernel/fpu] Error 2 make[5]: *** Waiting for unfinished jobs.... fatal error: error in backend: IO failure on output stream: No space left on device PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /usr/bin/clang --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -fmacro-prefix-map=/app/workdir/cache/src/ecd8bb68855fdd08aa08215ac485989bac875215/= -fshort-wchar -fu
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_truncate_file (2) 0 (1) 2026/04/27 09:02
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_truncate_file ocfs2 -1 C 179 159d 603d 29/29 fixed on 2026/01/07 12:29
linux-6.1 kernel BUG in ocfs2_truncate_file -1 2 191d 288d 0/3 auto-obsoleted due to no activity on 2026/02/17 03:34

Sample crash report:
Buffer I/O error on dev loop0, logical block 20064, async page read
Buffer I/O error on dev loop0, logical block 20065, async page read
Buffer I/O error on dev loop0, logical block 20066, async page read
Buffer I/O error on dev loop0, logical block 20067, async page read
Buffer I/O error on dev loop0, logical block 20068, async page read
Buffer I/O error on dev loop0, logical block 20069, async page read
Buffer I/O error on dev loop0, logical block 20070, async page read
Buffer I/O error on dev loop0, logical block 20071, async page read
(syz.0.0,5328,0):ocfs2_truncate_file:461 ERROR: bug expression: le64_to_cpu(fe->i_size) != i_size_read(inode)
(syz.0.0,5328,0):ocfs2_truncate_file:461 ERROR: Inode 17058, inode i_size = 2363392 != di i_size = 2359296, i_flags = 0x2001
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:461!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:ocfs2_truncate_file+0x1313/0x14e0 fs/ocfs2/file.c:455
Code: d7 12 8c 49 89 d8 4d 89 f9 50 41 54 e8 c6 cb 17 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 20 c6 44 01 18 f8 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 5c f8 ff ff 48 89 df e8
RSP: 0018:ffffc90003b2f2e0 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000765e6c
RDX: ffffc90021003000 RSI: 0000000000018379 RDI: 000000000001837a
RBP: ffffc90003b2f510 R08: ffff88801fc247d3 R09: 1ffff11003f848fa
R10: dffffc0000000000 R11: ffffed1003f848fb R12: 0000000000240000
R13: ffff88801320b42c R14: ffffc90003b2f420 R15: 0000000000241000
FS:  00007f4b398cb6c0(0000) GS:ffff88808c881000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b38bee6b8 CR3: 0000000012aaa000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 ocfs2_setattr+0x15e5/0x1ca0 fs/ocfs2/file.c:1219
 notify_change+0xc1a/0xf40 fs/attr.c:556
 do_truncate+0x1c2/0x250 fs/open.c:68
 handle_truncate fs/namei.c:4307 [inline]
 do_open fs/namei.c:4703 [inline]
 path_openat+0x2f89/0x3860 fs/namei.c:4858
 do_file_open+0x23e/0x4a0 fs/namei.c:4887
 do_sys_openat2+0x113/0x200 fs/open.c:1364
 do_sys_open fs/open.c:1370 [inline]
 __do_sys_openat fs/open.c:1386 [inline]
 __se_sys_openat fs/open.c:1381 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1381
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4b3899cdd9
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:00007f4b398cafe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f4b38c16090 RCX: 00007f4b3899cdd9
RDX: 0000000000181242 RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007f4b38a32d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4b38c16128 R14: 00007f4b38c16090 R15: 00007ffc52f6fd58
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_truncate_file+0x1313/0x14e0 fs/ocfs2/file.c:455
Code: d7 12 8c 49 89 d8 4d 89 f9 50 41 54 e8 c6 cb 17 00 48 83 c4 10 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 20 c6 44 01 18 f8 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 5c f8 ff ff 48 89 df e8
RSP: 0018:ffffc90003b2f2e0 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff92000765e6c
RDX: ffffc90021003000 RSI: 0000000000018379 RDI: 000000000001837a
RBP: ffffc90003b2f510 R08: ffff88801fc247d3 R09: 1ffff11003f848fa
R10: dffffc0000000000 R11: ffffed1003f848fb R12: 0000000000240000
R13: ffff88801320b42c R14: ffffc90003b2f420 R15: 0000000000241000
FS:  00007f4b398cb6c0(0000) GS:ffff88808c881000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000080 CR3: 0000000012aaa000 CR4: 0000000000352ef0

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/11 22:08 upstream 5d6919055dec d168f260 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/05/10 04:43 upstream 1bfaee9d3351 29233ece .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/05/06 11:33 upstream 74fe02ce122a 23ad3581 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/05/06 11:31 upstream 74fe02ce122a 23ad3581 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/05/06 11:30 upstream 74fe02ce122a 23ad3581 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/04/30 05:02 upstream 57b8e2d666a3 005438fc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/04/23 18:18 upstream 2e6803928193 629ff21a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/04/23 18:15 upstream 2e6803928193 629ff21a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/04/23 08:53 upstream 2a4c0c11c019 b10da5ec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
2026/04/23 08:52 upstream 2a4c0c11c019 b10da5ec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_truncate_file
* Struck through repros no longer work on HEAD.