[v6.6] kernel BUG in ocfs2_truncate_file

2 views
Skip to first unread message

syzbot

unread,
May 25, 2026, 1:28:29 PMMay 25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0a40c6fbd105 Linux 6.6.141
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17628a2e580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5b35c4db8465904
dashboard link: https://syzkaller.appspot.com/bug?extid=39ff851515fd3ee7c3c7
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bef5f7e53495/disk-0a40c6fb.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/61ce39aaab25/vmlinux-0a40c6fb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/43d2363e7871/bzImage-0a40c6fb.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+39ff85...@syzkaller.appspotmail.com

(syz.0.5902,28189,1):ocfs2_truncate_file:460 ERROR: bug expression: le64_to_cpu(fe->i_size) != i_size_read(inode)
(syz.0.5902,28189,1):ocfs2_truncate_file:460 ERROR: Inode 17058, inode i_size = 0 != di i_size = 9079256848795697536, i_flags = 0x7e000000
------------[ cut here ]------------
kernel BUG at fs/ocfs2/file.c:460!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 28189 Comm: syz.0.5902 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:ffffc9000ce27360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff920019c4e7c
RDX: ffffc9000f9ab000 RSI: 000000000002ceb5 RDI: 000000000002ceb6
RBP: ffffc9000ce27590 R08: ffffc9000ce26ee7 R09: 1ffff920019c4ddc
R10: dffffc0000000000 R11: fffff520019c4ddd R12: 7e00000001000180
R13: ffff88800ff2742c R14: ffffc9000ce274a0 R15: 0000000000000000
FS: 00007f1d439db6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f874ebd5000 CR3: 00000000792a6000 CR4: 00000000003526e0
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:0x7f1d42b9ce59
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:00007f1d439db028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f1d42e16090 RCX: 00007f1d42b9ce59
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000040
RBP: 00007f1d42c32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1d42e16128 R14: 00007f1d42e16090 R15: 00007ffe6f87fc38
</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:ffffc9000ce27360 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: 00000000000042a2 RCX: 1ffff920019c4e7c
RDX: ffffc9000f9ab000 RSI: 000000000002ceb5 RDI: 000000000002ceb6
RBP: ffffc9000ce27590 R08: ffffc9000ce26ee7 R09: 1ffff920019c4ddc
R10: dffffc0000000000 R11: fffff520019c4ddd R12: 7e00000001000180
R13: ffff88800ff2742c R14: ffffc9000ce274a0 R15: 0000000000000000
FS: 00007f1d439db6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9ed6bf6000 CR3: 00000000792a6000 CR4: 00000000003526f0


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jul 12, 2026, 8:12:30 PM (4 days ago) Jul 12
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: da47cbc25466 Linux 6.6.144
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=124f5b89580000
kernel config: https://syzkaller.appspot.com/x/.config?x=938110aa66424b94
dashboard link: https://syzkaller.appspot.com/bug?extid=39ff851515fd3ee7c3c7
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=164f5b89580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14c708b9580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a9e82134d7e6/disk-da47cbc2.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/296a86743157/vmlinux-da47cbc2.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c5adb532f254/bzImage-da47cbc2.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/308590600ce0/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=17cdd346580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+39ff85...@syzkaller.appspotmail.com

(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


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages